/* ========== ROOT VARIABLES (SEMI-CLASSIC THEME) ========== */
:root {
    /* Palette */
    --navy-primary: #1a252f;
    --navy-secondary: #2c3e50;
    --gold-accent: #c0a062;
    --gold-light: #e6dace;
    --cream-bg: #f9f9f7;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    
    /* Layout */
    --radius: 4px;
    --radius-lg: 8px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ========== GENERAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream-bg);
}

h1, h2, h3, h4, .logo-text, .section-label, .stat-number {
    font-family: 'Playfair Display', serif;
}

.separator-line-center {
    width: 60px;
    height: 3px;
    background-color: var(--gold-accent);
    margin: 20px auto;
}

.separator-line-left {
    width: 60px;
    height: 3px;
    background-color: var(--gold-accent);
    margin: 20px 0;
}

.gold-bg { background-color: var(--gold-accent); }
.white-bg { background-color: var(--white); }

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--navy-primary);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-image {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--navy-primary);
    letter-spacing: -0.5px;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn-login {
    padding: 10px 25px;
    border: 1px solid var(--navy-primary);
    background: transparent;
    color: var(--navy-primary);
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9em;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: var(--navy-primary);
    color: var(--white);
}

.btn-signup {
    padding: 10px 25px;
    background: var(--navy-primary);
    color: white;
    border: 1px solid var(--navy-primary);
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9em;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-signup:hover {
    background: var(--navy-secondary);
    border-color: var(--navy-secondary);
    transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 37, 47, 0.2);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: white;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.highlight-text {
    color: var(--gold-accent);
    font-style: italic;
}

.hero-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hero-search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.search-button {
    padding: 18px 40px;
    background: var(--gold-accent);
    color: var(--navy-primary);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-button:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.trust-icon {
    font-size: 1.8em;
    color: var(--gold-accent);
}

.trust-text strong {
    display: block;
    color: white;
    font-size: 1em;
    font-family: 'Playfair Display', serif;
}

.trust-text span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}

/* ========== WHAT IS AQI SECTION ========== */
.what-is-aqi-section {
    position: relative;
    padding: 100px 60px;
    background: var(--cream-bg);
}

/* --- FIX: Added specific styles for background image --- */
.what-is-aqi-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.what-is-aqi-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.1; /* Subtle watermark effect */
    display: block;
}
/* ----------------------------------------------------- */

.what-is-aqi-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    font-size: 0.9em;
    color: var(--gold-accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}

.aqi-title {
    font-size: 2.5em;
    color: var(--navy-primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.aqi-description {
    font-size: 1.05em;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: justify;
}

.aqi-cta-button {
    padding: 15px 40px;
    background: transparent;
    color: var(--navy-primary);
    border: 2px solid var(--navy-primary);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aqi-cta-button:hover {
    background: var(--navy-primary);
    color: var(--white);
}

.image-frame {
    padding: 10px;
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid #ddd;
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.image-frame:hover {
    transform: rotate(0deg);
}

.aqi-interface-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== WHY MATTERS SECTION ========== */
.why-matters-section {
    padding: 100px 60px;
    background: var(--white);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.why-matters-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8em;
    color: var(--navy-primary);
}

.impact-cards-wrapper {
    overflow-x: auto;
    padding: 20px 0 40px 0;
}

.impact-cards-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    min-width: min-content;
}

.impact-card-bg {
    position: relative;
    height: 420px;
    width: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
    flex-shrink: 0;
}

.impact-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.impact-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--navy-primary), rgba(26, 37, 47, 0.8), transparent);
    padding: 30px 20px;
    color: white;
    transform: translateY(60px);
    transition: var(--transition);
    /* border-top: 2px solid var(--gold-accent); */
}

.impact-card-content h3 {
    font-size: 1.4em;
    color: var(--gold-accent);
    margin-bottom: 10px;
}

.impact-card-content p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.impact-card-bg:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.impact-card-bg:hover .impact-card-image {
    transform: scale(1.1);
}

.impact-card-bg:hover .impact-card-content {
    transform: translateY(0);
}

/* ========== FEATURES SECTION ========== */
.features-section {
    position: relative;
    padding: 100px 60px;
    background: var(--cream-bg);
}

/* --- FIX: Added specific styles for background image --- */
.features-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.features-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.5; /* Subtle watermark effect */
    display: block;
}
/* ----------------------------------------------------- */

.features-content {
    position: relative; /* Z-index fix to sit above bg */
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-dark {
    font-size: 2.5em;
    color: var(--navy-primary);
    line-height: 1.2;
}

.features-intro {
    font-size: 1.1em;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
}

.features-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 50px;
    align-items: center;
}

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

.features-visual .image-frame {
    width: 100%;
    max-width: 100%;
    transform: rotate(-2deg);
}
.features-visual .image-frame:hover {
    transform: rotate(0deg);
}

.features-illustration {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.features-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 4px solid var(--gold-accent);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 2em;
    font-weight: 700;
    color: rgba(26, 37, 47, 0.1);
    font-family: 'Playfair Display', serif;
}

.step-content {
    display: flex;
    gap: 20px;
    flex: 1;
}

.step-icon {
    font-size: 1.8em;
    color: var(--navy-secondary);
    min-width: 40px;
    padding-top: 5px;
}

.step-text h3 {
    font-size: 1.3em;
    color: var(--navy-primary);
    margin-bottom: 8px;
}

.step-text p {
    color: var(--text-muted);
    font-size: 0.95em;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    padding: 120px 60px;
    background: var(--navy-primary);
    color: white;
    border-top: 5px solid var(--gold-accent);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-white {
    color: var(--white);
    font-size: 2.8em;
}

.section-subtitle-white {
    color: var(--gold-light);
    font-size: 1.2em;
    font-style: italic;
    font-weight: 300;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(192, 160, 98, 0.3);
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: all 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-accent);
}

.quote-icon {
    font-size: 1.5em;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gold-accent);
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
}

.author-info h4 {
    color: var(--white);
    font-size: 1em;
    margin-bottom: 2px;
}

.author-info span {
    color: var(--gold-light);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 80px 60px;
    background: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item-large {
    text-align: center;
}

.stat-number {
    font-size: 4em;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1em;
    color: var(--gold-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: #ddd;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 60px;
    background: var(--cream-bg);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-top: 5px solid var(--navy-primary);
    border-radius: var(--radius);
    padding: 70px 60px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.cta-title {
    font-size: 2.8em;
    color: var(--navy-primary);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    background: var(--navy-primary);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--gold-accent);
    color: var(--navy-primary);
    transform: translateY(-3px);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--navy-primary);
    color: white;
    padding: 80px 60px 30px;
    border-top: 5px double var(--gold-accent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 1.5em;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--gold-light);
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 1.1em;
    color: var(--gold-accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Lato', sans-serif;
}

.footer-section ul li a:hover {
    color: var(--gold-accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

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

/* ========== RESPONSIVE MEDIA QUERIES (Video Logic) ========== */
@media (min-width: 1201px) {
    .video-desktop { display: block; }
}

@media (min-width: 801px) and (max-width: 1200px) {
    .video-laptop { display: block; }
}

@media (min-width: 501px) and (max-width: 800px) {
    .video-tablet { display: block; }
}

@media (max-width: 500px) {
    .video-mobile { display: block; }
}

/* ========== GENERAL RESPONSIVENESS ========== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3em; }
    .what-is-aqi-container { grid-template-columns: 1fr; text-align: center; }
    .features-split-layout { grid-template-columns: 1fr; }
    .aqi-description { text-align: left; }
    .section-label { margin-bottom: 10px; }
}

@media (max-width: 900px) {
    .features-section,
    .what-is-aqi-section {
        padding: 80px 30px;
    }

    .features-split-layout {
        gap: 40px;
    }

    .features-visual {
        margin-bottom: 30px;
    }

    .features-illustration {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .image-frame {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 10px 0; }
    .nav-container { padding: 0 20px; }
    .logo-text { display: none; }
    
    .hero-container { padding: 30px 20px; }
    .hero-title { font-size: 2.2em; }
    
    .features-section,
    .what-is-aqi-section {
        padding: 60px 20px;
    }

    .features-split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-intro {
        max-width: 100%;
    }

    .feature-step {
        padding: 20px;
    }

    .impact-cards-grid { flex-direction: column; align-items: center; }
    .impact-card-bg { width: 100%; max-width: 400px; height: 350px; }
    
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-container { flex-direction: column; gap: 40px; }
    .stat-divider { width: 100px; height: 1px; }
    
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 500px) {
    .features-section,
    .what-is-aqi-section {
        padding: 40px 15px;
    }

    .section-title-dark {
        font-size: 1.8em;
    }

    .features-intro {
        font-size: 0.95em;
    }

    .feature-step {
        gap: 16px;
        padding: 18px;
    }

    .step-text h3 {
        font-size: 1.15em;
    }

    .image-frame {
        padding: 8px;
    }
}