/* ============================================
   MISTLEMASS — THE ULTIMATE CHRISTMAS EXPERIENCE
   Premium Dark Luxury Christmas Aesthetic
   ============================================ */

:root {
    /* Color Palette */
    --bg-primary: #050507;
    --bg-secondary: #0B0B12;
    --red-deep: #A30D27;
    --red-velvet: #D41435;
    --ice-blue: #A9DFFF;
    --chrome-silver: #D8E0EB;
    --snow-white: #F7F8FF;
    --purple-subtle: #8065FF;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1400px;
    
    /* Effects */
    --chrome-gradient: linear-gradient(135deg, #D8E0EB 0%, #F7F8FF 25%, #A9DFFF 50%, #D8E0EB 75%, #F7F8FF 100%);
    --red-gradient: linear-gradient(135deg, #A30D27 0%, #D41435 50%, #A30D27 100%);
    --glow-red: 0 0 40px rgba(212, 20, 53, 0.4);
    --glow-ice: 0 0 40px rgba(169, 223, 255, 0.3);
    --text-shadow-chrome: 0 2px 10px rgba(0,0,0,0.5), 0 0 40px rgba(169,223,255,0.3);
    --text-shadow-red: 0 2px 10px rgba(0,0,0,0.5), 0 0 40px rgba(212,20,53,0.4);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--snow-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Selection */
::selection {
    background: var(--red-velvet);
    color: var(--snow-white);
}

/* ============================================
   PRELOADER / INTRO — REMOVED
   ============================================ */
/* Intro removed — site loads immediately */

/* Fix: Ensure canvas elements have proper dimensions */
#hero-canvas,
#experience-canvas,
#community-canvas {
    display: block;
    outline: none;
}

/* ============================================
   SOUND TOGGLE
   ============================================ */
.sound-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(11, 11, 18, 0.8);
    border: 1px solid rgba(216, 224, 235, 0.2);
    color: var(--chrome-silver);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sound-toggle:hover {
    background: rgba(216, 224, 235, 0.1);
    border-color: var(--chrome-silver);
    transform: scale(1.1);
}

.sound-toggle svg {
    width: 20px;
    height: 20px;
}

.sound-toggle .sound-on { display: none; }
.sound-toggle .sound-off { display: block; }
.sound-toggle.playing .sound-on { display: block; }
.sound-toggle.playing .sound-off { display: none; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 20px 40px;
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9), transparent);
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    border-bottom: 1px solid rgba(216, 224, 235, 0.1);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--snow-white);
    text-decoration: none;
    background: var(--chrome-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--text-shadow-chrome);
}

.nav-links {
    display: flex;
    gap: 45px;
}

.nav-link {
    color: var(--chrome-silver);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red-velvet);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--snow-white);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--chrome-silver);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 7, 0.4) 70%, rgba(5, 5, 7, 0.9) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 25px;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 14vw, 12rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 0.95;
    background: var(--chrome-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromeShine 4s linear infinite;
    filter: drop-shadow(0 0 80px rgba(169, 223, 255, 0.4)) drop-shadow(0 4px 30px rgba(0,0,0,0.8));
    text-transform: uppercase;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.6em;
    color: var(--chrome-silver);
    margin-bottom: 60px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 56px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.btn-primary {
    background: var(--red-gradient);
    color: var(--snow-white);
    box-shadow: var(--glow-red), 0 4px 20px rgba(0,0,0,0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 70px rgba(212, 20, 53, 0.6), 0 4px 20px rgba(0,0,0,0.4);
}

.btn-secondary {
    background: rgba(216, 224, 235, 0.05);
    color: var(--chrome-silver);
    border: 2px solid rgba(216, 224, 235, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(216, 224, 235, 0.15);
    border-color: var(--chrome-silver);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.btn-large {
    padding: 24px 70px;
    font-size: 1rem;
    letter-spacing: 0.3em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--chrome-silver));
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(0.5); opacity: 1; }
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--chrome-silver);
    opacity: 0.6;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 100px;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 25px;
    background: var(--chrome-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    line-height: 1.1;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--chrome-silver);
    opacity: 0.8;
    text-transform: uppercase;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.experience-canvas-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    margin-top: 40px;
}

#experience-canvas {
    width: 100%;
    height: 100%;
}

.experience-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--chrome-silver);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.6;
    pointer-events: none;
}

.experience-hint p {
    margin: 5px 0;
}

/* ============================================
   COUNTDOWN SECTION
   ============================================ */
.countdown-section {
    position: relative;
    padding: var(--section-padding) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.countdown-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(163, 13, 39, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(169, 223, 255, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.countdown-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.countdown-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 70px;
    color: var(--chrome-silver);
    text-transform: uppercase;
    text-shadow: var(--text-shadow-chrome);
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 0.9;
    background: var(--chrome-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromeShine 3s linear infinite;
    filter: drop-shadow(0 0 40px rgba(169, 223, 255, 0.3)) drop-shadow(0 4px 20px rgba(0,0,0,0.7));
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--chrome-silver);
    margin-top: 20px;
    opacity: 0.9;
    text-transform: uppercase;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--red-velvet);
    animation: separatorPulse 1s ease-in-out infinite;
    text-shadow: var(--glow-red), 0 0 60px rgba(212,20,53,0.6);
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.countdown-date {
    margin-top: 60px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5em;
    color: var(--red-velvet);
    text-transform: uppercase;
    text-shadow: var(--text-shadow-red);
}

/* ============================================
   GIFT ROOM SECTION
   ============================================ */
.gifts-section {
    padding: var(--section-padding) 40px;
    background: var(--bg-secondary);
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.gift-card {
    position: relative;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.gift-box {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-card:hover .gift-box {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.gift-card.opened .gift-box {
    transform: rotateY(180deg);
}

.gift-body {
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 70%;
    border-radius: 8px;
    transform: translateZ(20px);
}

.gift-lid {
    position: absolute;
    top: 15%;
    left: 5%;
    right: 5%;
    height: 20%;
    border-radius: 8px;
    transform: translateZ(30px);
    transition: transform 0.6s ease;
}

.gift-card.opened .gift-lid {
    transform: translateZ(30px) translateY(-80px) rotateX(-30deg);
}

.gift-ribbon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 30px;
    transform: translateX(-50%) translateZ(35px);
}

.gift-bow {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 60px;
    height: 40px;
    transform: translateX(-50%) translateZ(40px);
}

/* Gift Variants */
.gift-chrome .gift-body,
.gift-chrome .gift-lid {
    background: linear-gradient(135deg, #D8E0EB 0%, #F7F8FF 50%, #A9DFFF 100%);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.3);
}

.gift-chrome .gift-ribbon,
.gift-chrome .gift-bow {
    background: var(--red-gradient);
}

.gift-black .gift-body,
.gift-black .gift-lid {
    background: linear-gradient(135deg, #0B0B12 0%, #1a1a25 50%, #0B0B12 100%);
    border: 1px solid var(--ice-blue);
    box-shadow: 0 0 30px rgba(169, 223, 255, 0.2);
}

.gift-black .gift-ribbon,
.gift-black .gift-bow {
    background: var(--ice-blue);
    box-shadow: 0 0 20px rgba(169, 223, 255, 0.5);
}

.gift-red .gift-body,
.gift-red .gift-lid {
    background: var(--red-gradient);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
}

.gift-red .gift-ribbon,
.gift-red .gift-bow {
    background: var(--chrome-gradient);
}

.gift-glass .gift-body,
.gift-glass .gift-lid {
    background: rgba(169, 223, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(169, 223, 255, 0.3);
    box-shadow: inset 0 0 30px rgba(169, 223, 255, 0.1);
}

.gift-glass .gift-ribbon,
.gift-glass .gift-bow {
    background: rgba(247, 248, 255, 0.8);
}

.gift-star .gift-body,
.gift-star .gift-lid {
    background: linear-gradient(135deg, #0B0B12 0%, #151520 100%);
    border: 1px solid rgba(216, 224, 235, 0.2);
}

.gift-star .gift-ribbon,
.gift-star .gift-bow {
    background: var(--chrome-gradient);
}

.gift-star-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(45px);
    font-size: 3rem;
    color: var(--chrome-silver);
    text-shadow: 0 0 30px rgba(216, 224, 235, 0.8);
    animation: starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) translateZ(45px) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) translateZ(45px) scale(1.1); }
}

.gift-signature .gift-body,
.gift-signature .gift-lid {
    background: linear-gradient(135deg, #A30D27 0%, #D41435 50%, #A30D27 100%);
    box-shadow: 0 0 40px rgba(212, 20, 53, 0.3);
}

.gift-signature .gift-ribbon,
.gift-signature .gift-bow {
    background: var(--chrome-gradient);
}

.gift-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(45px);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--snow-white);
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.gift-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: 8px;
    transform: rotateY(180deg) translateZ(20px);
    backface-visibility: hidden;
}

.gift-reveal h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--chrome-silver);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gift-reveal p {
    color: var(--chrome-silver);
    opacity: 0.8;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ============================================
   TOKEN SECTION
   ============================================ */
.token-section {
    position: relative;
    padding: var(--section-padding) 40px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, rgba(163, 13, 39, 0.1) 0%, transparent 60%),
        var(--bg-primary);
}

.token-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.token-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 70px;
    background: var(--chrome-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

.token-info {
    background: rgba(11, 11, 18, 0.9);
    border: 1px solid rgba(216, 224, 235, 0.15);
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 60px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.token-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(216, 224, 235, 0.1);
}

.token-row:last-child {
    border-bottom: none;
}

.token-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--chrome-silver);
    opacity: 0.8;
    text-transform: uppercase;
}

.token-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--snow-white);
    letter-spacing: 0.05em;
}

.contract-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.contract-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.contract-address {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ice-blue);
    background: rgba(169, 223, 255, 0.08);
    padding: 18px 24px;
    border-radius: 12px;
    border: 1px solid rgba(169, 223, 255, 0.25);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.copy-btn {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(216, 224, 235, 0.1);
    border: 1px solid rgba(216, 224, 235, 0.25);
    color: var(--chrome-silver);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(216, 224, 235, 0.25);
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
}

.token-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: var(--section-padding) 40px;
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery placeholder gradients */
.gallery-1 { background: linear-gradient(135deg, #0B0B12 0%, #A30D27 50%, #0B0B12 100%); }
.gallery-2 { background: linear-gradient(135deg, #1a1a25 0%, #D8E0EB 50%, #1a1a25 100%); }
.gallery-3 { background: linear-gradient(135deg, #A9DFFF 0%, #0B0B12 50%, #A9DFFF 100%); }
.gallery-4 { background: linear-gradient(135deg, #D41435 0%, #0B0B12 50%, #D41435 100%); }
.gallery-5 { background: linear-gradient(135deg, #F7F8FF 0%, #0B0B12 50%, #F7F8FF 100%); }
.gallery-6 { background: linear-gradient(135deg, #8065FF 0%, #0B0B12 50%, #8065FF 100%); }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    background: linear-gradient(to top, rgba(5, 5, 7, 0.95), transparent);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community-section {
    position: relative;
    padding: var(--section-padding) 40px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#community-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.community-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.community-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 50px;
    color: var(--chrome-silver);
    text-transform: uppercase;
    text-shadow: var(--text-shadow-chrome);
}

.community-emblem {
    margin: 50px 0;
}

.emblem-text {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    background: var(--chrome-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromeShine 4s linear infinite;
    filter: drop-shadow(0 0 80px rgba(169, 223, 255, 0.4)) drop-shadow(0 4px 30px rgba(0,0,0,0.8));
    text-transform: uppercase;
}

.community-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    color: var(--chrome-silver);
    margin-bottom: 60px;
    opacity: 0.9;
    text-transform: uppercase;
}

.community-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 48px;
    background: rgba(216, 224, 235, 0.08);
    border: 2px solid rgba(216, 224, 235, 0.25);
    color: var(--chrome-silver);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-social:hover {
    background: rgba(216, 224, 235, 0.2);
    border-color: var(--chrome-silver);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 40px 40px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(216, 224, 235, 0.1);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    background: var(--chrome-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--chrome-silver);
    opacity: 0.7;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--chrome-silver);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-velvet);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--snow-white);
}

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

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(216, 224, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chrome-silver);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--red-velvet);
    color: var(--snow-white);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(216, 224, 235, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--chrome-silver);
    opacity: 0.6;
    text-transform: uppercase;
}

/* ============================================
   COPY NOTIFICATION
   ============================================ */
.copy-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--red-velvet);
    color: var(--snow-white);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: var(--glow-red);
}

.copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SNOWFLAKES (Global)
   ============================================ */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 5;
    pointer-events: none;
    color: var(--snow-white);
    opacity: 0.6;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift, 0px)) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-large,
    .gallery-wide {
        grid-column: span 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .gifts-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .gallery-large,
    .gallery-wide {
        grid-column: span 1;
    }
    
    .token-info {
        padding: 30px;
    }
    
    .contract-wrapper {
        flex-direction: column;
    }
    
    .contract-address {
        width: 100%;
        text-align: center;
    }
    
    .token-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .community-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-social {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .snowflake {
        display: none;
    }
}

/* Fix: Mobile menu */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 30px;
        gap: 25px;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid rgba(216, 224, 235, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
