:root {
    --primary: #D4AF37; /* Premium Gold */
    --primary-dark: #AA8C2C;
    --bg-dark: #050505; /* Deep Cinematic Black */
    --bg-surface: rgba(20, 20, 20, 0.6);
    --bg-surface-glass: rgba(10, 10, 10, 0.3);
    --text-main: #f5f5f5;
    --text-muted: #888888;
    --tobacco-brown: #8B5A2B;
    --transition: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom cursor */
}

html {
    scroll-behavior: initial; /* Managed by Lenis */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Noise texture overlay */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--transition), height 0.3s var(--transition), background 0.3s var(--transition), mix-blend-mode 0.3s;
    mix-blend-mode: difference;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background: #fff;
    mix-blend-mode: difference;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    line-height: 1.1;
    text-transform: uppercase;
}

.mega-title {
    font-size: 8vw;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.mega-title span {
    color: var(--primary);
    -webkit-text-stroke: 0px;
}

.mega-title.solid {
    color: #fff;
    -webkit-text-stroke: 0px;
}

.section-title {
    font-size: 4vw;
    margin-bottom: 2rem;
    font-weight: 400;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.large-p {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

.section {
    padding: 10vw 0;
    position: relative;
}

/* Header (Glassmorphism) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.5s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 1px;
    background: var(--primary);
    transition: width 0.4s var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Buttons (Magnetic style) */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.btn-magnetic span {
    position: relative;
    z-index: 2;
    transition: transform 0.4s var(--transition);
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 100%; left: 0;
    width: 100%; height: 100%;
    background: var(--primary);
    transition: transform 0.4s var(--transition);
    border-radius: 50px;
    z-index: 1;
}

.btn-magnetic:hover {
    border-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-magnetic:hover::before {
    transform: translateY(-100%);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
}

/* Image Reveals & Parallax */
.img-reveal-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.img-reveal {
    width: 100%;
    height: 120%; /* For parallax */
    object-fit: cover;
    transform: scale(1.2); /* Initial scale for GSAP reveal */
    will-change: transform;
}

/* Cinematic Grid */
.c-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.c-col-4 { grid-column: span 4; }
.c-col-6 { grid-column: span 6; }
.c-col-8 { grid-column: span 8; }
.c-col-12 { grid-column: span 12; }

/* Cards / Glass Panels */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s var(--transition), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
    transform: translateY(-10px);
}

/* Floating Leaves */
#floating-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1; /* Above bg, below content */
    overflow: hidden;
}

.leaf {
    position: absolute;
    opacity: 0.15;
    fill: var(--primary);
    will-change: transform;
}

/* Interactive Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    padding-left: 5vw; /* align with container slightly */
    padding-right: 5vw;
}

.carousel-card {
    width: 500px;
    flex-shrink: 0;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
    transition: transform 0.4s var(--transition);
}

/* Footer */
footer {
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020202;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { color: var(--text-muted); transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary); }

/* GSAP Utils */
.gsap-reveal {
    opacity: 0;
    transform: translateY(50px);
}
.gsap-line {
    overflow: hidden;
}
.gsap-line-inner {
    transform: translateY(100%);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .story-grid, .export-grid, .contact-grid, .product-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .img-reveal-wrapper {
        height: 55vh !important;
    }
    
    .c-col-4, .c-col-6, .c-col-8 {
        grid-column: span 12;
    }
    
    .huge-number {
        position: relative;
        font-size: 25vw;
        opacity: 0.15;
        left: 0;
        top: 0;
        margin-bottom: -15vw;
    }
    
    .mega-title {
        font-size: 15vw;
    }
    
    .section-title {
        font-size: 8vw;
    }
    
    .glass-panel {
        margin-top: 2rem !important;
        padding: 2rem;
    }
    
    .hero-sub {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop nav */
    .nav-links {
        display: none;
    }
    
    .img-reveal-wrapper {
        height: 40vh !important;
    }
    
    /* Hamburger Icon (injected via JS) */
    .hamburger {
        display: block;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
        z-index: 10001;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        z-index: 10000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s var(--transition);
    }
    
    .mobile-menu-overlay.open {
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-overlay .nav-links-mobile {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        list-style: none;
    }
    
    .mobile-menu-overlay a {
        font-size: 2rem;
        color: #fff;
        font-family: 'Outfit', sans-serif;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    .mobile-menu-overlay a:hover {
        color: var(--primary);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Disable custom cursor on mobile */
    .cursor {
        display: none !important;
    }
    
    .page-header {
        padding: 35vw 0 10vw;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}
