@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Montserrat:wght@200;300;400;500;600&display=swap');

:root {
    /* Earthy Luxury Palette - Ultra Premium Organic Tones */
    --primary-earth: #4A3728;      /* Rich Chocolate */
    --primary-light: #8B6B4E;      /* Muted Clay */
    --accent-gold: #D4AF37;       /* Harvest Gold */
    --secondary-moss: #2D3B2D;    /* Deep Forest Moss */
    --bg-warm: #FDFCFB;           /* Soft Linen */
    --bg-beige: #F3E5D8;          /* Warm Sand */
    --text-deep: #1A1410;         /* Espresso */
    --text-muted: #6B5E54;        /* Driftwood */

    /* Glassmorphism Refined */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(74, 55, 40, 0.1);
    
    /* Animation Tokens */
    --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Great Logo Premium Effects */
.great-text-gradient {
    background: linear-gradient(to right, var(--primary-earth) 20%, var(--accent-gold) 40%, var(--primary-light) 60%, var(--primary-earth) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Core Reset & Smooth Scroll Native */
html {
    scroll-behavior: auto;
    /* Handled by Lenis if used, else native */
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-deep);
    overflow-x: hidden;
    cursor: auto !important;
}

*, *::before, *::after {
    box-sizing: inherit;
}

h1,
h2,
h3,
h4,
.font-cinzel {
    font-family: 'Cinzel', serif;
}

/* Custom Cursor (Original Classic) */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 67, 49, 0.15);
    /* Slightly darker gold/green for better visibility */
}

/* Removed aggressive cursor hider */

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* --- Advanced Liquid Glass --- */
.liquid-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px 0 rgba(74, 55, 40, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(74, 55, 40, 0.05);
    position: relative;
    overflow: hidden;
}

/* Liquid gloss shine overlay */
.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: liquidShine 6s infinite;
    pointer-events: none;
}

@keyframes liquidShine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* --- Skeuomorphic UI --- */
.skeuomorphic {
    background: var(--bg-warm);
    border-radius: 16px;
    box-shadow:
        10px 10px 20px rgba(74, 55, 40, 0.1),
        -10px -10px 20px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skeuomorphic:hover {
    box-shadow:
        5px 5px 10px rgba(26, 67, 49, 0.12),
        -5px -5px 10px rgba(255, 255, 255, 1);
    transform: translateY(2px);
}

.skeuomorphic:active {
    box-shadow:
        inset 5px 5px 10px rgba(74, 55, 40, 0.1),
        inset -5px -5px 10px rgba(255, 255, 255, 1);
    transform: translateY(4px);
}

/* Skeuomorphic Button */
.btn-skeuo {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    color: white;
    border: none;
    box-shadow:
        4px 4px 10px rgba(26, 67, 49, 0.3),
        -4px -4px 10px rgba(255, 255, 255, 0.9),
        inset 1px 1px 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-skeuo:hover {
    background: linear-gradient(145deg, var(--gold), var(--gold-light));
    box-shadow:
        6px 6px 12px rgba(26, 67, 49, 0.4),
        -6px -6px 12px rgba(255, 255, 255, 1),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.btn-skeuo:active {
    box-shadow:
        inset 4px 4px 8px rgba(15, 41, 30, 0.6),
        inset -4px -4px 8px rgba(42, 96, 65, 0.4);
}

.glass-nav {
    background: linear-gradient(to bottom, rgba(253, 252, 251, 0.9) 0%, rgba(253, 252, 251, 0.8) 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(74, 55, 40, 0.05);
    box-shadow: 0 4px 20px rgba(74, 55, 40, 0.05);
    padding: 10px 0; /* Tighter navbar */
}

/* --- Removed Overlay --- */



/* Animated Underline */
.nav-link-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}



/* Canvas Particle System Layer */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    /* Behind content, above background */
    opacity: 0.6;
}



/* Scroll Story Classes */
.cinematic-section {
    min-height: auto;
    padding: 180px 0 80px 0; /* Increased offset to ensure content clears the fixed header completely */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

section {
    margin: 0;
    padding: 100px 0 60px 0; /* Increased top padding to account for fixed navbar */
}

/* Product 3D Hover Tilt */
.tilt-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tilt-element {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.tilt-element img {
    transform: translateZ(50px);
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.8));
}

/* Buttons */
.btn-luxury {
    position: relative;
    padding: 0.75rem 2rem;
    background: var(--primary-earth);
    border: 1px solid var(--primary-earth);
    color: #fff;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(85, 133, 59, 0.2), transparent);
    transition: all 0.4s ease;
}

.btn-luxury:hover {
    background: rgba(85, 133, 59, 0.1);
    box-shadow: 0 0 15px rgba(85, 133, 59, 0.2);
}

.btn-luxury:hover::before {
    left: 100%;
    transition: left 0.6s ease;
}

/* Animations */
@keyframes goldShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fillText {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Progress Bar for Checkout */
.progress-container {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 2rem 0;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-earth);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-earth);
}

/* Cinematic Start Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FAFCF8;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.8s ease-in-out;
}

.loader-leaf-wrap {
    position: relative;
    width: 250px;
    height: 250px;
}


/* The Background Leaf (Stroke/Empty) */
.leaf-bg {
    fill: none;
    stroke: var(--primary-earth);
    stroke-width: 1.5;
    opacity: 0.2;
}

/* The Filling Leaf (Clipped) */
.leaf-fill-path {
    fill: #8fb339;
    /* Natural Green */
    clip-path: url(#leafClip);
}

/* The animating rectangle that fills the clip */
#fill-rect {
    transform-box: fill-box;
    animation: leafFillAnim 3s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes leafFillAnim {
    0% {
        transform: translateY(200px);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
}


.loader-text-great {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    color: var(--gold);
    letter-spacing: 0.8em;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


/* Footer Circular Badge */
.footer-badge {
    position: relative;
    width: 100px;
    height: 100px;
    margin-left: 2rem;
}

.footer-badge-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 10s linear infinite;
}

.footer-badge-text text {
    fill: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: blur(2px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: blur(0px);
    }
}

/* Modal Entrance Animation */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slideUp {
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Ensure Revealed Content Stays Solid and Visible */
.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}


/* Page Content Unfold Surprise - Optimized to prevent fading bug */
.page-reveal {
    animation: unfold 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes unfold {
    0% {
        clip-path: inset(50% 50% 50% 50%);
        opacity: 0;
    }

    100% {
        clip-path: inset(0% 0% 0% 0%);
        opacity: 1;
    }
}



/* Surprise Micro-animations */
.surprise-hover {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.surprise-hover:hover {
    letter-spacing: 0.3em;
    color: var(--gold) !important;
}

/* Floating Nut Surprise enhancement */
.floating-nut {
    transition: transform 0.3s ease-out;
    will-change: transform;
}


/* Custom Leaf Back Button */
.leaf-back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(26, 67, 49, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.leaf-back-btn:hover {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 67, 49, 0.4);
    background-color: var(--gold-light);
}

.leaf-back-btn svg {
    transform: rotate(-45deg);
    color: var(--bg-deep);
    width: 20px;
    height: 20px;
}