* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-primary: #10b981;
    --brand-secondary: #059669;
    --brand-accent: #34d399;
    --brand-dark: #064e3b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-brand: 0 10px 40px rgba(16,185,129,0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Brand Header - FIXED Z-INDEX */
.brand-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    z-index: 9999; /* Increased from 1000 */
    transition: all 0.3s ease;
}

.brand-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.98);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-decoration: none;
    z-index: 10001; /* Above hamburger */
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
/* Testimonial Region Headers */
.testimonial-region-header {
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.testimonial-region-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: 50px;
    border: 2px solid var(--brand-accent);
    box-shadow: var(--shadow-md);
}

.testimonial-region-header h3 i {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

/* First section header - Kolkata (special styling) */
.testimonial-region-header:first-of-type h3 {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: white;
    border: none;
    box-shadow: var(--shadow-brand);
}

.testimonial-region-header:first-of-type h3 i {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-region-header h3 {
        font-size: 1.3rem;
        padding: 0.75rem 1.5rem;
    }
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 120px;
    color: rgba(16, 185, 129, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-accent);
}

.testimonial-card.featured-testimonial {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--brand-accent);
    box-shadow: var(--shadow-sm);
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem;
}

.testimonial-rating i {
    margin-right: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.testimonial-service i {
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
}

/* Animation variants for testimonials */
.testimonial-card:nth-child(even) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(3n) {
    animation-delay: 0.2s;
}

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

.nav-links a.active {
    color: var(--brand-primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* Hamburger Menu */
.hamburger-index {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001; /* Above nav drawer */
    position: relative;
}

.hamburger-index span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-index.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger-index.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-index.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

body.nav-open {
    overflow: hidden;
}

body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* Below nav and hamburger */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

    .nav-links {
        position: fixed;
        top: 77px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 77px);
        background: var(--bg-white);
        border-left: 1px solid var(--shadow-sm);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2rem 0;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 10000; /* Above overlay, below hamburger */
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background: rgba(16, 185, 129, 0.1);
    }
}

/* Hero Section with Slideshow */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6,78,59,0.85) 0%, rgba(5,150,105,0.75) 50%, rgba(16,185,129,0.85) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-tagline {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--brand-primary);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--brand-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    position: relative;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-brand);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.feature h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border-radius: 30px;
    padding: 4rem;
    margin: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.trust-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 30px 30px;
}

.trust-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.trust-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.trust-item p {
    opacity: 0.9;
}

/* Categories Carousel */
.carousel-wrapper {
    background: white;
    border-radius: 20px;
    padding: 3rem 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
}

.category-card {
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.price-card:hover {
    transform: scale(1.05);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-brand);
}

.price-card.featured {
    border-color: var(--brand-primary);
    position: relative;
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.time-badge {
    display: inline-block;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #10b981 100%);
    color: white;
    border-radius: 30px;
    padding: 5rem 4rem;
    text-align: center;
    margin: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--brand-primary);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trust-section {
        padding: 2rem;
    }
    
    .cta-section {
        padding: 3rem 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}
/* ============================================
   FIXED NAVIGATION SYSTEM - STABLE Z-INDEX
   Z-INDEX HIERARCHY:
   - Overlay: 999
   - Header: 1000  
   - Nav Links (mobile): 1001
   - Hamburger & Logo: 1002
   ============================================ */

/* Brand Header - Fixed positioning with proper z-index */
.brand-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.brand-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.98);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-decoration: none;
    z-index: 1002;
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a.active {
    color: var(--brand-primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* Hamburger Menu Button */
.hamburger-index {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.hamburger-index span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-index.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger-index.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-index.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hamburger-index {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 80px;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1001;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        background: rgba(16, 185, 129, 0.1);
        padding-left: 2.5rem;
    }

    .nav-links a.active {
        background: rgba(16, 185, 129, 0.1);
        border-left: 4px solid var(--brand-primary);
    }

    .nav-links a.active::after {
        display: none;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        position: relative;
    }
    
    .header-content {
        padding: 0 1.5rem;
    }
}

/* Fix for pages that extend too wide */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Ensure hero and sections don't cause horizontal scroll */
.hero,
.section,
.trust-section,
.cta-section,
.footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix slideshow images */
.hero-slide {
    width: 100%;
    max-width: 100%;
}

/* Animation for menu items */
@media (max-width: 768px) {
    .nav-links.active a {
        animation: slideInFromRight 0.3s ease-out forwards;
        opacity: 0;
    }

    .nav-links.active a:nth-child(1) { animation-delay: 0.05s; }
    .nav-links.active a:nth-child(2) { animation-delay: 0.1s; }
    .nav-links.active a:nth-child(3) { animation-delay: 0.15s; }
    .nav-links.active a:nth-child(4) { animation-delay: 0.2s; }
    .nav-links.active a:nth-child(5) { animation-delay: 0.25s; }
    .nav-links.active a:nth-child(6) { animation-delay: 0.3s; }
    .nav-links.active a:nth-child(7) { animation-delay: 0.35s; }
    .nav-links.active a:nth-child(8) { animation-delay: 0.4s; }

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

/* Accessibility improvements */
.hamburger-index:focus,
.nav-links a:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.brand-header,
.nav-links,
.nav-overlay,
.hamburger-index span {
    will-change: transform;
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-overlay,
    .hamburger-index span,
    .nav-links a {
        transition: none;
        animation: none;
    }
}
