/* ===========================
   Global Styles and Variables
   =========================== */
:root {
    /* Color Palette */
    --primary-color: #9c27b0;
    --secondary-color: #7b1fa2;
    --accent-color: #ff9800;
    --success-color: #4caf50;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    
    /* Neutral Colors */
    --text-dark: #212121;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    --gradient-secondary: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* ===========================
   Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent any element from extending beyond viewport */
* {
    max-width: 100%;
}

/* Reset for common overflow issues */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Fix for Android scrolling issues */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    /* Fix for Android scrolling issues */
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all sections */
section {
    overflow-x: hidden;
    position: relative;
}

/* Wrapper fix for Android scrolling */
.wrapper,
main,
#app {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ===========================
   Utility Classes
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Responsive visibility utilities */
.desktop-only {
    display: inline;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
    overflow: hidden;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 1rem;
    padding: 0 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-social a {
    width: 32px;
    height: 32px;
    background: rgba(156, 39, 176, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Brand colors for social icons */
.nav-social a[title="TikTok"],
.nav-social-mobile a[title="TikTok"],
.photo-social a[href*="tiktok"] {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.nav-social a[title="TikTok"]:hover,
.nav-social-mobile a[title="TikTok"]:hover,
.photo-social a[href*="tiktok"]:hover {
    background: #000000;
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-social a[title="WhatsApp"],
.nav-social-mobile a[title="WhatsApp"],
.photo-social a[href*="wa.me"]:not(.whatsapp-float) {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.nav-social a[title="WhatsApp"]:hover,
.nav-social-mobile a[title="WhatsApp"]:hover,
.photo-social a[href*="wa.me"]:not(.whatsapp-float):hover {
    background: #25D366;
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-social a[title="Instagram"],
.nav-social-mobile a[title="Instagram"],
.photo-social a[href*="instagram"] {
    background: rgba(228, 64, 95, 0.1);
    color: #E4405F;
}

.nav-social a[title="Instagram"]:hover,
.nav-social-mobile a[title="Instagram"]:hover,
.photo-social a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #833AB4, #FD1D1D, #F77737);
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-social a[title="Google Reviews"],
.nav-social-mobile a[title="Google Reviews"],
.photo-social a[title="Google Reviews"] {
    background: rgba(66, 133, 244, 0.1);
    color: #4285F4;
}

.nav-social a[title="Google Reviews"]:hover,
.nav-social-mobile a[title="Google Reviews"]:hover,
.photo-social a[title="Google Reviews"]:hover {
    background: #4285F4;
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-social-mobile {
    display: none;
}

.btn-appointment {
    background: var(--gradient-primary);
    color: var(--text-white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition-base);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.hero-content .container {
    text-align: center;
}

@media (max-width: 768px) {
    .hero-content {
        display: flex;
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-text h1 .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

.hero-text {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.hero-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 10px 30px rgba(156, 39, 176, 0.2));
    animation: float 6s ease-in-out infinite;
}

.hero-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Decorations */
.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    opacity: 0.05;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -250px;
    right: -100px;
    animation: blob 15s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    animation: blob 20s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: spin 30s linear infinite;
}

.hero-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(156, 39, 176, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

/* Animated Logo Background */
.animated-logo-bg {
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.08;
    z-index: 1;
}

.animated-logo-bg .figure-container {
    position: relative;
    width: 300px;
    height: 400px;
    animation: logoPulse 6s ease-in-out infinite;
}

.animated-logo-bg .figure {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDE1MCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9ImZpZ3VyZUdyYWRpZW50IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzhhM2ZmYzsiLz4KPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjojNjY2NmZmOyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjxwb2x5Z29uIHBvaW50cz0iNzUsNCAOMCw0MCA2MCw2MCA3NSw0MCA5MCw2MCA3NSw0IiBmaWxsPSJ1cmwoI2ZpZ3VyZUdyYWRpZW50KSIgc3Ryb2tlPSIjNjY0NGZmIiBzdHJva2Utd2lkdGg9IjIiLz4KPGNpcmNsZSBjeD0iNzUiIGN5PSI4MCIgcj0iMjAiIGZpbGw9InVybCgjZmlndXJlR3JhZGllbnRpIiBzdHJva2U9IiM2NjQ0ZmYiIHN0cm9rZS13aWR0aD0iMiIvPgo8cmVjdCB4PSI2NSIgeT0iMTAwIiB3aWR0aD0iMjAiIGhlaWdodD0iNDAiIGZpbGw9InVybCgjZmlndXJlR3JhZGllbnRpIiBzdHJva2U9IiM2NjQ0ZmYiIHN0cm9rZS13aWR0aD0iMiIvPgo8cmVjdCB4PSI2MCIgeT0iMTQwIiB3aWR0aD0iMTAiIGhlaWdodD0iNDAiIGZpbGw9InVybCgjZmlndXJlR3JhZGllbnRpIiBzdHJva2U9IiM2NjQ0ZmYiIHN0cm9rZS13aWR0aD0iMiIvPgo8cmVjdCB4PSI4MCIgeT0iMTQwIiB3aWR0aD0iMTAiIGhlaWdodD0iNDAiIGZpbGw9InVybCgjZmlndXJlR3JhZGllbnRpIiBzdHJva2U9IiM2NjQ0ZmYiIHN0cm9rZS13aWR0aD0iMiIvPgo8cmVjdCB4PSI1NSIgeT0iMTc1IiB3aWR0aD0iMjAiIGhlaWdodD0iOCIgZmlsbD0idXJsKCNmaWd1cmVHcmFkaWVudCkiIHN0cm9rZT0iIzY2NDRmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxyZWN0IHg9Ijc1IiB5PSIxNzUiIHdpZHRoPSIyMCIgaGVpZ2h0PSI4IiBmaWxsPSJ1cmwoI2ZpZ3VyZUdyYWRpZW50KSIgc3Ryb2tlPSIjNjY0NGZmIiBzdHJva2Utd2lkdGg9IjIiLz4KPC9zdmc+') no-repeat center center;
    background-size: contain;
    animation: figureFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(156, 39, 176, 0.2));
}

.animated-logo-bg .colored-circle {
    position: absolute;
    border-radius: 50%;
    animation: circleFloat 5s ease-in-out infinite;
}

.animated-logo-bg .circle1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #9c27b0 0%, #e91e63 100%);
    top: 40px;
    left: 20px;
    animation-delay: 0s;
}

.animated-logo-bg .circle2 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #7b1fa2 0%, #9c27b0 100%);
    bottom: 160px;
    left: 10px;
    animation-delay: 1s;
}

.animated-logo-bg .circle3 {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #ff9800 0%, #ffc107 100%);
    top: 60px;
    right: 30px;
    animation-delay: 2s;
}

.animated-logo-bg .circle4 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #e91e63 0%, #f06292 100%);
    bottom: 100px;
    right: 40px;
    animation-delay: 1.5s;
}

@keyframes figureFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

@keyframes circleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-30px) scale(1.1); 
    }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

/* Hover effect for hero section */
.hero:hover .animated-logo-bg {
    opacity: 0.12;
}

.hero:hover .animated-logo-bg .figure {
    animation-duration: 2s;
}

.hero:hover .animated-logo-bg .colored-circle {
    animation-duration: 3s;
}

@keyframes blob {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    50% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    75% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Consultation Section */
.consultation {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f6 100%);
    position: relative;
}

.consultation-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.consultation-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
    padding: 2rem 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-light);
}

@media (max-width: 768px) {
    .consultation {
        padding: 40px 0;
    }
    
    .consultation-content p {
        font-size: 1.1rem;
        padding: 1.5rem 2rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .consultation-content p {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
}

.features::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -150px;
    width: 300px;
    height: 300px;
    background: url('../images/logo-white.png') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    transform: translateY(-50%) rotate(15deg);
    pointer-events: none;
}

@media (max-width: 768px) {
    .features::after {
        display: none;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.about-logo-bg {
    width: 350px;
    height: auto;
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-photo-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-photo-container:hover .about-photo {
    transform: scale(1.05);
}

.photo-social {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: bottom 0.3s ease;
}

.about-photo-container:hover .photo-social {
    bottom: 0;
}

.photo-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Brand colors override for photo social links are applied via the selectors above */

.stats-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.stats-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-logo {
    width: 150px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    opacity: 0.8;
}

.section-subtitle {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* ===========================
   Services Section
   =========================== */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: var(--transition-base);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(156, 39, 176, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.service-link i {
    transition: var(--transition-base);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===========================
   Team Section
   =========================== */
.team {
    padding: 80px 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.member-image {
    position: relative;
    overflow: hidden;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-base);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-placeholder {
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-placeholder i {
    font-size: 5rem;
    color: var(--text-white);
    opacity: 0.5;
}

.member-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition-base);
}

.team-member:hover .member-social {
    bottom: 0;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.member-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.member-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 400px;
    height: 400px;
    background: url('../images/logo-white.png') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
}

@media (max-width: 768px) {
    .testimonials::before {
        display: none;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--text-white);
    font-size: 1.5rem;
}

.author-info h5 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===========================
   CTA Section
   =========================== */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: auto;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.cta-logo-bg img {
    width: 100%;
    height: auto;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    min-height: 80px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-start;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.info-text {
    flex: 1;
}

.info-text h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.info-text p {
    margin: 0;
    line-height: 1.6;
}

.info-text p a {
    text-decoration: none;
    font-weight: 500;
}

.info-text p a[href^="tel:"],
.info-text p a[href^="mailto:"] {
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-text p a[href^="tel:"]:hover,
.info-text p a[href^="mailto:"]:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: var(--transition-base);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-base);
    background: var(--bg-white);
    padding: 0 5px;
}

.form-group textarea + label {
    top: 20px;
    transform: translateY(0);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--primary-color);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.form-message.error {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: #1a1a1a;
    color: var(--text-white);
    padding: 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
}

.footer-column h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-form button:hover {
    transform: scale(1.1);
}

.footer-bottom {
    padding: 0;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===========================
   Back to Top Button
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
    transition: var(--transition-base);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optimize testimonials grid for 4 items on larger screens */
@media (min-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        margin: 3rem auto 0;
    }
    
    /* Position animated logo better on large screens */
    .animated-logo-bg {
        left: 60%;
        opacity: 0.1;
    }
    
    .animated-logo-bg .figure-container {
        width: 350px;
        height: 467px;
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    body {
        overflow-x: hidden;
        /* Prevent iOS bounce effect that might hide content */
        -webkit-overflow-scrolling: touch;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Fix for Android partial scrolling */
    .hero, .features, .about, .services, .testimonials, .cta, .contact {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        position: relative;
        z-index: 1;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition-base);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-social {
        display: none;
    }
    
    .nav-social-mobile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .nav-social-mobile a {
        width: 32px;
        height: 32px;
        background: rgba(156, 39, 176, 0.1);
        color: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    /* Mobile brand colors are applied via the selectors above */
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .hero-image {
        height: auto;
        max-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1.5rem 0;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
    
    .hero-photo {
        max-width: 250px;
    }
    
    .cta-logo-bg {
        width: 400px;
    }
    
    .section-logo {
        width: 100px;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links,
    .footer-bottom {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Scale down animated logo on tablets */
    .animated-logo-bg {
        right: 5%;
        opacity: 0.08;
    }
    
    .animated-logo-bg .figure-container {
        width: 200px;
        height: 267px;
    }
    
    /* Fix stats card on mobile */
    .about-image {
        position: relative;
        min-height: 200px;
        margin-bottom: 2rem;
    }
    
    .about-content {
        /* Ensure content is not cut off */
        min-height: auto;
        overflow: visible;
        height: auto;
    }
    
    .about-text {
        /* Ensure text section expands to fit content */
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .about-photo-container {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .photo-social {
        position: static;
        background: transparent;
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .stats-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1rem auto;
        max-width: 200px;
    }
    
    /* Fix about section text on mobile */
    .about p {
        padding: 0 10px;
        text-align: right;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-text {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .about-features {
        padding: 0 10px;
        max-width: 100%;
        /* Ensure all 4 items are visible on mobile */
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .about-feature {
        font-size: 0.9rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .stats-card p {
        font-size: 0.9rem;
    }
    
    .about-logo-bg {
        display: none;
    }
    
    /* Contact section on tablets */
    .contact-content {
        gap: 3rem;
    }
    
    .info-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Ensure no horizontal overflow on mobile */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Hide desktop-only content on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Adjust hero text for mobile */
    .hero-text p {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-text p br {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0 5px;
    }
    
    .about-feature {
        font-size: 0.85rem;
    }
    
    .about-feature i {
        font-size: 1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix team member centering on mobile */
    .team-member {
        text-align: center;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .member-image {
        width: 200px;
        height: 200px;
    }
    
    /* Fix logo sizes on mobile */
    .logo-img {
        max-width: 150px;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .hero-photo {
        max-width: 180px;
        margin: 0 auto;
    }
    
    .about-logo-bg {
        width: 250px;
    }
    
    .cta-logo-bg {
        width: 300px;
    }
    
    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix grid gaps on mobile */
    .services-grid,
    .team-grid,
    .testimonials-grid {
        gap: 1.5rem;
    }
    
    /* Features grid has its own gap setting for 2x2 layout */
    /* Gap for features-grid is set in the 2x2 grid rules above */
    
    /* Adjust padding for mobile */
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-decorations {
        display: none;
    }
    
    .animated-logo-bg {
        display: none;
    }
    
    /* Navigation links in contact section */
    .info-text p a {
        display: block !important;
        margin: 8px 0 !important;
        padding: 8px 12px;
        background: rgba(156, 39, 176, 0.05);
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .info-text p a:hover {
        background: rgba(156, 39, 176, 0.1);
    }
    
    /* Contact info cards on mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-card {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .info-card:last-child {
        border-bottom: none;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        margin-top: 0;
    }
    
    .info-icon i {
        font-size: 1.25rem;
    }
}

/* ===========================
   Mobile-Specific Viewport Fixes
   =========================== */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Extra small mobile hero text styling */
    .hero-text p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===========================
   WhatsApp Floating Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float i {
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
} 

/* Very small mobile screens */
@media (max-width: 380px) {
    .nav-social-mobile {
        gap: 0.3rem;
    }
    
    .nav-social-mobile a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .logo-img {
        max-width: 120px;
    }
}

/* Safari/iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix iOS scrolling trap in about section */
    .about,
    .about-content,
    .about-text,
    .about-features {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: auto !important;
    }
    
    .about-features {
        /* Ensure all items are visible on iOS */
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        position: relative;
        z-index: 1;
    }
    
    .about-feature {
        -webkit-flex: 0 0 48%;
        flex: 0 0 48%;
        margin-bottom: 0.5rem;
    }
    
    /* Prevent scroll trapping */
    .container {
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    /* Fix for iOS scroll trap in about section */
    .about {
        overflow: visible !important;
        height: auto !important;
        -webkit-overflow-scrolling: auto !important;
    }
    
    .about-image {
        min-height: auto;
        height: auto;
    }
    
    .about-content {
        overflow: visible !important;
        height: auto !important;
        display: block;
    }
    
    .about-features {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem;
        overflow: visible !important;
        height: auto !important;
    }
}

/* Global iOS fixes to prevent scroll trapping */
@media screen and (max-width: 768px) {
    /* Prevent iOS inner scroll trap */
    body, html {
        height: auto !important;
        min-height: 100% !important;
        position: relative !important;
    }
    
    .about,
    .about > *,
    .about-content > *,
    .about-text > * {
        -webkit-overflow-scrolling: initial !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        position: relative !important;
    }
}

/* Android Chrome specific fixes for grid scrolling */
@media (max-width: 768px) {
    /* Fix features grid inner scrolling on Android */
    .features-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem;
        max-width: 100%;
        overflow: visible;
        display: grid !important;
    }
    
    .feature-card {
        min-width: 0;
        padding: 1.5rem;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Fix services grid inner scrolling on Android */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        max-width: 100%;
        overflow: visible;
    }
    
    .service-card {
        min-width: 0;
        width: 100%;
    }
    
    /* Remove container overflow restrictions for grid sections */
    .features .container,
    .services .container {
        overflow: visible !important;
        overflow-x: visible !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens - still keep 2x2 grid */
    .features-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
}

/* Specific Android Chrome fixes */
@supports (-webkit-appearance: none) and (not (-ms-ime-align: auto)) {
    /* Target Android Chrome specifically */
    .features-grid,
    .services-grid {
        -webkit-overflow-scrolling: auto;
        overflow: visible !important;
    }
    
    .features,
    .services {
        overflow: visible !important;
        position: relative;
    }
    
    .feature-card,
    .service-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Additional mobile feature grid styling */
@media (max-width: 768px) {
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
}