@import url('assets/fonts/fonts.css');

:root {
    --color-bg: #131313;
    --color-bg-alt: #1a1a1a;
    --color-text: #e2e2e2;
    --color-text-muted: #cac8aa;
    --color-primary: #FFFF00; /* Electric Yellow */
    --color-border: #303030;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Hanken Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --spacing-sm: 8px;
    --spacing-md: 24px;
    --spacing-lg: 64px;
    --spacing-xl: 96px; /* Similar to py-24 */

    --transition-fast: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Stitch SVG Noise Background */
    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.05'/%3E%3C/svg%3E");
    transition: background-color 1s ease;
}

body.unchained {
    background-color: #1a1a00;
}

/* Cinematic Spotlight Overlay */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 20%), rgba(255, 255, 0, 0.08) 0%, rgba(0, 0, 0, 0) 80%);
    z-index: 40;
    transition: opacity 0.3s;
}

/* Typography Helpers */
.highlight { color: var(--color-primary); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.section-padding { padding: var(--spacing-xl) 0; }

/* Buttons & Glitch Effect */
.btn-stitch-primary {
    background-color: var(--color-primary);
    color: #000;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 4.5rem); /* Scales down automatically on mobile */
    padding: 1.5rem 4rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-fast);
    line-height: 1;
    letter-spacing: -0.02em;
    animation: throb-shake 1.5s infinite; /* Active by default */
}

.btn-stitch-outline {
    background: #000;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    padding: 1rem 2rem;
    border: 2px solid var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.btn-stitch-primary:hover, .btn-stitch-outline:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    animation: glitch-anim 0.2s linear infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 1px) }
    40% { transform: translate(-1px, -1px) }
    60% { transform: translate(2px, 1px) }
    80% { transform: translate(1px, -1px) }
    100% { transform: translate(0) }
}

@keyframes throb-shake {
    0%, 100% { transform: scale(1) translateX(0); box-shadow: 0 0 30px rgba(255,255,0,0.3); }
    10% { transform: scale(1.05) translateX(-2px); box-shadow: 0 0 50px rgba(255,255,0,0.8); }
    20% { transform: scale(1.05) translateX(2px); box-shadow: 0 0 50px rgba(255,255,0,0.8); }
    30% { transform: scale(1.05) translateX(-2px); box-shadow: 0 0 50px rgba(255,255,0,0.8); }
    40% { transform: scale(1) translateX(0); box-shadow: 0 0 30px rgba(255,255,0,0.3); }
}

.btn-calm {
    animation: none !important;
    transform: scale(1) !important;
    box-shadow: 0 0 10px rgba(255,255,0,0.2) !important;
    background-color: var(--color-primary) !important;
    color: #000 !important;
    border-color: transparent !important;
}

/* Header */
.site-header {
    background-color: rgba(19,19,19,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Shimmer Text Effect from Stitch */
.glow-text, .shimmer-text {
    animation: shimmer 4s infinite random;
}

@keyframes shimmer {
    0% { opacity: 1; text-shadow: 0 0 10px rgba(255,255,0,0.2); }
    5% { opacity: 0.8; text-shadow: none; }
    10% { opacity: 1; text-shadow: 0 0 15px rgba(255,255,0,0.4); }
    15% { opacity: 0.9; text-shadow: 0 0 5px rgba(255,255,0,0.1); }
    20% { opacity: 1; text-shadow: 0 0 20px rgba(255,255,0,0.5); }
    100% { opacity: 1; text-shadow: 0 0 10px rgba(255,255,0,0.2); }
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
}

.nav-shop-link {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-icon { display: none; }

@media (max-width: 768px) {
    .main-nav { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(19,19,19,0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    .main-nav.mobile-active {
        display: flex;
        justify-content: center;
    }
    .main-nav.mobile-active ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .nav-shop-link { display: none; }
    .mobile-menu-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .mobile-menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        transition: var(--transition-fast);
    }
    /* Simple X animation for active menu */
    .mobile-menu-icon.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-icon.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-icon.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .logo { font-size: 1.8rem; }
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5%; /* Controls distance between button and image */
    overflow: hidden;
    background-color: var(--color-bg);
}

.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #222 0%, #000 100%);
    z-index: 1;
}

.hero-mannequin {
    position: relative;
    height: 90%;
    width: auto;
    object-fit: contain;
    z-index: 4;
    filter: drop-shadow(0 0 40px rgba(0,0,0,0.9));
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    animation: floatDesktop 6s ease-in-out infinite;
}

@keyframes floatDesktop {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3;
}

.hero-center-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.counter-box {
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-primary);
    background: var(--color-bg-alt);
    text-transform: uppercase;
}

.pulse-count {
    animation: counterPulse 0.4s ease-out;
}

@keyframes counterPulse {
    0% { transform: scale(1); color: var(--color-primary); }
    50% { transform: scale(1.2); color: #fff; text-shadow: 0 0 20px var(--color-primary); }
    100% { transform: scale(1); color: var(--color-primary); }
}

.scroll-indicator-arrow {
    margin-top: 1rem;
    color: var(--color-text-muted);
    animation: pulseDown 2s infinite ease-in-out;
}

@keyframes pulseDown {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(15px); opacity: 1; }
}

.quote-section {
    background-color: var(--color-bg);
    padding-bottom: calc(var(--spacing-xl) - 30px); /* Reduced distance to next block */
}

.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 7.2vw, 4.8rem); /* 20% larger */
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    text-transform: uppercase;
    text-wrap: balance; /* Automatically balances line lengths to avoid ugly orphans */
}

.quote-author {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #fff;
    text-align: right;
    max-width: 1000px;
    margin: 1rem auto 0 auto;
}

/* Tape Effect */
.tape-effect {
    position: relative;
    display: inline-block;
    background-color: #000;
    padding: 4px 12px;
    color: #fff;
    transform: rotate(-2deg);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.tape-effect::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Grid Section */
.grid-section {
    background-color: var(--color-bg);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.grid-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    min-h: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-fast);
}

.grid-card:hover {
    border-color: var(--color-primary);
}

.bg-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
    z-index: 1;
    line-height: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.grid-card:hover .card-title {
    transform: translateX(10px);
}

.card-title.highlight { color: var(--color-primary); }

.card-text {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.card-highlight {
    background: linear-gradient(to top, rgba(255,255,0,0.05), transparent);
    border-color: rgba(255,255,0,0.2);
}

.card-highlight .bg-number {
    color: rgba(255,255,0,0.2);
}

.card-label {
    display: inline-block;
    background-color: var(--color-primary);
    color: #000;
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .grid-container { grid-template-columns: 1fr; }
    .hero { flex-direction: column; justify-content: flex-start; padding-top: 0; padding-left: 0; }
    .hero-mannequin { 
        position: relative; 
        top: 0; 
        right: auto; 
        left: auto; 
        width: 100vw; 
        max-width: 100vw; 
        height: 65vh; /* Slightly taller to ensure it extends behind the box */
        object-fit: cover; 
        object-position: center 30%; 
        z-index: 5; 
        margin-top: -2rem; 
        margin-bottom: 0; /* Removed bottom margin */
        animation: floatMobile 6s ease-in-out infinite; 
        filter: none; 
    }
    @keyframes floatMobile { 
        0% { transform: scale(1.2) translateY(0); } 
        50% { transform: scale(1.2) translateY(-15px); } 
        100% { transform: scale(1.2) translateY(0); } 
    }
    .hero-center-content { 
        text-align: center; 
        width: 100%; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        position: relative; 
        z-index: 10; 
        margin-top: -8vh; /* Moved down an additional 20-25px */
    }
    
    .manifest-yellow-box {
        display: flex;
        justify-content: center;
        width: 110vw;
        transform: rotate(-7deg);
    }
    
    .counter-box {
        margin-top: -5px;
        transform: rotate(-4deg);
    }
    
    .scroll-indicator-arrow {
        margin-top: 11px;
    }
    
    .btn-stitch-primary {
        padding-left: 2rem;
        padding-right: 2rem;
        width: auto;
        max-width: 95vw;
    }
    
    .counter-box {
        width: 90%;
        max-width: 340px;
        box-sizing: border-box;
        justify-content: center;
        font-size: clamp(0.6rem, 3.5vw, 0.85rem); /* Ensures it shrinks to fit */
        white-space: nowrap; /* Prevents text from breaking into two lines */
        padding: 0.5rem; /* Slightly less padding to save space */
    }
}

/* CTA Section */
.cta-section {
    background-color: var(--color-bg);
    padding: var(--spacing-xl) 0;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 6rem);
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Chains Animation */
.chain-container {
    position: relative;
    display: inline-block;
}

#btn-unchain-main {
    position: relative;
    z-index: 10; /* Button is ABOVE the chains so it stays readable */
}

#three-canvas-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Full width */
    height: 120vh; /* Taller than screen to prevent any clipping */
    transform: translate(-50%, -50%);
    z-index: 1; /* BEHIND the button */
    pointer-events: none; /* Clicks pass through */
}

.counter-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 3rem !important;
}

/* Shop Banner */
.shop-banner-section {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.shop-banner-box {
    border: 1px solid var(--color-border);
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.shop-banner-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background-color: #000;
    padding: 3rem 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.counter-box span:nth-child(2) {
    font-weight: 800;
    color: var(--color-primary);
}

.manifest-yellow-box {
    background-color: var(--color-primary);
    color: #000;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.scroll-prompt {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.85);
    padding: 12px 18px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(239, 255, 0, 0.2);
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.scroll-prompt.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-prompt:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 25px rgba(239, 255, 0, 0.4);
}

.scroll-prompt:hover .arrow-down {
    color: #000;
}

.arrow-down {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: rgba(255,255,0,0.6);
}

@media (max-width: 768px) {
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 0.5rem; }
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }

/* Language Switcher Dropdown & Header CTA */
.header-cta {
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 1.5rem;
}
.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s;
}
.lang-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid #303030;
    border-radius: 4px;
    flex-direction: column;
    min-width: 70px;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.lang-dropdown:hover .lang-dropdown-menu {
    display: flex;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--color-text) !important;
    text-decoration: none !important;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}
.lang-option:hover {
    background: #333;
    color: var(--color-primary) !important;
}
.lang-option img {
    border-radius: 2px;
}
