@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;700&family=Bebas+Neue&family=Anton&display=swap');

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

:root {
    --primary: #ff6b35;
    --secondary: #ff9558;
    --accent: #ffd93d;
    --dark: #0a0a0a;
    --dark-gray: #1a1a1a;
    --light: #ffffff;
    --text-gray: #a0a0a0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: clip;
    position: relative;
}

/* Ensure sections don't create overflow issues */
section {
    overflow: visible;
}

/* Enter Overlay */
.enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.enter-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.enter-content {
    text-align: center;
}

.enter-content h1 {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.enter-content p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.enter-button {
    padding: 1.5rem 4rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enter-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.1);
    z-index: 1;
}

.sound-toggle {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    background: rgba(255, 107, 53, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.sound-toggle:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.sound-toggle:active {
    transform: scale(0.95);
}

.sound-toggle .sound-on {
    display: none;
}

.sound-toggle.unmuted .sound-on {
    display: block;
}

.sound-toggle.unmuted .sound-off {
    display: none;
}

.sound-toggle.unmuted {
    background: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 149, 88, 0.5);
}

.hero-bg-layer {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
}

.hero-bg-layer:nth-child(2) {
    background: radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%);
    opacity: 0.15;
    z-index: 2;
}

.hero-bg-layer:nth-child(3) {
    background: radial-gradient(circle at 80% 50%, var(--secondary) 0%, transparent 50%);
    opacity: 0.1;
    z-index: 2;
}

.hero-bg-layer:nth-child(4) {
    background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 3;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.letter {
    display: inline-block;
    transform: translateY(0);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.cta-button.primary {
    background: var(--primary);
    color: var(--dark);
}

.cta-button.primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--light);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* Text Transform Section */
.text-transform-section {
    position: relative;
    height: 500vh; /* Much taller for extended scroll */
    background: var(--dark);
}

.transform-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.transform-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.transform-text {
    position: relative;
    font-size: clamp(4rem, 12vw, 10rem);
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    margin: 0;
    height: 1.2em;
    text-transform: uppercase;
}

.text-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

/* Layer 1: NEWS */
.layer-1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Layer 2: FUTURE */
.layer-2 {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
}

/* Layer 3: UNBIASED */
.layer-3 {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    clip-path: polygon(100% 50%, 100% 50%, 100% 50%, 100% 50%);
    transform: translateX(-50%) scale(0.8) rotate(0deg);
    opacity: 0;
}

.transform-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    font-weight: 300;
}

/* Stats Section */
.transform-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(50px);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Bebas Neue', cursive;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-infinity {
    font-size: 3.5rem;
    font-family: 'Anton', sans-serif;
    animation: infinity-pulse 2s ease-in-out infinite;
    line-height: 1;
    margin-top: 0.2rem;
}

@keyframes infinity-pulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        filter: hue-rotate(45deg);
    }
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Final Message */
.transform-final {
    margin-top: 3rem;
    opacity: 0;
    transform: scale(0.8);
}

.transform-final h3 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--secondary), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pulse-line {
    width: 100px;
    height: 2px;
    background: var(--primary);
    margin: 2rem auto;
    animation: pulse-width 2s ease-in-out infinite;
}

@keyframes pulse-width {
    0%, 100% { width: 100px; opacity: 0.5; }
    50% { width: 200px; opacity: 1; }
}

/* Sticky Transform Section */
.sticky-section {
    position: relative;
    height: 500vh;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.transform-text {
    position: relative;
    z-index: 2;
}

.morph-text {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    mix-blend-mode: difference;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    border-radius: 20px;
    background: var(--dark-gray);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.float-element h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
}

.element-1 {
    width: 250px;
    height: 250px;
    top: 20%;
    left: 10%;
}

.element-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: 10%;
}

.element-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Horizontal Scroll Section */
.horizontal-section {
    height: 400vh;
    position: relative;
    overflow: visible;
}

.horizontal-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    will-change: transform;
}

.horizontal-track {
    display: flex;
    height: 100%;
    position: relative;
    width: 400vw; /* 4 panels × 100vw */
}

.h-panel {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    overflow: hidden;
}

.h-panel.panel-1 {
    left: 0;
}

.h-panel.panel-2 {
    left: 100vw;
}

.h-panel.panel-3 {
    left: 200vw;
}

.h-panel.panel-4 {
    left: 300vw;
}

.h-panel h3 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    z-index: 10;
}

.panel-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Video background styles */
.panel-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.panel-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.3); /* Reduced opacity */
    z-index: 2;
    pointer-events: none; /* Ensure it doesn't block video */
}

/* Ensure panel-bg fills the h-panel */
.h-panel .panel-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Fallback gradients if videos don't load */
.panel-1 .panel-bg { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); }
.panel-2 .panel-bg { background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%); }
.panel-3 .panel-bg { background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%); }
.panel-4 .panel-bg { background: linear-gradient(135deg, var(--primary) 0%, #ff4444 100%); }

.video-category {
    position: relative;
    z-index: 10;
    text-align: center;
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-category h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.video-category p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.video-count {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    display: inline-block;
}

/* Text Morph Section */
.text-morph-section {
    height: 400vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.morph-container {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
}

.morph-wrapper {
    position: relative;
}

.morph-main {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 3;
}

.morph-shadow {
    position: absolute;
    top: 0;
    left: 0;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    opacity: 0.3;
}

.morph-shadow:nth-child(2) {
    color: var(--primary);
    transform: translate(0, 0);
}

.morph-shadow:nth-child(3) {
    color: var(--secondary);
    transform: translate(0, 0);
}

.token-info {
    margin-top: 3rem;
    text-align: center;
}

.token-info p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.token-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.token-feature {
    padding: 0.75rem 1.5rem;
    background: var(--dark-gray);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary);
}

/* ASCII Art Section */
.ascii-section {
    height: 150vh;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.ascii-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ascii-art {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.ascii-logo {
    font-family: monospace;
    font-size: clamp(0.6rem, 1.5vw, 1rem);
    line-height: 1.2;
    color: var(--primary);
    margin: 0;
    white-space: pre;
    letter-spacing: 0.1em;
    transform: scale(0.5);
    will-change: transform;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

@keyframes ascii-glow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
    }
}


/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    opacity: 0.1;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.2;
    color: var(--primary);
    animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
    to {
        transform: translateY(200vh);
    }
}

.matrix-char {
    display: block;
    text-align: center;
    opacity: 0.8;
    text-shadow: 0 0 5px currentColor;
}

.matrix-char:first-child {
    color: var(--light);
    opacity: 1;
    text-shadow: 0 0 10px currentColor;
}

/* Typewriter Effect */
.ascii-tagline {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 2rem;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Rotation Section */
.rotation-section {
    height: 300vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotation-container {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
}

.section-title {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.rotating-element {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
}

.rotate-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    backface-visibility: hidden;
    padding: 2rem;
    text-align: center;
    border-radius: 20px;
}

.step-number {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.rotate-item h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.rotate-item p {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

.rotate-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(200px);
    background: var(--dark-gray);
    border: 1px solid var(--primary);
}

.rotate-item:nth-child(2) {
    transform: rotateY(90deg) translateZ(200px);
    background: var(--dark-gray);
    border: 1px solid var(--secondary);
}

.rotate-item:nth-child(3) {
    transform: rotateY(180deg) translateZ(200px);
    background: var(--dark-gray);
    border: 1px solid var(--accent);
}

.rotate-item:nth-child(4) {
    transform: rotateY(270deg) translateZ(200px);
    background: var(--dark-gray);
    border: 1px solid var(--primary);
}

/* Final Section */
.final-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.final-content {
    text-align: center;
}

.final-content h2 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-content p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.final-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.social-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .float-element {
        transform: scale(0.7);
    }
    
    .rotating-element {
        width: 300px;
        height: 300px;
    }
}