/* ===================================
   LEARNTECH GAMES - 80s NEON THEME
   =================================== */

:root {
  /* Neon Color Palette - Blue/Magenta/Cyan */
  --neon-blue: #00d9ff;
  --neon-magenta: #ff00ff;
  --neon-cyan: #00ffff;
  --neon-pink: #ff006e;
  --neon-purple: #a855f7;
  --electric-blue: #0066ff;

  /* Background & Surfaces */
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --surface: #141420;
  --surface-light: #1e1e2e;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b4b4dc;
  --text-dim: #7070a0;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--neon-cyan) 0%,
    var(--neon-magenta) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--electric-blue) 0%,
    var(--neon-purple) 100%
  );

  /* Spacing */
  --section-padding: 8rem 2rem;
  --container-max: 1200px;

  /* Typography */
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

/* ===================================
   RESET & BASE
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(0, 217, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 0, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(168, 85, 247, 0.08) 0%,
      transparent 50%
    );
  z-index: -2;
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* ===================================
   UTILITIES
   =================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.logo-subtext {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  margin-top: -5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.5rem;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  border-radius: 4px;
  color: var(--neon-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.nav-cta:hover {
  background: rgba(0, 217, 255, 0.2);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.5);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--neon-cyan);
  transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.glitch {
  position: relative;
  display: inline-block;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 40px var(--neon-cyan),
    0 0 80px var(--neon-cyan);
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  91% {
    transform: translate(-2px, 2px);
  }
  92% {
    transform: translate(2px, -2px);
  }
  93% {
    transform: translate(-2px, 2px);
  }
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitchTop 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  transform: translate(-2px, -2px);
}

.glitch::after {
  animation: glitchBottom 2.5s infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  transform: translate(2px, 2px);
}

@keyframes glitchTop {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  91% {
    transform: translate(-5px, 0);
  }
}

@keyframes glitchBottom {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(5px, 0);
  }
}

.hero-subtitle {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero-description {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 2rem auto;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  padding: 1rem 3rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.8);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-magenta);
  border: 2px solid var(--neon-magenta);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 0, 255, 0.1);
  box-shadow: 0 0 40px rgba(255, 0, 255, 0.6);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover .btn-glow {
  left: 100%;
}

.hero-visual {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.neon-box {
  position: relative;
  width: 200px;
  height: 200px;
  background: rgba(0, 217, 255, 0.05);
  border: 2px solid var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 217, 255, 0.5),
    inset 0 0 20px rgba(0, 217, 255, 0.2);
  animation: pulse 2s ease-in-out infinite;
  transform: rotate(45deg);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(0, 217, 255, 0.5),
      inset 0 0 20px rgba(0, 217, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 40px rgba(0, 217, 255, 0.8),
      inset 0 0 40px rgba(0, 217, 255, 0.4);
  }
}

.box-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 120px;
  height: 120px;
}

.knight-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px var(--neon-cyan));
  animation: float 3s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--neon-cyan))
    drop-shadow(0 0 40px var(--neon-magenta));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}

/* ===================================
   SECTION TITLES
   =================================== */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.title-bracket {
  color: var(--neon-magenta);
  text-shadow: 0 0 20px var(--neon-magenta);
}

/* ===================================
   GAMES SECTION
   =================================== */

.games-section {
  padding: var(--section-padding);
  position: relative;
}

.game-card {
  position: relative;
  background: var(--surface);
  border: 2px solid rgba(0, 217, 255, 0.3);
  padding: 3rem;
  margin-bottom: 3rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 217, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.game-card:hover::before {
  left: 100%;
}

.card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(10px);
}

.game-card:hover .card-glow {
  opacity: 0.3;
}

.game-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.game-header {
  margin-bottom: 2rem;
}

.game-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.game-subtitle {
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 300;
}

.game-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.game-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.game-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.feature-icon {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.game-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.store-btn:hover {
  background: rgba(0, 217, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
}

.store-btn.disabled {
  border-color: var(--text-dim);
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.5;
}

.store-btn.disabled:hover {
  background: rgba(0, 217, 255, 0.1);
  box-shadow: none;
  transform: none;
}

.store-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Future Games */
.future-games {
  margin-top: 5rem;
}

.future-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 3px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card.mini {
  padding: 2rem;
  text-align: center;
}

.coming-badge {
  display: inline-block;
  background: rgba(255, 0, 255, 0.2);
  border: 1px solid var(--neon-magenta);
  color: var(--neon-magenta);
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.game-card.mini h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.game-card.mini p {
  color: var(--text-dim);
  font-size: 1rem;
}

/* ===================================
   MISSION SECTION
   =================================== */

.mission-section {
  padding: var(--section-padding);
  background: var(--surface);
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.mission-card {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 217, 255, 0.02);
  border: 1px solid rgba(0, 217, 255, 0.2);
  transition: all 0.3s ease;
}

.mission-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
  transform: translateY(-5px);
}

.mission-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.mission-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
  padding: var(--section-padding);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--neon-cyan);
  font-weight: 700;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--neon-magenta);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===================================
   SUPPORT SECTION
   =================================== */

.support-section {
  padding: var(--section-padding);
  background: var(--surface);
}

.support-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.support-card {
  background: var(--bg-dark);
  border: 2px solid rgba(255, 0, 255, 0.3);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.support-card:hover {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
  transform: translateY(-5px);
}

.support-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.support-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.support-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: rgba(255, 0, 255, 0.1);
  border: 2px solid var(--neon-magenta);
  color: var(--neon-magenta);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.support-link:hover {
  background: rgba(255, 0, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-dim);
  margin-top: 1rem;
  font-size: 1.1rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  color: var(--text-dim);
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .game-features {
    grid-template-columns: 1fr;
  }

  .game-links {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }
}
