/* ===========================================
   CSS VARIABLES & RESET
   =========================================== */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #121212;
    --color-surface-light: #1c1c1c;
    --color-text: #f8f8f8;
    --color-text-muted: #a0a0a0;
    --color-accent: #D4AF37; /* Champagne Gold */
    --color-accent-hover: #e8c659;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* ===========================================
   NAVIGATION
   =========================================== */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    z-index: 100;
    background: transparent;
    mix-blend-mode: screen;
}

.brand-logo {
    filter: invert(1) hue-rotate(190deg) brightness(1.7) contrast(1.2);
    pointer-events: none;
}

.logo {
    background: transparent;
    background-color: transparent;
}

.logo .brand-logo {
    max-height: 65px;
    width: auto;
    display: block;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    background-image: url('hero-bg.png'); /* Fallback */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.8; /* Subtle transparency against dark background */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4), rgba(10,10,10,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeIn 1.5s ease-out forwards;
}

.hero-content .subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.waitlist-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.waitlist-form input {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    border-radius: 4px;
    width: 320px;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(5px);
}

.waitlist-form input::placeholder {
    color: rgba(248, 248, 248, 0.5);
}

.waitlist-form input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    background-color: var(--color-accent);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.form-status {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}

.trust-badge svg {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

/* ===========================================
   HOW IT WORKS SECTION
   =========================================== */
.how-it-works, .experience {
    padding: 6rem 0 0 0;
    background-color: var(--color-bg);
}

.section-heading {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 5%;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 0 auto 1.5rem auto;
}

.section-heading p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.experience-zigzag {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.zigzag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 500px;
    background-color: var(--color-surface);
}

.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-image {
    flex: 1 1 50%;
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.zigzag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.8s ease;
}

.zigzag-row:hover .zigzag-image img {
    transform: scale(1.03);
}

.zigzag-content {
    flex: 1 1 50%;
    padding: 6rem 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.step-badge {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.zigzag-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.zigzag-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 550px;
}


/* ===========================================
   FOOTER
   =========================================== */
.footer {
    border-top: 1px solid var(--color-surface-light);
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--color-surface);
}

.footer-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    background: transparent;
    mix-blend-mode: screen;
}

.footer-logo .brand-logo {
    max-height: 65px;
    width: auto;
    display: block;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-contact p {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

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

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

/* ===========================================
   WHY LAB-GROWN SECTION
   =========================================== */
.why-lab-grown {
    padding: 8rem 5%;
    background-color: var(--color-surface-light); /* Contrast with earlier section */
}

.fact-statement {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem !important;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item h3 {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.benefit-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===========================================
   SPLIT COMPONENTS & VISUAL IMMERSION
   =========================================== */
.split-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.reverse-split {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1 1 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.split-image img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.split-image:hover img {
    transform: scale(1.03);
}

.split-content {
    flex: 1 1 400px;
    text-align: left;
}

/* ===========================================
   SURAT SECRET SECTION
   =========================================== */
.surat-secret {
    padding: 8rem 5%;
    background-color: var(--color-bg);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.4s ease;
}

.story-item:hover {
    border-left-color: var(--color-accent);
}

.story-chapter {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.story-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.story-item p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.highlight-story {
    background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
    padding: 2rem;
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    transform: translateX(-1rem);
}

.highlight-story:hover {
    border-left-color: var(--color-accent-hover);
}

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

/* ===========================================
   UI / UX ELEMENTS
   =========================================== */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-text);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.floating-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.whatsapp-btn {
    left: 2rem;
    color: var(--color-accent);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

.scroll-top-btn {
    right: 2rem;
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    color: var(--color-text);
}

/* ===========================================
   MEDIA QUERIES
   =========================================== */
@media (max-width: 768px) {
    /* 1. Hero Section Logo Overlap Fix */
    .hero-content {
        padding-top: 6rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .waitlist-form {
        flex-direction: column;
        align-items: center;
    }
    
    .waitlist-form input, .btn-primary {
        width: 100%;
        max-width: 320px;
    }

    /* 2. The Almasring Experience Layout Fix */
    .zigzag-row, .zigzag-row.reverse {
        flex-direction: column;
    }

    .zigzag-image {
        min-height: 350px;
    }

    .zigzag-content {
        padding: 4rem 5%;
        text-align: center;
    }

    .zigzag-content p {
        margin: 0 auto;
    }

    /* 3. 'Why Surat' Slider Cut-off Fix & Stacking Fixes */
    .split-container, .split-container.reverse-split {
        flex-direction: column;
        gap: 2rem;
    }

    /* Reset Container Widths & Margins for 'Why Surat' section */
    .surat-secret {
        width: 100%;
        max-width: 100vw;
        margin-left: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden;
    }

    /* Fix the Image */
    .surat-secret .split-image,
    .surat-secret .split-image img {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto;
        display: block;
        height: auto;
        position: static;
        min-height: auto;
    }

    /* Fix the Horizontal Slider (The Peek Effect) */
    .story-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        width: 100%;
        padding-bottom: 20px;
        margin-left: 0;
        gap: 15px;
        margin-top: 1rem !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .story-grid::-webkit-scrollbar {
        display: none;
    }

    /* Fix the Cards & Text Wrapping */
    .story-item {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: start;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        background: rgba(255, 255, 255, 0.03);
        padding: 2rem;
        border-radius: 12px;
        border-left: none;
        border-top: 3px solid rgba(255,255,255,0.1);
        transition: border-color 0.4s ease;
    }

    .story-item:hover, .highlight-story {
        border-top-color: var(--color-accent);
        border-left: none;
    }

    .highlight-story {
        background: linear-gradient(to bottom, rgba(212, 175, 55, 0.08), rgba(255,255,255,0.03));
        transform: none;
    }
}
