/* 1. VARIABLES & CORE */
:root {
    --ocean-blue: #0077be;
    --deep-navy: #0a192f;
    --accent: #00f2ff;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--deep-navy);
    overflow-x: hidden;
    background-color: var(--white);
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* 2. NAVIGATION & HAMBURGER */
.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
/* Logo Image Styling */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.nav-logo-img {
    height: 60px; /* Adjust this height to fit your nav bar perfectly */
    width: auto;  /* Maintains aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

/* Subtle hover effect for the logo */
.logo-container:hover .nav-logo-img {
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-logo-img {
        height: 45px; /* Slightly smaller on mobile to save space */
    }
}

.glass-nav nav { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    letter-spacing: 1px; 
    text-decoration: none; 
    color: var(--deep-navy);
}
.logo span { color: var(--ocean-blue); }

.nav-links { display: flex; list-style: none; align-items: center; gap: 25px; }
.nav-links a { 
    text-decoration: none; 
    color: var(--deep-navy); 
    font-weight: 600; 
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover, .active { color: var(--ocean-blue); }

/* Navigation Active and Hover States */
.nav-links a:hover,
.nav-links a.active {
    color: var(--ocean-blue) !important;
    font-weight: 600; /* Subtle weight increase for active links */
}

/* Optional: Add a small underline indicator for the active link */
.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ocean-blue);
    margin-top: 4px;
    border-radius: 2px;
}

/* Navigation Logic */
.nav-toggle { display: none; } 

.nav-toggle-label {
    display: none; 
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--deep-navy);
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ''; position: absolute; }
.nav-toggle-label span::before { bottom: 8px; }
.nav-toggle-label span::after { top: 8px; }

/* Mobile Menu Logic (768px) */
@media (max-width: 768px) {
    .nav-toggle-label { display: block; } 

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        text-align: center;
        max-height: 0; /* Hidden state */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links li { width: 100%; border-bottom: 1px solid #f1f5f9; }

    .nav-links li a {
        display: block;
        padding: 20px;
        width: 100%;
    }

    .nav-links li .btn-sm {
        margin: 20px auto;
        width: 80%;
        display: block;
    }

    /* THE FIX: Reveal menu on check */
    .nav-toggle:checked ~ .nav-links {
        max-height: 500px; 
    }

    /* Animate Hamburger to 'X' */
    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); bottom: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
}

/* 3. HERO SECTION (Parallax) */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content { position: relative; z-index: 2; max-width: 750px; margin-left: 5%; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; margin: 20px 0; font-weight: 800; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; }

.badge { 
    background: var(--accent); 
    color: var(--deep-navy); 
    padding: 6px 16px; 
    border-radius: 50px; 
    font-weight: 800; 
    font-size: 0.75rem; 
    text-transform: uppercase;
}

/* 4. BUTTONS & TRUST BAR */
.btn-primary, .btn-secondary, .btn-sm {
    padding: 14px 32px; border-radius: 8px; border: none; cursor: pointer; 
    font-weight: 700; transition: var(--transition); text-decoration: none; 
    display: inline-block; text-align: center;
}
.btn-primary { background: var(--ocean-blue); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: #005fa3; transform: translateY(-2px); }

.btn-secondary { background: transparent; border: 2px solid white; color: white; margin-left: 15px; }
.btn-secondary:hover { background: white; color: var(--deep-navy); }

.btn-sm { background: var(--deep-navy); color: white; padding: 10px 22px; font-size: 0.9rem; }

.trust-bar { background: #f8fafc; padding: 50px 0; text-align: center; border-bottom: 1px solid #eee; }
.logo-track { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 50px; margin-top: 30px; filter: grayscale(1); opacity: 0.5; }
.logo-track img { height: 40px; }

/* 5. MODAL SYSTEM */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(2, 12, 27, 0.85); backdrop-filter: blur(4px); }
.modal-content { 
    background: white; margin: 5% auto; padding: 40px; width: 90%; 
    max-width: 500px; border-radius: 24px; position: relative; 
}
.close-btn { position: absolute; right: 25px; top: 20px; font-size: 32px; cursor: pointer; color: #94a3b8; }

.form-group { margin-bottom: 20px; }
.form-group input, .form-group select { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 10px; }
.full-width { width: 100%; }

/* 6. FOOTER */
.main-footer { background: var(--deep-navy); color: #94a3b8; padding: 80px 0 40px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.main-footer h4 { color: white; margin-bottom: 25px; position: relative; }
.main-footer h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--ocean-blue); }
.main-footer ul { list-style: none; }
.main-footer li { margin-bottom: 12px; }
.main-footer a { color: #94a3b8; text-decoration: none; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 40px; }

/* 7. FINAL RESPONSIVE OVERRIDES */
@media (max-width: 1024px) {
    .hero { background-attachment: scroll; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* REMOVED: .nav-links { display: none; } - This was causing your bug */
    .hero-content { text-align: center; margin-left: 0; width: 100%; padding: 0 20px; }
    .btn-secondary { margin-left: 0; margin-top: 15px; width: 80%; }
    .btn-primary { width: 80%; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .main-footer h4::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* Deep Dive Section */
.deep-dive {
    padding: 100px 0;
    background: #ffffff;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.deep-dive h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 25px;
    color: var(--deep-navy);
}

.deep-dive p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-pills span {
    background: #f0f7ff;
    color: var(--ocean-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(0, 119, 190, 0.1);
}

.guarantee {
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid var(--accent);
    font-style: italic;
}

/* Side Image Styling */
.image-block {
    position: relative;
}

.side-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.stat-card {
    position: absolute;
    bottom: -25px;
    left: -40px;
    background: var(--deep-navy);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Tweak */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .image-block {
        order: -1; /* Image moves to top on mobile */
    }
    .stat-card {
        bottom: -40px;
        left: 15px;
    }
}
/* About Page Specifics */
.about-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.about-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; margin: 20px 0; font-weight: 800; }
.about-hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 5;
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ocean-blue);
}
.stat-desc {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}
.content-grid-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding: 80px 0;
}
 .quote-block {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--deep-navy);
    border-left: 5px solid var(--accent);
    padding-left: 30px;
    margin: 40px 0;
    font-weight: 600;
}
.side-img-rounded {
    width: 100%;
    border-radius: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}
@media (max-width: 768px) {
    .stats-bar { grid-template-columns: 1fr 1fr; margin-top: 20px; }
    .content-grid-split { grid-template-columns: 1fr; }
}

/* About Hero Parallax */
.about-hero-parallax {
    position: relative;
    height: 100vh;
    display: flex;
    alight-items: center;
    color: var(--white);
    padding-top: 80px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}
.about-hero-parallax h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; margin: 20px 0; font-weight: 800; }
.about-hero-parallax p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; max-width: 600px; }
