/* ==========================================
   ORIKAMI - Premium Design System
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties */
:root {
  /* Colors */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-card: rgba(20, 20, 35, 0.7);

  --color-accent-primary: #8b5cf6;
  --color-accent-secondary: #06b6d4;
  --color-accent-tertiary: #f43f5e;
  --color-accent-gold: #fbbf24;

  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 100%);
  --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;

  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--color-accent-primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

/* ==========================================
   VIDEO HERO CONTAINER
   ========================================== */

.video-hero-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}

.video-hero-container.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ==========================================
   ANIMATED HERO BACKGROUND
   ========================================== */

.animated-hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  transition: opacity 0.3s ease-out;
}

.animated-hero-bg.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease-out;
}

/* Gradient Sky - Day to Sunset shift */
.sky-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      #1a1a2e 0%,
      #16213e 20%,
      #1a1a2e 40%,
      #0f3460 60%,
      #533483 80%,
      #e94560 100%);
  animation: skyShift 20s ease-in-out infinite alternate;
}

@keyframes skyShift {
  0% {
    background: linear-gradient(180deg,
        #0f0c29 0%,
        #302b63 30%,
        #24243e 60%,
        #533483 100%);
  }

  50% {
    background: linear-gradient(180deg,
        #1a1a2e 0%,
        #16213e 25%,
        #0f3460 50%,
        #e94560 100%);
  }

  100% {
    background: linear-gradient(180deg,
        #2c3e50 0%,
        #3498db 30%,
        #87ceeb 60%,
        #f39c12 100%);
  }
}

/* Clouds */
.clouds-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.6) 40%,
      rgba(255, 255, 255, 0.2) 70%,
      transparent 100%);
  border-radius: 50%;
  filter: blur(8px);
}

.cloud-1 {
  width: 300px;
  height: 120px;
  top: 8%;
  left: -10%;
  animation: cloudFloat1 35s linear infinite;
  opacity: 0.7;
}

.cloud-2 {
  width: 400px;
  height: 150px;
  top: 15%;
  left: -20%;
  animation: cloudFloat2 45s linear infinite;
  animation-delay: -10s;
  opacity: 0.5;
}

.cloud-3 {
  width: 250px;
  height: 100px;
  top: 25%;
  left: -15%;
  animation: cloudFloat3 30s linear infinite;
  animation-delay: -20s;
  opacity: 0.6;
}

.cloud-4 {
  width: 350px;
  height: 130px;
  top: 5%;
  left: -25%;
  animation: cloudFloat1 50s linear infinite;
  animation-delay: -5s;
  opacity: 0.4;
}

.cloud-5 {
  width: 200px;
  height: 80px;
  top: 35%;
  left: -10%;
  animation: cloudFloat2 40s linear infinite;
  animation-delay: -15s;
  opacity: 0.5;
}

@keyframes cloudFloat1 {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(150vw);
  }
}

@keyframes cloudFloat2 {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(140vw);
  }
}

@keyframes cloudFloat3 {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(130vw);
  }
}

/* Paper Cranes Container */
.paper-cranes-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.paper-crane {
  position: absolute;
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.crane-1 {
  top: 20%;
  left: 10%;
  animation: craneFly1 12s infinite;
  animation-delay: 0s;
}

.crane-2 {
  top: 35%;
  left: 70%;
  font-size: 2.5rem;
  animation: craneFly2 15s infinite;
  animation-delay: -3s;
}

.crane-3 {
  top: 15%;
  left: 50%;
  font-size: 2rem;
  animation: craneFly3 18s infinite;
  animation-delay: -6s;
  opacity: 0.7;
}

.crane-4 {
  top: 45%;
  left: 25%;
  font-size: 2.2rem;
  animation: craneFly4 14s infinite;
  animation-delay: -2s;
}

.crane-5 {
  top: 10%;
  left: 85%;
  font-size: 1.8rem;
  animation: craneFly5 16s infinite;
  animation-delay: -8s;
  opacity: 0.6;
}

@keyframes craneFly1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(-10deg);
  }

  25% {
    transform: translate(50px, -30px) rotate(5deg);
  }

  50% {
    transform: translate(100px, 10px) rotate(-5deg);
  }

  75% {
    transform: translate(50px, -20px) rotate(10deg);
  }
}

@keyframes craneFly2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(5deg);
  }

  33% {
    transform: translate(-60px, -40px) rotate(-10deg);
  }

  66% {
    transform: translate(-30px, 20px) rotate(15deg);
  }
}

@keyframes craneFly3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, -50px) scale(1.1);
  }
}

@keyframes craneFly4 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(40px, -25px) rotate(-15deg);
  }

  50% {
    transform: translate(0, -50px) rotate(0deg);
  }

  75% {
    transform: translate(-40px, -25px) rotate(15deg);
  }
}

@keyframes craneFly5 {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.6;
  }

  50% {
    transform: translate(-100px, 30px);
    opacity: 1;
  }
}

/* Sakura Container */
.sakura-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  width: 15px;
  height: 15px;
  background: radial-gradient(ellipse at 30% 30%,
      #ffb7c5 0%,
      #ff95a9 50%,
      #ff7b99 100%);
  border-radius: 150% 0 150% 0;
  opacity: 0.8;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(110vh) rotate(720deg) translateX(100px);
    opacity: 0;
  }
}

/* Light Rays */
.light-rays {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.ray {
  position: absolute;
  top: -50%;
  width: 200px;
  height: 200%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform-origin: top center;
  animation: rayPulse 8s ease-in-out infinite;
}

.ray-1 {
  left: 20%;
  transform: rotate(-30deg);
  animation-delay: 0s;
}

.ray-2 {
  left: 50%;
  transform: rotate(0deg);
  animation-delay: -2s;
}

.ray-3 {
  left: 80%;
  transform: rotate(30deg);
  animation-delay: -4s;
}

@keyframes rayPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: rotate(var(--rotation, 0deg)) scaleX(1);
  }

  50% {
    opacity: 0.6;
    transform: rotate(var(--rotation, 0deg)) scaleX(1.5);
  }
}

/* Sparkles Container */
.sparkles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: sparkleTwinkle 2s ease-in-out infinite;
}

@keyframes sparkleTwinkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
  }
}

/* Hero Vignette */
.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(ellipse at center,
      transparent 0%,
      transparent 40%,
      rgba(10, 10, 15, 0.3) 70%,
      rgba(10, 10, 15, 0.7) 100%);
}


/* ==========================================
   CANVAS ANIMATION CONTAINER
   ========================================== */

.animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.animation-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(10, 10, 15, 0) 0%,
      rgba(10, 10, 15, 0) 70%,
      rgba(10, 10, 15, 0.5) 90%,
      rgba(10, 10, 15, 1) 100%);
  pointer-events: none;
}

#animation-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   SCROLL SPACER
   ========================================== */

.scroll-spacer {
  height: 500vh;
  position: relative;
  z-index: 1;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-connect {
  padding: 12px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-full);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  padding: var(--space-md);
  pointer-events: none;
}

.hero-content {
  pointer-events: all;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  color: var(--color-accent-secondary);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: center;
  gap: 0.02em;
}

.hero-title.animated-letters .letter {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    letterEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards,
    letterWave 3s ease-in-out infinite,
    letterGlow 4s ease-in-out infinite;
  animation-delay:
    calc(var(--i) * 0.1s),
    calc(var(--i) * 0.15s + 0.8s),
    calc(var(--i) * 0.2s + 0.8s);
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  will-change: transform, opacity, filter;
}

@keyframes letterEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotateX(45deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes letterWave {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  25% {
    transform: translateY(-8px) scale(1.02);
  }

  75% {
    transform: translateY(4px) scale(0.98);
  }
}

@keyframes letterGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.6));
  }
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
  }

  to {
    filter: drop-shadow(0 0 60px rgba(6, 182, 212, 0.5));
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 16px 40px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  border: none;
  border-radius: var(--border-radius-full);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  border-radius: 50%;
}

.btn-primary:hover::before {
  width: 300%;
  height: 300%;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5),
    0 0 80px rgba(139, 92, 246, 0.3),
    0 0 120px rgba(6, 182, 212, 0.2);
  background-position: 100% 100%;
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  padding: 16px 40px;
  background: transparent;
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, border-color;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--color-accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25),
    inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.btn-secondary:active {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.25);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.9rem;
  animation: scrollIndicatorPulse 2.5s ease-in-out infinite;
  transition: opacity 0.5s ease;
  padding: 16px 24px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2),
    0 0 60px rgba(139, 92, 246, 0.1);
}

@keyframes scrollIndicatorPulse {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2),
      0 0 60px rgba(139, 92, 246, 0.1);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.35),
      0 0 80px rgba(6, 182, 212, 0.2);
  }
}

.scroll-indicator span {
  opacity: 1;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(90deg, #fff 0%, rgba(139, 92, 246, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Mouse shape scroll indicator */
.scroll-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
    inset 0 0 10px rgba(139, 92, 246, 0.1);
}

.scroll-wheel {
  width: 4px;
  height: 10px;
  background: var(--gradient-primary);
  border-radius: 4px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
  }
}

/* Cascading arrows */
.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: -4px;
}

.scroll-arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  animation: scrollArrow 1.5s ease-in-out infinite;
}

.scroll-arrows span:nth-child(1) {
  animation-delay: 0s;
}

.scroll-arrows span:nth-child(2) {
  animation-delay: 0.15s;
  margin-top: -4px;
}

.scroll-arrows span:nth-child(3) {
  animation-delay: 0.3s;
  margin-top: -4px;
}

@keyframes scrollArrow {

  0%,
  20% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) translate(0, 0);
  }

  80%,
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */

.content-wrapper {
  position: relative;
  z-index: 10;
  background: transparent;
  padding-top: 0;
}

.section {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--color-accent-primary);
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  color: var(--color-accent-primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.about-card {
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(30px);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-glow);
}

.about-card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.about-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ==========================================
   TOKENOMICS SECTION
   ========================================== */

.tokenomics-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .tokenomics-content {
    grid-template-columns: 1fr;
  }
}

.token-chart {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.token-chart-inner {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent-primary) 0deg 180deg,
      var(--color-accent-secondary) 180deg 270deg,
      var(--color-accent-tertiary) 270deg 324deg,
      var(--color-accent-gold) 324deg 360deg);
  position: relative;
  box-shadow: var(--shadow-glow);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.token-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  background: var(--color-bg-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.token-chart-center span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.token-chart-center small {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.token-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.token-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: var(--transition-base);
  backdrop-filter: blur(20px);
}

.token-item:hover {
  border-color: var(--color-accent-primary);
  transform: translateX(8px);
}

.token-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.token-item-info {
  flex: 1;
}

.token-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.token-item-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.token-percentage {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent-primary);
}

/* ==========================================
   ROADMAP SECTION
   ========================================== */

.roadmap-container {
  position: relative;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: var(--border-radius-full);
}

@media (max-width: 768px) {
  .roadmap-line {
    left: 20px;
  }
}

.roadmap-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
}

@media (max-width: 768px) {
  .roadmap-item {
    flex-direction: column;
    padding-left: 60px;
  }
}

.roadmap-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .roadmap-item:nth-child(even) {
    flex-direction: column;
  }
}

.roadmap-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  z-index: 1;
}

@media (max-width: 768px) {
  .roadmap-dot {
    left: 20px;
  }
}

.roadmap-content {
  flex: 1;
  max-width: calc(50% - var(--space-lg));
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  backdrop-filter: blur(30px);
  transition: var(--transition-base);
}

@media (max-width: 768px) {
  .roadmap-content {
    max-width: 100%;
  }
}

.roadmap-content:hover {
  border-color: var(--color-accent-primary);
  transform: scale(1.02);
}

.roadmap-phase {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.roadmap-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.roadmap-content ul {
  list-style: none;
  padding: 0;
}

.roadmap-content li {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-content li::before {
  content: '✦';
  color: var(--color-accent-primary);
}

.roadmap-spacer {
  flex: 1;
  max-width: calc(50% - var(--space-lg));
}

@media (max-width: 768px) {
  .roadmap-spacer {
    display: none;
  }
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */

.community-section {
  background: transparent;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.social-link {
  width: 80px;
  height: 80px;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition-base);
  backdrop-filter: blur(30px);
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-8px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.cta-box {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(30px);
}

.cta-box h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-box p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contract-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  max-width: 500px;
  margin: 0 auto;
}

.contract-address code {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--color-accent-secondary);
  word-break: break-all;
}

.contract-address button {
  background: var(--gradient-primary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-base);
  white-space: nowrap;
}

.contract-address button:hover {
  transform: scale(1.05);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-disclaimer {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   CARD SWAP COMPONENT
   ========================================== */

.card-swap-section {
  padding: var(--space-2xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card-swap-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-swap-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 500px;
  perspective: 1500px;
  margin: 0 auto;
}

.card-swap-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.swap-card {
  position: absolute;
  width: 100%;
  height: 420px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(30px);
  cursor: grab;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center bottom;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.swap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.swap-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.swap-card:active {
  cursor: grabbing;
}

/* Card positions in stack */
.swap-card[data-position="0"] {
  z-index: 4;
  transform: translateY(0) scale(1) rotateX(0deg);
  opacity: 1;
}

.swap-card[data-position="1"] {
  z-index: 3;
  transform: translateY(-30px) scale(0.95) rotateX(2deg);
  opacity: 0.8;
  filter: brightness(0.9);
}

.swap-card[data-position="2"] {
  z-index: 2;
  transform: translateY(-60px) scale(0.9) rotateX(4deg);
  opacity: 0.6;
  filter: brightness(0.8);
}

.swap-card[data-position="3"] {
  z-index: 1;
  transform: translateY(-90px) scale(0.85) rotateX(6deg);
  opacity: 0.4;
  filter: brightness(0.7);
}

/* Swapping animation */
.swap-card.swapping {
  animation: swapCard 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes swapCard {
  0% {
    transform: translateY(0) scale(1) rotateX(0deg);
  }

  30% {
    transform: translateY(80px) translateX(100px) scale(0.9) rotateY(20deg) rotateZ(10deg);
  }

  70% {
    transform: translateY(-120px) translateX(-50px) scale(0.8) rotateY(-10deg) rotateZ(-5deg);
    opacity: 0.5;
  }

  100% {
    transform: translateY(-90px) scale(0.85) rotateX(6deg);
    opacity: 0.4;
  }
}

/* Card content styling */
.swap-card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.swap-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.swap-card p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  flex: 1;
}

.swap-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border);
}

.swap-card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent-primary);
  opacity: 0.5;
}

.swap-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.swap-hint svg {
  width: 20px;
  height: 20px;
  animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

/* Card swap controls */
.card-swap-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.swap-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

.swap-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Card indicators */
.card-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-md);
}

.card-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glass-border);
  transition: var(--transition-base);
  cursor: pointer;
}

.card-indicator.active {
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 500px) {
  .card-swap-container {
    max-width: 300px;
    height: 450px;
  }

  .swap-card {
    height: 380px;
    padding: var(--space-md);
  }

  .swap-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .swap-card h3 {
    font-size: 1.3rem;
  }

  .swap-card p {
    font-size: 0.9rem;
  }
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Floating animation for decorative elements */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links,
  .btn-connect {
    display: none;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================
   PORTAL EFFECT
   ========================================== */

.portal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.8) 0%, rgba(10, 10, 15, 0.98) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.portal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.portal-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: portalSpin 3s linear infinite;
}

.portal-ring.ring-1 {
  width: 100%;
  height: 100%;
  border-top-color: var(--color-accent-primary);
  border-bottom-color: var(--color-accent-secondary);
  animation-duration: 2s;
}

.portal-ring.ring-2 {
  width: 75%;
  height: 75%;
  border-left-color: var(--color-accent-secondary);
  border-right-color: var(--color-accent-primary);
  animation-duration: 2.5s;
  animation-direction: reverse;
}

.portal-ring.ring-3 {
  width: 50%;
  height: 50%;
  border-top-color: var(--color-accent-gold);
  border-bottom-color: var(--color-accent-tertiary);
  animation-duration: 1.5s;
}

@keyframes portalSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.portal-core {
  width: 30%;
  height: 30%;
  background: radial-gradient(ellipse at center,
      rgba(139, 92, 246, 0.8) 0%,
      rgba(6, 182, 212, 0.6) 40%,
      rgba(139, 92, 246, 0.3) 70%,
      transparent 100%);
  border-radius: 50%;
  animation: portalPulse 1.5s ease-in-out infinite;
  box-shadow:
    0 0 60px rgba(139, 92, 246, 0.8),
    0 0 120px rgba(6, 182, 212, 0.6),
    0 0 180px rgba(139, 92, 246, 0.4);
}

@keyframes portalPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.portal-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(139, 92, 246, 1), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(6, 182, 212, 1), transparent),
    radial-gradient(2px 2px at 90px 40px, white, transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(139, 92, 246, 1), transparent),
    radial-gradient(2px 2px at 160px 120px, white, transparent),
    radial-gradient(3px 3px at 200px 60px, rgba(6, 182, 212, 1), transparent),
    radial-gradient(2px 2px at 220px 150px, white, transparent),
    radial-gradient(2px 2px at 280px 30px, rgba(139, 92, 246, 1), transparent),
    radial-gradient(2px 2px at 320px 100px, white, transparent),
    radial-gradient(3px 3px at 350px 180px, rgba(6, 182, 212, 1), transparent);
  background-size: 400px 400px;
  animation: particleFloat 4s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.portal-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 1) 0%,
      rgba(139, 92, 246, 0.5) 30%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portal-overlay.flash .portal-flash {
  animation: portalFlash 1s ease-out forwards;
}

@keyframes portalFlash {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 1;
    transform: scale(1.5);
  }

  100% {
    opacity: 1;
    transform: scale(3);
  }
}

.portal-text {
  position: absolute;
  bottom: 15%;
  text-align: center;
}

.portal-loading-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.portal-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  margin-top: var(--space-sm);
  overflow: hidden;
}

.portal-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  transition: width 0.3s ease;
}

/* ==========================================
   GAME TEASER SECTION
   ========================================== */

.game-teaser-section {
  text-align: center;
  min-height: 100vh;
}

.game-preview {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
}

.game-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.game-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.game-preview-content {
  position: relative;
  z-index: 1;
}

.game-icon {
  font-size: 5rem;
  margin-bottom: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

.game-preview h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-preview p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.game-features {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.game-feature {
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  color: var(--color-accent-secondary);
}

.scroll-to-play {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  animation: pulse 2s ease-in-out infinite;
}

.scroll-to-play-arrow {
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-to-play-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent-primary);
}

.scroll-to-play span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================
   ORIGAMI GALLERY SECTION
   ========================================== */

.origami-gallery {
  padding: var(--space-2xl) var(--space-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s ease;
}

.gallery-item-large {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(139, 92, 246, 0.3);
  z-index: 10;
}

.gallery-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    filter 0.5s ease;
}

.gallery-item:hover .gallery-image img {
  transform: scale(1.15);
  filter: brightness(0.7);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top,
      rgba(10, 10, 15, 0.95) 0%,
      rgba(10, 10, 15, 0.7) 50%,
      transparent 100%);
  transform: translateY(60%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-overlay p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.gallery-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-primary);
}

/* Shine effect on hover */
.gallery-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
  transition: left 0.8s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-shine {
  left: 100%;
}

/* Floating particles effect */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Border glow effect */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Gallery animations */
@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-item.visible {
  animation: galleryFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsive gallery */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-large {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item-large {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .gallery-overlay h3 {
    font-size: 1.2rem;
  }

  .gallery-overlay {
    padding: 20px;
  }
}

/* Image loading animation with shimmer */
.gallery-image {
  position: relative;
  overflow: hidden;
}

.gallery-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(40, 40, 60, 1) 0%,
      rgba(60, 60, 90, 0.8) 20%,
      rgba(80, 80, 120, 0.6) 40%,
      rgba(139, 92, 246, 0.3) 50%,
      rgba(80, 80, 120, 0.6) 60%,
      rgba(60, 60, 90, 0.8) 80%,
      rgba(40, 40, 60, 1) 100%);
  background-size: 200% 100%;
  animation: shimmerLoading 2s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.gallery-image img.loaded+.shimmer-placeholder,
.gallery-image img:not([data-loading="true"])::before {
  opacity: 0;
}

.gallery-image img {
  opacity: 0;
  animation: imageLoad 0.8s ease forwards;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image img.loaded {
  opacity: 1;
}

/* Hide shimmer when image is loaded */
.gallery-item:has(img.loaded) .gallery-image::before,
.gallery-item:has(img:not([data-loading])) .gallery-image::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes shimmerLoading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes imageLoad {
  from {
    opacity: 0;
    transform: scale(1.1) translateY(10px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* ==========================================
   NEXT LEVEL ENHANCEMENTS
   ========================================== */

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  z-index: 2;
}

.loading-logo {
  width: 120px;
  height: 120px;
  animation: logoFloat 2s ease-in-out infinite, logoPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes logoPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.8));
  }
}

.loading-text {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  margin-top: 30px;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #f43f5e 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 2s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 30px auto;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.loading-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.loading-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
  animation: particleFloat 10s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

/* Video Transition Effect - Paper Fold */
.video-transition-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.paper-fold {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.9) 100%);
  transform-origin: center;
  opacity: 0;
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.paper-fold.fold-1 {
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.paper-fold.fold-2 {
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.paper-fold.fold-3 {
  bottom: 0;
  left: 0;
  width: 50%;
  height: 50%;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.paper-fold.fold-4 {
  bottom: 0;
  right: 0;
  width: 50%;
  height: 50%;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.video-hero-container.folding .paper-fold {
  opacity: 1;
}

.video-hero-container.folding .paper-fold.fold-1 {
  transform: rotateY(-90deg) translateZ(100px);
}

.video-hero-container.folding .paper-fold.fold-2 {
  transform: rotateY(90deg) translateZ(100px);
}

.video-hero-container.folding .paper-fold.fold-3 {
  transform: rotateX(90deg) translateZ(100px);
}

.video-hero-container.folding .paper-fold.fold-4 {
  transform: rotateX(-90deg) translateZ(100px);
}

/* Floating Origami Elements */
.floating-origami {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.origami-piece {
  position: absolute;
  font-size: 3rem;
  opacity: 0.3;
  animation: floatOrigami 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
}

.origami-piece.o1 {
  top: 10%;
  left: 10%;
  animation: floatOrigami1 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.origami-piece.o2 {
  top: 20%;
  right: 15%;
  animation: floatOrigami2 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -3s;
}

.origami-piece.o3 {
  bottom: 30%;
  left: 20%;
  animation: floatOrigami3 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -6s;
}

.origami-piece.o4 {
  bottom: 20%;
  right: 10%;
  animation: floatOrigami4 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -9s;
}

.origami-piece.o5 {
  top: 50%;
  left: 50%;
  animation: floatOrigami5 22s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: -12s;
}

/* Unique float animations for each origami piece */
@keyframes floatOrigami1 {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotate3d(1, 1, 0, 0deg) scale(1);
    opacity: 0.35;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
  }

  25% {
    transform: translateY(-60px) translateX(40px) rotate3d(1, 0, 0, 15deg) scale(1.15);
    opacity: 0.55;
    filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.5));
  }

  50% {
    transform: translateY(-30px) translateX(-25px) rotate3d(0, 1, 0, -10deg) scale(0.95);
    opacity: 0.45;
    filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.4));
  }

  75% {
    transform: translateY(-80px) translateX(60px) rotate3d(1, 1, 0, 20deg) scale(1.1);
    opacity: 0.65;
    filter: drop-shadow(0 0 40px rgba(244, 63, 94, 0.4));
  }
}

@keyframes floatOrigami2 {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotateY(0deg) rotateZ(0deg) scale(1);
    opacity: 0.3;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
  }

  33% {
    transform: translateY(-45px) translateX(-35px) rotateY(15deg) rotateZ(-8deg) scale(1.12);
    opacity: 0.5;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
  }

  66% {
    transform: translateY(-75px) translateX(25px) rotateY(-10deg) rotateZ(12deg) scale(0.98);
    opacity: 0.6;
    filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.5));
  }
}

@keyframes floatOrigami3 {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotateX(0deg) scale(1);
    opacity: 0.32;
    filter: drop-shadow(0 0 18px rgba(244, 63, 94, 0.3));
  }

  20% {
    transform: translateY(-35px) translateX(45px) rotateX(12deg) scale(1.08);
    opacity: 0.48;
    filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.45));
  }

  40% {
    transform: translateY(-55px) translateX(-15px) rotateX(-8deg) scale(1.02);
    opacity: 0.55;
    filter: drop-shadow(0 0 32px rgba(6, 182, 212, 0.5));
  }

  60% {
    transform: translateY(-40px) translateX(30px) rotateX(18deg) scale(1.12);
    opacity: 0.62;
    filter: drop-shadow(0 0 38px rgba(244, 63, 94, 0.5));
  }

  80% {
    transform: translateY(-20px) translateX(-30px) rotateX(-5deg) scale(0.95);
    opacity: 0.42;
    filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.35));
  }
}

@keyframes floatOrigami4 {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.28;
  }

  25% {
    transform: translateY(-55px) translateX(-40px) rotate(-12deg) scale(1.1);
    opacity: 0.52;
  }

  50% {
    transform: translateY(-25px) translateX(35px) rotate(8deg) scale(0.92);
    opacity: 0.4;
  }

  75% {
    transform: translateY(-70px) translateX(-20px) rotate(-18deg) scale(1.08);
    opacity: 0.58;
  }
}

@keyframes floatOrigami5 {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotate3d(0, 1, 1, 0deg) scale(1);
    opacity: 0.25;
  }

  33% {
    transform: translateY(-50px) translateX(50px) rotate3d(1, 0, 1, 20deg) scale(1.15);
    opacity: 0.5;
  }

  66% {
    transform: translateY(-30px) translateX(-40px) rotate3d(0, 1, 0, -15deg) scale(0.9);
    opacity: 0.4;
  }
}

/* Legacy fallback animation */
@keyframes floatOrigami {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-50px) translateX(30px) rotate(10deg) scale(1.1);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-20px) translateX(-20px) rotate(-5deg) scale(0.95);
    opacity: 0.4;
  }

  75% {
    transform: translateY(-70px) translateX(50px) rotate(15deg) scale(1.05);
    opacity: 0.6;
  }
}

/* Logo in Navbar */
.logo-image {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.logo:hover .logo-image {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

/* Social Buttons in Nav */
.nav-social {
  display: flex;
  gap: 10px;
  margin-right: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-btn.social-x {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn.social-x:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.social-btn.social-pump {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
}

.social-btn.social-pump:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(247, 147, 30, 0.4);
}

.pump-icon {
  font-size: 1.1rem;
}

/* Hero Logo Container */
.hero-logo-container {
  position: relative;
  margin-bottom: 20px;
}

.hero-logo-img {
  width: 150px;
  height: auto;
  animation: heroLogoFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes heroLogoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.8;
  }
}

/* Animated Letters - Per Letter Effect */
.animated-letters {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.animated-letters .letter {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  background: linear-gradient(135deg,
      #8b5cf6 0%,
      #06b6d4 25%,
      #f43f5e 50%,
      #fbbf24 75%,
      #8b5cf6 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    letterEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    letterWave 3s ease-in-out infinite,
    colorShift 5s ease-in-out infinite;
  animation-delay:
    calc(var(--i) * 0.1s),
    calc(var(--i) * 0.15s + 1s),
    calc(var(--i) * 0.2s);
  opacity: 0;
  transform: translateY(50px) scale(0.5) rotateX(-45deg);
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
  text-shadow: none;
  position: relative;
}

.animated-letters .letter::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transform: translateX(-50%);
  border-radius: 2px;
  animation: letterUnderline 0.5s ease forwards;
  animation-delay: calc(var(--i) * 0.1s + 0.5s);
}

@keyframes letterEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.5) rotateX(-45deg);
    filter: drop-shadow(0 0 0 transparent);
  }

  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.1) rotateX(10deg);
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
  }
}

@keyframes letterWave {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes colorShift {

  0%,
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
  }

  25% {
    background-position: 50% 0%;
    filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.6));
  }

  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 30px rgba(244, 63, 94, 0.6));
  }

  75% {
    background-position: 50% 100%;
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.6));
  }
}

@keyframes letterUnderline {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* Letter hover effect */
.animated-letters .letter:hover {
  animation: letterHover 0.5s ease forwards, colorShift 3s ease-in-out infinite;
  cursor: default;
}

@keyframes letterHover {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.2) rotateZ(-5deg);
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 1));
  }

  100% {
    transform: translateY(0) scale(1.1) rotateZ(0deg);
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
  }
}

/* Hero Badge Animation */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  color: var(--color-accent-primary);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* Magnetic Button Effect */
.magnetic-btn {
  position: relative;
  overflow: hidden;
}

.magnetic-btn .btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: transform 0.5s ease;
  z-index: 0;
}

.magnetic-btn .btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.magnetic-btn:hover .btn-bg {
  transform: scale(1.1);
}

/* Button Glow Effect */
.btn-connect {
  position: relative;
  overflow: hidden;
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent,
      rgba(139, 92, 246, 0.3),
      transparent 30%);
  animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
  100% {
    transform: rotate(360deg);
  }
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Hero Social Buttons */
.hero-socials {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.hero-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-social-btn.pump {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(247, 147, 30, 0.2) 100%);
  border-color: rgba(247, 147, 30, 0.3);
}

.hero-social-btn.pump:hover {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(247, 147, 30, 0.4);
}

.pump-rocket {
  animation: rocketBounce 1s ease-in-out infinite;
}

@keyframes rocketBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.scroll-mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
}

.scroll-wheel {
  width: 6px;
  height: 10px;
  background: var(--color-accent-primary);
  border-radius: 3px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0.3;
  }
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.scroll-arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-accent-primary);
  border-bottom: 2px solid var(--color-accent-primary);
  transform: rotate(45deg);
  animation: scrollArrows 1.5s ease-in-out infinite;
}

.scroll-arrows span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-arrows span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scrollArrows {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Section Tag Enhancement */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.tag-line {
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  animation: tagLineExpand 2s ease-in-out infinite;
}

@keyframes tagLineExpand {

  0%,
  100% {
    width: 30px;
    opacity: 0.5;
  }

  50% {
    width: 50px;
    opacity: 1;
  }
}

/* Gallery Border Enhancement */
.gallery-border {
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, transparent 0%, #8b5cf6 50%, transparent 100%);
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: borderRotate 3s linear infinite;
  pointer-events: none;
}

.gallery-item:hover .gallery-border {
  opacity: 1;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* Game Preview Enhancement */
.game-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(20px);
}

.game-preview-visual {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #1e3a5f 0%, #87ceeb 100%);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.crane-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  animation: craneFly 4s ease-in-out infinite;
}

@keyframes craneFly {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }

  25% {
    transform: translate(-30%, -60%) translateY(-20px) rotate(-5deg);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-40px) rotate(0deg);
  }

  75% {
    transform: translate(-70%, -40%) translateY(-20px) rotate(5deg);
  }
}

.crane-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.5) 100%);
  transform: translate(-150%, -50%);
  animation: trailFollow 4s ease-in-out infinite;
}

@keyframes trailFollow {

  0%,
  100% {
    transform: translate(-150%, -50%);
    opacity: 0.5;
  }

  50% {
    transform: translate(-200%, -100%);
    opacity: 0.8;
  }
}

.sky-backdrop .cloud {
  position: absolute;
  font-size: 3rem;
  opacity: 0.6;
  animation: cloudDrift 20s linear infinite;
}

.cloud.c1 {
  top: 20%;
  right: -50px;
  animation-delay: 0s;
}

.cloud.c2 {
  top: 50%;
  right: -50px;
  animation-delay: -7s;
}

.cloud.c3 {
  top: 70%;
  right: -50px;
  animation-delay: -14s;
}

@keyframes cloudDrift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100vw - 100px));
  }
}

.game-preview-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.game-feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-icon {
  font-size: 1.2rem;
}

.play-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.play-now-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transition: left 0.5s ease;
}

.play-now-btn:hover .btn-shine {
  left: 100%;
}

/* Footer */
.site-footer {
  padding: 60px 20px 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.9) 100%);
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

.footer-brand p {
  color: var(--color-text-muted);
  font-style: italic;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-3px);
}

.footer-social-btn.pump:hover {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Ambient Particles */
.ambient-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nav-social {
    display: none;
  }

  .hero-socials {
    flex-direction: column;
    gap: 10px;
  }

  .hero-social-btn {
    justify-content: center;
  }

  .game-preview {
    grid-template-columns: 1fr;
  }

  .game-preview-visual {
    height: 200px;
  }

  .hero-logo-img {
    width: 100px;
  }

  .loading-text {
    font-size: 2rem;
  }

  .footer-socials {
    flex-direction: column;
    width: 100%;
  }

  .footer-social-btn {
    justify-content: center;
  }
}