/* style.css - Eco-Brutalist Premium Design System */

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES & RESET
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #0A0D0B;         /* Deep obsidian green/grey */
    --bg-card: rgba(16, 22, 18, 0.6); /* Translucent dark emerald glass */
    --text-primary: #F5F5F7;       /* Apple-like premium off-white */
    --text-secondary: #8E918F;     /* Muted olive grey */
    --accent-green: #05C46B;       /* Vibrant emerald green */
    --accent-green-bright: #00FF87;/* Electric spring green */
    --accent-green-glow: rgba(5, 196, 107, 0.4);
    
    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-elastic: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none; /* Prevents awkward selections during drag/scroll */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Selection style */
::selection {
    background-color: var(--accent-green);
    color: #000;
}

/* ==========================================================================
   2. CUSTOM PREMIUM CURSOR (Desktop Only)
   ========================================================================== */
.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green-bright);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent-green);
    background-color: rgba(5, 196, 107, 0.03);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.08s linear, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Hover States for Cursor */
body.hovering-link .custom-cursor {
    width: 16px;
    height: 16px;
    background-color: var(--accent-green);
}
body.hovering-link .custom-cursor-follower {
    width: 56px;
    height: 56px;
    border-color: var(--accent-green-bright);
    background-color: rgba(5, 196, 107, 0.08);
}

/* ==========================================================================
   3. BACKGROUND WEBGL & LIGHT BACKDROPS
   ========================================================================== */
#sequence-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Lowest background layer */
    pointer-events: none;
}

.canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Rich dark gradient mask to keep text perfectly legible */
    background: linear-gradient(135deg, rgba(10, 13, 11, 0.85) 0%, rgba(6, 8, 7, 0.9) 100%);
    z-index: 2; /* Sits on top of the image canvas */
    pointer-events: none;
}

#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3; /* Sits on top of overlay to overlay the floating green leaves/orbs */
    pointer-events: none;
}

/* ==========================================================================
   4. NAVIGATION HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(10, 13, 11, 0.7);
}

.logo-link {
    text-decoration: none;
    z-index: 101;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-green);
    margin-left: 0.1rem;
}

.desktop-nav {
    display: flex;
    gap: 3rem;
}

.nav-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-green);
    transition: var(--transition-smooth);
}

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

.nav-item:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.03);
    z-index: 99;
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--accent-green), var(--accent-green-bright));
    box-shadow: 0 0 8px var(--accent-green-glow);
}

/* ==========================================================================
   5. BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */
.btn {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-sm {
    padding: 0.8rem 1.6rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    padding: 1.2rem;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #0A0D0B;
    box-shadow: 0 4px 20px rgba(5, 196, 107, 0.15);
}

.btn-primary:hover {
    background-color: var(--accent-green-bright);
    box-shadow: 0 8px 30px var(--accent-green-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background-color: rgba(5, 196, 107, 0.02);
    transform: translateY(-2px);
}

.download-icon {
    transition: transform 0.3s ease;
}

.btn-secondary:hover .download-icon {
    transform: translateY(2px);
}

/* ==========================================================================
   6. SCROLL LAYOUT & SECTIONS
   ========================================================================== */
.scroll-container {
    position: relative;
    z-index: 10; /* Sits above ThreeJS canvas */
    width: 100%;
}

.scroll-section {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Asymmetric grid for desktop */
    align-items: center;
    padding: 120px 8%;
    position: relative;
}

/* Alter Grid direction for visual rhythm */
#sec-impact {
    grid-template-columns: 1fr 1.2fr;
}

#sec-cta {
    grid-template-columns: 1.2fr 1fr; /* Split layout for copy and video mockup */
    align-items: center;
}

#sec-cta .cta-actions {
    justify-content: flex-start; /* Align left to match layout */
}

.section-content {
    max-width: 650px;
    z-index: 15;
    opacity: 0; /* Animated by GSAP */
    transform: translateY(40px); /* Animated by GSAP */
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Video Column and Mockup Player */
.video-column {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 15;
}

.video-container {
    width: 100%;
    max-width: 320px; /* Elegant slim frame for the bottle mockup */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-video {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen; /* Blends out the black background of the render, leaving the bottle floating */
}

/* Badge Utility */
.badge {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.badge-green {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background-color: rgba(5, 196, 107, 0.05);
}

/* Typography styles */
.massive-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Asymmetric lists */
.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.bullet-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bullet-icon {
    color: var(--text-primary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.green-icon {
    color: var(--accent-green);
}

.bullet-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bullet-text strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.bullet-text span {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* CTA layout */
.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* ==========================================================================
   7. GLASS-FORM CONTAINER & CONTACT INFOS
   ========================================================================== */
.glass-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-column {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    z-index: 15;
}

@media (max-width: 768px) {
    .form-column {
        justify-content: center;
        margin-top: 2rem;
    }
    .glass-form-container {
        padding: 1.8rem 1.2rem;
    }
}

.contact-info-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-value:hover {
    color: var(--accent-green);
}

/* Form Styles */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-green);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(5, 196, 107, 0.1);
}

/* custom styling for drop-down option colors */
.form-group select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Form Success State styling */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1rem 0;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon {
    color: var(--accent-green);
    background-color: rgba(5, 196, 107, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 30px rgba(5, 196, 107, 0.2);
}

.form-success-message h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.form-success-message p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 1.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 1200px) {
    .massive-title {
        font-size: 3.2rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    /* Hide Custom Cursor on Tablets and Mobile Devices */
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }
    
    .site-header {
        padding: 0 2rem;
    }
    
    .desktop-nav {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .site-header {
        padding: 0 1.5rem;
    }
    
    .desktop-nav {
        display: none; /* Hide top nav links on mobile for simplicity or can map a simple side menu, but keeping it minimal is best */
    }
    
    .scroll-section {
        grid-template-columns: 1fr !important; /* Stack vertically */
        padding: 100px 1.5rem 60px 1.5rem;
        min-height: 90vh; /* Shorter for mobile scroll ergonomics */
    }
    
    /* Overlay background mask over ThreeJS on mobile so text is legible */
    .scroll-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(10, 13, 11, 0.75); /* Darker backdrop to float text on top of the background bottle */
        z-index: 5;
    }
    
    .section-content {
        z-index: 10;
        max-width: 100%;
    }
    
    .massive-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 2rem auto 0 auto;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        width: 100%;
    }
    
    /* Modal Form row stack */
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .modal-window {
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .video-column {
        margin-top: 3rem;
        justify-content: center;
        z-index: 10;
    }
    
    .video-container {
        max-width: 280px; /* Slightly narrower on mobile */
    }
}
