/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

h1, h2, h3, .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

/* Custom Cursor */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5); /* Gold border */
    border-radius: 50%;
    position: fixed;
    top: -20px;
    left: -20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.8);
    mix-blend-mode: screen;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #d4af37; /* Gold dot */
    border-radius: 50%;
    position: fixed;
    top: -3px;
    left: -3px;
    pointer-events: none;
    z-index: 10000;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}

a:hover ~ .custom-cursor, button:hover ~ .custom-cursor, .menu-btn:hover ~ .custom-cursor {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease;
}

.glassmorphism {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    font-weight: 400;
}

.menu-btn, .nav-cta-btn {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-cta-btn {
    border: 1px solid #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-cta-btn:hover {
    background: #fff;
    color: #000;
}

/* Scroll Sections */
#smooth-wrapper {
    overflow: hidden;
    width: 100%;
}

.product-container {
    overflow: hidden;
}

.pin-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.floating-product {
    max-width: 90%;
}

@media (min-width: 768px) {
    .floating-product {
        max-width: 100%;
    }
}

/* Backgrounds */
.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-video, .bg-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.bg-fallback {
    background-size: cover;
    background-position: center;
    display: none; /* Hidden by default */
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.dark-overlay { background: rgba(0, 0, 0, 0.5); }
.gradient-overlay { background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); }
.intense-overlay { background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%); }

/* Typography & Content Layout */
.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    position: relative;
    height: 100%;
    pointer-events: none;
}
.content-wrapper * {
    pointer-events: auto;
}

.text-block {
    max-width: 600px;
    padding: 0;
}

.text-block.left {
    align-self: flex-start;
}

.text-block.right {
    align-self: flex-end;
    text-align: right;
}

.text-block.center {
    align-self: center;
    text-align: center;
}

/* --- PREMIUM TYPOGRAPHY & GRADIENTS --- */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

h1 { font-size: 5rem; }
h2 { font-size: 3.5rem; }

.subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 6px; /* increased for luxury */
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 500;
}

p.description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 80%;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.text-block.left p.description { margin: 0 0 2rem; }
.text-block.right p.description { margin: 0 0 2rem auto; }

/* --- PREMIUM BUTTONS --- */
.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}
.text-block.left .button-group { justify-content: flex-start; }
.text-block.right .button-group { justify-content: flex-end; }

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Luxury Buttons */
.cta-button.primary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(10px);
}

.cta-button.primary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button.secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.staggered-text { opacity: 0; transform: translateY(30px); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.stat-item {
    text-align: right;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}
.stat-number {
    font-size: 3.5rem;
    font-family: 'Cormorant Garamond', serif;
    display: inline-block;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
}

/* Footer Section */
.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.footer-section .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.footer-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: slow-pulse 8s infinite alternate;
}

@keyframes slow-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Prefers Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
    .bg-video { display: none !important; }
    .bg-fallback { display: block !important; }
    .staggered-text { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .navbar { padding: 1.2rem; }
    .content-wrapper { padding: 0 2rem; }
    .text-block.right, .text-block.left { text-align: center; margin: 0 auto; }
    .stats-grid { text-align: center; }
    .stat-item { text-align: center; }
    .button-group { flex-direction: column; }
    .custom-cursor, .custom-cursor-dot { display: none; } /* Hide custom cursor on touch devices */
    body { cursor: auto; }
    .geo-shape { display: none; } /* Hide heavy 3D shapes on mobile to save performance */
}

/* Premium Geometric 3D Shapes */
.geo-shape {
    position: fixed;
    z-index: 5;
    pointer-events: none;
    animation: rotate3d 30s infinite linear;
    transform-style: preserve-3d;
}

.geo-1 {
    width: 400px;
    height: 400px;
    top: 5%;
    right: -10%;
    animation-duration: 40s;
}

.geo-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -5%;
    animation-duration: 35s;
    animation-direction: reverse;
}

.geo-shape svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

@keyframes rotate3d {
    0% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    50% {
        transform: perspective(1000px) rotateX(180deg) rotateY(90deg) rotateZ(180deg);
    }
    100% {
        transform: perspective(1000px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Sound Toggle & Prompt */
.sound-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sound-prompt {
    position: absolute;
    left: 60px;
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    animation: pulse-text 2s infinite alternate;
}

@keyframes pulse-text {
    0% { opacity: 0.5; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(5px); }
}

@media (max-width: 768px) {
    .sound-toggle {
        bottom: 1rem;
        left: 1rem;
        right: auto;
        width: 40px;
        height: 40px;
        z-index: 999;
    }
    .sound-prompt {
        display: none;
    }
}

.product-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15; /* Put products IN FRONT of text */
    pointer-events: none;
    overflow: hidden; /* Prevent huge 3x scales from stretching mobile viewport */
}

.floating-product {
    position: absolute;
    max-width: 90vw; /* Prevent image from ever being wider than screen initially */
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* Floating Product Overlays */
.product-hero { 
    left: 50%;
    top: 35%; /* Placed in the top half */
    opacity: 0.8; 
    translate: -50% -50%; 
    max-height: 50vh; /* Ensure it doesn't bleed into text */
    width: auto;
}
.product-center { 
    left: 50%;
    top: 35%; /* Placed in the top half */
    translate: -50% -50%; 
    max-height: 50vh; /* Ensure it doesn't bleed into text */
    width: auto;
}
.product-right { 
    right: 10%; 
    top: 50%;
    translate: 0 -50%;
}
.product-left { 
    left: 10%; 
    top: 50%;
    translate: 0 -50%;
}

/* Push centered text down so it clears the product */
.text-block.center {
    align-self: center;
    text-align: center;
    margin-top: 40vh; /* Push text to the bottom half, safely away from product */
}

@media (max-width: 768px) {
    /* Ultimate Mobile Layout: Natural Flex Stacking */
    .pin-section {
        flex-direction: column !important;
        justify-content: center !important;
        padding-top: 10vh !important; /* Safe area for navbar */
        padding-bottom: 10vh !important; /* Safe area for sound toggle */
    }
    
    .product-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        margin-bottom: 2rem !important; /* Natural gap between image and text */
        z-index: 10 !important;
    }
    
    /* Ensure the product scales naturally */
    .product-hero, .product-center, .product-right, .product-left {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        max-height: 35vh !important; 
        max-width: 85vw !important;
        opacity: 0.9 !important;
        /* Remove translate so GSAP scale works purely from center */
        translate: none !important; 
        transform: none !important;
    } 
    
    .content-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; 
        flex: 0 0 auto !important;
        z-index: 15 !important;
    }
    
    .text-block.center, .text-block.left, .text-block.right {
        margin-top: 0; 
        align-self: center;
        text-align: center;
        width: 100%;
    }
    
    /* Force perfectly centered text on mobile */
    .text-block.center p.description, 
    .text-block.left p.description, 
    .text-block.right p.description {
        margin: 0 auto 1rem auto !important;
        text-align: center !important;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 4px;
        margin-bottom: 0.5rem;
    }
    
    .title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section .content-wrapper {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-section h2 {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }
    
    .footer-section p.description {
        font-size: 0.95rem !important;
        margin: 0 auto 1rem auto !important;
        text-align: center !important;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
        align-items: center;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Animated Sound Bars */
.sound-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 16px;
    height: 16px;
}

.bar {
    width: 3px;
    background-color: white;
    border-radius: 2px;
    animation: sound-bounce 1s infinite alternate;
}

.bar1 { height: 40%; animation-delay: 0.1s; }
.bar2 { height: 80%; animation-delay: 0.2s; }
.bar3 { height: 100%; animation-delay: 0.4s; }
.bar4 { height: 60%; animation-delay: 0.3s; }

@keyframes sound-bounce {
    0% { height: 20%; }
    100% { height: 100%; }
}
