* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Teko', sans-serif;
    background-color: rgb(0, 0, 0);
    color: rgb(250, 248, 240);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   SCENE SYSTEM - FULL VIEWPORT IMMERSIVE
   ============================================ */
.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   LAYER SYSTEM - MULTI-DEPTH PARALLAX
   ============================================ */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.layer-bg {
    z-index: 1;
}

.layer-mid {
    z-index: 2;
}

.layer-front {
    z-index: 3;
}

/* ============================================
   IMAGES - RESPONSIVE CONTAINERS
   ============================================ */
.scene-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Prevent layout shift while images load */
.scene-image, .pyramids-gif, .scene-video, .scene-video-gif {
    background-color: rgb(0, 0, 0);
}

/* Keep cover mode on mobile for full bleed */
@media (max-width: 768px) {
    .scene-image {
        object-fit: cover;
    }
}

.floating-character {
    max-width: 350px;
    width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.floating-character.large {
    max-width: 500px;
}

.floating-character.medium {
    max-width: 400px;
}

.hero-character {
    max-width: 600px;
    width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(251, 182, 59, 0.8));
}

.hero-character.massive {
    max-width: 700px;
}

.number-visual {
    max-width: 300px;
    width: 60%;
    height: auto;
    object-fit: contain;
    opacity: 0.2;
}

/* ============================================
   VIDEOS & GIFS
   ============================================ */
.scene-video,
.scene-video-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Show video on desktop, GIF on mobile */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    /* Show full video/gif without cropping on mobile */
    .scene-video-gif {
        object-fit: contain;
        width: 100%;
        height: 100vh;
    }
}

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */
.gradient-bg {
    width: 100%;
    height: 100%;
}

.purple-green {
    background: linear-gradient(135deg, rgb(103, 28, 209) 0%, rgb(34, 172, 50) 100%);
}

.green-purple {
    background: linear-gradient(135deg, rgb(34, 172, 50) 0%, rgb(103, 28, 209) 100%);
}

.purple-yellow {
    background: linear-gradient(135deg, rgb(103, 28, 209) 0%, rgb(251, 182, 59) 100%);
}

.yellow-green {
    background: linear-gradient(135deg, rgb(251, 182, 59) 0%, rgb(34, 172, 50) 100%);
}

/* ============================================
   CONTENT POSITIONING
   ============================================ */
.scene-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 90%;
    padding: 2rem;
    text-align: left;
}

.scene-content.centered {
    text-align: center;
}

.scene-content.bottom {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.scene-title {
    font-family: 'Bakbak One', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    color: rgb(251, 182, 59);
    line-height: 1.2;
}

.scene-title.epic {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: rgb(255, 255, 255);
}

.scene-text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: rgb(250, 248, 240);
    line-height: 1.6;
}

.scene-text.large {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
}

.scene-subtext {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: rgb(250, 248, 240);
    opacity: 0.8;
    margin-top: 1rem;
}

.scene-subtext.gold {
    color: rgb(251, 182, 59);
    opacity: 1;
}

/* ============================================
   HERO SECTION TYPOGRAPHY
   ============================================ */
.hero-title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: 5px;
    color: rgb(255, 255, 255);
    text-shadow: 0 0 40px rgba(251, 182, 59, 0.6);
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'Teko', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 3px;
    color: rgb(251, 182, 59);
}

/* ============================================
   NUMBERS DISPLAY
   ============================================ */
.mega-number {
    font-family: 'Bakbak One', cursive;
    font-size: clamp(6rem, 20vw, 15rem);
    color: rgb(255, 255, 255);
    text-shadow: 0 0 80px rgba(251, 182, 59, 0.8);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.number-label {
    font-family: 'Teko', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 4px;
    color: rgb(251, 182, 59);
    text-transform: uppercase;
}

.numbers-display {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 4rem);
    margin: 3rem 0;
    flex-wrap: wrap;
}

.num-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.num {
    font-family: 'Bakbak One', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: rgb(251, 182, 59);
    text-shadow: 0 0 30px rgba(251, 182, 59, 0.6);
    line-height: 1;
}

.label {
    font-family: 'Teko', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 2px;
    color: rgb(250, 248, 240);
    text-transform: uppercase;
}

/* ============================================
   ACTIVATION TEXT
   ============================================ */
.activation-text {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 600;
    margin: 2rem 0;
    color: rgb(250, 248, 240);
}

/* ============================================
   LINKS & HIGHLIGHTS
   ============================================ */
.highlight {
    color: rgb(251, 182, 59);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.highlight:hover {
    opacity: 0.7;
}

.highlight-pteppic {
    font-family: 'Permanent Marker', cursive;
    color: rgb(251, 182, 59);
    font-size: clamp(2rem, 5vw, 4rem);
    text-shadow: 0 0 30px rgba(251, 182, 59, 0.8);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.highlight-pteppic:hover {
    opacity: 0.8;
}

.emphasis {
    font-weight: 600;
    font-size: clamp(1.3rem, 3.5vw, 2.5rem);
}

.gold {
    color: rgb(251, 182, 59);
}

/* ============================================
   SPECIAL SCENES
   ============================================ */
.scene-black {
    background-color: rgb(0, 0, 0);
}

.video-scene {
    background-color: rgb(0, 0, 0);
}

.epic-scene {
    background-color: rgb(103, 28, 209);
}

.final-scene {
    background: linear-gradient(135deg, rgb(34, 172, 50) 0%, rgb(103, 28, 209) 100%);
}

/* ============================================
   PYRAMIDS GIF
   ============================================ */
.pyramids-gif {
    max-width: 800px;
    width: 90%;
    height: auto;
    object-fit: contain;
}

/* ============================================
   FINAL SCENE - COMPACT LAYOUT
   ============================================ */
.final-content {
    max-width: 900px;
}

.compact-numbers {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.compact-time {
    font-family: 'Bakbak One', cursive;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: rgb(251, 182, 59);
    letter-spacing: 2px;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    font-family: 'Bakbak One', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.btn-mint {
    background: linear-gradient(135deg, rgb(251, 182, 59) 0%, rgb(255, 200, 100) 100%);
    color: rgb(35, 35, 38);
    text-shadow: none;
    box-shadow: 0 10px 30px rgba(251, 182, 59, 0.4);
}

.btn-mint:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 182, 59, 0.6);
    background: linear-gradient(135deg, rgb(255, 200, 100) 0%, rgb(251, 182, 59) 100%);
}

.btn-x {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(251, 182, 59);
    padding: 1rem;
    width: 70px;
    height: 70px;
}

.btn-x:hover {
    background-color: rgb(251, 182, 59);
    color: rgb(0, 0, 0);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 15px 40px rgba(251, 182, 59, 0.6);
}

.x-icon {
    width: 40px;
    height: 40px;
}

.footer-text {
    margin-top: 3rem;
    opacity: 0.7;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .scene-content {
        width: 95%;
        padding: 1rem;
    }

    .floating-character {
        max-width: 250px;
    }

    .cta-buttons {
        gap: 1.5rem;
    }

    .btn-mint {
        padding: 1rem 2.5rem;
    }

    .btn-x {
        width: 60px;
        height: 60px;
    }

    .x-icon {
        width: 25px;
        height: 25px;
    }

    .floating-character.large {
        max-width: 300px;
    }

    .hero-character {
        max-width: 350px;
    }

    .hero-character.massive {
        max-width: 400px;
    }

    .number-visual {
        max-width: 200px;
    }

    .numbers-display {
        gap: 1.5rem;
    }

    .scene-content.bottom {
        bottom: 5%;
    }
}

@media (max-width: 480px) {
    .floating-character {
        max-width: 200px;
    }

    .floating-character.large {
        max-width: 250px;
    }

    .hero-character {
        max-width: 280px;
    }

    .hero-character.massive {
        max-width: 320px;
    }

    .number-visual {
        max-width: 150px;
    }

    .numbers-display {
        gap: 1rem;
    }
}

/* ============================================
   SCROLL ARROW
   ============================================ */
.scroll-arrow {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    font-size: 3rem;
    animation: arrowBounce 2s ease-in-out infinite, arrowColor 3s linear infinite;
    cursor: pointer;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.scroll-arrow.hidden {
    opacity: 0;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes arrowColor {
    0% {
        color: rgb(251, 182, 59);
    }
    33% {
        color: rgb(103, 28, 209);
    }
    66% {
        color: rgb(34, 172, 50);
    }
    100% {
        color: rgb(251, 182, 59);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
img, video {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.layer {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
