/* 🌌 Universal lightweight modern theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #0a0a14, #050509);
  color: #fff;
  overflow-x: hidden;
  transition: background 0.5s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 20px;
  transition: transform 0.3s ease; /* smooth movement */
}

.brand-logo {
  height: 40px;
  width: auto;
  background: transparent;
  /* background: linear-gradient(45deg, #111, #0ff); */
  display: block;
} 
.brand:hover {
  transform: translateY(-5px) scale(1.05);
}


.brand-link {
  display: flex;
  align-items: center;
  z-index: 1000;          /* bring above nav effects */
  position: relative;     /* required for z-index */
  pointer-events: auto;   /* ensure clicks work */
}

.brand-logo {
  height: 40px;
  width: auto;
  cursor: pointer;
}

/* If nav glass effect overlay is blocking clicks */
nav::before,
nav::after {
  pointer-events: none;
}

/* ============================= */
/* NAVIGATION                    */
/* ============================= */
 nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 25px rgba(255, 0, 255, 0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
  }

  nav:hover {
    background: rgba(20, 20, 40, 0.9);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 0 35px rgba(255, 0, 255, 0.4);
  }

  nav .logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #0ff;
    text-shadow: 0 0 8px #0ff, 0 0 15px #0ff;
  }

  nav .logo img {
    width: 32px;
    margin-right: 0.6rem;
    filter: drop-shadow(0 0 6px #0ff);
    transition: transform 0.3s ease;
  }

  nav .logo img:hover {
    transform: rotate(15deg) scale(1.3);
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    position: relative;
  }

  nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    padding: 0.2rem 0.4rem;
  }

  nav ul li a:hover {
    color: #0ff;
    text-shadow: 0 0 12px #0ff, 0 0 20px #0ff;
  }

  /* DROPDOWN */
  .dropdown-menu {
    display: block; /* keep it block always */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

  nav ul li.dropdown {
    position: relative;
  }

  nav ul li.dropdown > a::after {
    content: " ▾";
    font-size: 0.8rem;
    margin-left: 4px;
  }

  nav ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(12px);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 25px rgba(255, 0, 255, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  nav ul li.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  nav ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
  }

  nav ul li.dropdown .dropdown-menu li a:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
  }

  /* Optional: glowing underline effect */
  nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: #0ff;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  nav ul li a:hover::after {
    transform: scaleX(1);
  }



/* ===== Vision Section Background ===== */
.vision-section {
  position: relative;
  min-height: 70vh;
  padding: 120px 20px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, #0a0f2a 0%, #050814 60%, #02030a 100%);
  overflow: hidden;
}

/* subtle animated star texture */
.vision-section::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: bgMove 140s linear infinite;
  opacity: 0.25;
}

@keyframes bgMove {
  from { transform: translate(0,0); }
  to { transform: translate(-250px,-120px); }
}

/* container just for layering */
.vision-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

/* MAIN rotating title */
/* .vision-subtitle {
  font-size: 2.4rem;  // 👈 reduce to shrink visual height
} */

.vision-subtitle {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
}

/* rotating description */
/* .vision-description {
  font-size: 1.35rem;
} */

/* ADDJUST THIS SECTION WHEN READY */
/* .vision-section {
  min-height: 30vh;
  padding: 50px 20px 25px;
}

.vision-subtitle {
  font-size: 2rem;
}

.vision-description {
  font-size: 1.1rem;
} */


.vision-description {
  font-size: 1.6rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}

/* Active animation */
.vision-subtitle.active,
.vision-description.active {
  opacity: 1;
  transform: translateY(0);
}






/* To tighten space:
padding: 50px 20px 25px;
Even tighter:
padding: 40px 20px 15px; */

.vision-section {
  min-height: 20vh;  /* 👈 CHANGE THIS */
}
.vision-section {
  padding: 80px 20px 40px; /* 👈 CHANGE THIS */
}



#vision-section {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0a0a14, #050509);
  text-align: center;
  color: #0ff;
  position: relative;
  overflow: hidden;
}

.vision-container h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px #0ff, 0 0 25px rgba(0,255,255,0.3);
}

.vision-container p {
  font-size: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(0,255,255,0.2);
}
#vision-rotator {
  font-size: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
  text-shadow: 0 0 8px rgba(0,255,255,0.2), 0 0 12px rgba(0,255,255,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

#vision-rotator.active {
  opacity: 1;
  transform: translateY(0);
}



/* Shoooting-Star Section */
#left-sentences {
  width: 28%;
  min-width: 260px;
  font-size: 2rem;
  font-weight: 900;
  color: #ff1c40;
  line-height: 1.3;
  text-align: right;
  text-shadow: 0 0 10px rgba(255,20,60,0.75), 0 0 22px rgba(255,20,60,0.5);
}
#left-sentences div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  margin-bottom: 1rem;
}

#left-sentences div.active {
  opacity: 1;
  transform: translateY(0);
}

/* Challenge Section */
#left-sentences-challenge {
  width: 28%;
  min-width: 260px;
  font-size: 2rem;
  font-weight: 900;
  color: #ff1c40;
  line-height: 1.3;
  text-align: right;
  text-shadow: 0 0 10px rgba(255,20,60,0.75), 0 0 22px rgba(255,20,60,0.5);
}
#left-sentences-challenge div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  margin-bottom: 1rem;
}

#left-sentences-challenge div.active {
  opacity: 1;
  transform: translateY(0);
}


/* GAME CANVAS WRAPPER */
#game-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-challenge-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CANVAS STYLE */
#game {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 15px;
  background: #111;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
      0 0 18px rgba(255, 0, 85, 0.28),
      0 0 28px rgba(0, 255, 255, 0.18);
  transition: box-shadow 0.35s ease, transform 0.3s ease;
}
#game-challenge {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 15px;
  background: #111;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
      0 0 18px rgba(255, 0, 85, 0.28),
      0 0 28px rgba(0, 255, 255, 0.18);
  transition: box-shadow 0.35s ease, transform 0.3s ease;
}

#game:hover {
  box-shadow:
      0 0 35px rgba(255, 0, 85, 0.6),
      0 0 45px rgba(0, 255, 255, 0.5);
  transform: scale(1.02);
}
#game-challenge:hover {
  box-shadow:
      0 0 35px rgba(255, 0, 85, 0.6),
      0 0 45px rgba(0, 255, 255, 0.5);
  transform: scale(1.02);
}

.sentence-box div {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
  font-size: 18px;
  font-weight: 600;
}

.sentence-box div.active {
  opacity: 1;
  transform: translateY(0);
}


.demo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 60px auto;
  width: 90%;
}


.demo-section + .demo-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 60px;
}

.demo-game canvas {
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.15);
}
.demo-section:nth-child(even) {
  flex-direction: row-reverse;
}


/* OPTIONAL: make cards appear below demo-section */
.card {
  cursor: pointer;
}

.card-container {
  margin-top: 2rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* slightly bigger */
    gap: 0rem;
    width: 100%;
    max-width: 800px; /* allow more space */
    margin: 2rem auto;
    justify-items: center;
}

.card {
    width: 150px;         /* bigger card */
    aspect-ratio: 1 / 1;  /* maintain square */
    background: #000;     /* full black background */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding: 1rem;    /* space inside card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 6px rgba(0,255,255,0.2), 0 0 6px rgba(255,0,255,0.2); /* default glow */
}
/* PULSE GLOW ANIMATION */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(0,255,255,0.2), 0 0 10px rgba(255,0,255,0.2); }
  50% { box-shadow: 0 0 12px rgba(0,255,255,0.4), 0 0 25px rgba(255,0,255,0.35); }
}

/* HOVER - intensified glow */
.card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 0 20px #0ff,
    0 0 40px #f0f,
    0 0 60px #ff0,
    0 0 80px rgba(0,255,255,0.3);
  animation: none; /* stop pulsing while hovered */
}

/* ICON */
.card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(0,255,255,0.2), 0 0 10px rgba(255,0,255,0.2);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.card:hover .icon {
  transform: scale(1.2);
  text-shadow: 0 0 15px #0ff, 0 0 25px #f0f, 0 0 35px #ff0;
}

/* CARD TITLE */
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(270deg, #0ff, #f0f, #ff0, #0ff);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neonText 5s ease infinite;
  margin: 0;
}

/* TEXT ANIMATION */
@keyframes neonText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

hr.centered-hr {
    width: 70%;
    margin: 2rem auto;
    border: 1px solid #fff;
  }
  


.auth-container {
  width: 320px;
  margin: 5% auto;
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
}

.auth-container h1 {
  color: #0ff;
  margin-bottom: 1.5rem;
}

.auth-container input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: none;
  outline: none;
}

.auth-container button {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  background: #0ff;
  color: #0c0c14;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-container button:hover {
  background: #0aa;
  transform: scale(1.05);
}

.auth-container p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-container a {
  color: #0ff;
  text-decoration: none;
}

.auth-container a:hover {
  text-decoration: underline;
}

#msg {
  margin-top: 1rem;
  font-weight: 600;
}

/* ============================= */
/* Card glow for auth and game cards */
/* ============================= */
.auth-container,
.game-card {
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.auth-container.active,
.auth-container:hover,
.game-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 50px rgba(0, 255, 255, 0.3);
}


/* .game-section {
  padding: 50px 20px;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
  color: #ffffff;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 30px;
  opacity: 0.7;
}

.challenge-section {
  border-top: 2px solid rgba(255,255,255,0.08);
  margin-top: 40px;
}

.challenge-section {
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
} */


/* ============================= */
/* Input text & background fixes */
/* ============================= */
.auth-container input,
.auth-container input:focus {
  color: #fff;               /* white text */
  background-color: #111;    /* dark background */
  border: 1px solid #0ff;
  outline: none;
  box-shadow: none;
}

.auth-container input::placeholder {
  color: #aaa;               /* placeholder lighter */
}


/* Newsletter Enhancements */
.newsletter-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.newsletter input {
  border-radius: 25px;
  padding: 12px 18px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.newsletter input.error {
  border: 2px solid #ff4d4d;
  animation: shake 0.3s;
}


/* ============================= */
/* NEWSLETTER + STATS            */
/* ============================= */
.newsletter {
  text-align: center;
  margin-bottom: 3rem;
}

.newsletter input[type="email"] {
  padding: 0.8rem 1rem;
  border-radius: 8px 0 0 8px;
  border: none;
  width: 250px;
  outline: none;
}

.newsletter button {
  padding: 0.8rem 1.5rem;
  border-radius: 0 8px 8px 0;
  border: none;
  background: #a0f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter button:hover {
  background: #d0a0ff;
  transform: translateY(-2px);
}

/* Footer styles */
.site-footer {
  background: #0c0c14;
  color: #aaa;
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'Inter', sans-serif;
  border-top: 2px solid rgba(0,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(270deg, #0ff, #00f, #0ff);
  opacity: 0.1;
  transform: skewX(-20deg);
  animation: footerGlow 8s linear infinite;
  pointer-events: none;
}

@keyframes footerGlow {
  0% { transform: translateX(-100%) skewX(-20deg); }
  50% { transform: translateX(100%) skewX(-20deg); }
  100% { transform: translateX(-100%) skewX(-20deg); }
}

.site-footer p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
  color: #0ff;
  position: relative;
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #0ff;
  left: 0;
  bottom: -3px;
  transition: width 0.3s;
}

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

.footer-links .icon {
  margin-right: 0.4rem;
  transition: transform 0.3s;
}

.footer-links a:hover .icon {
  transform: translateY(-2px) rotate(-10deg);
}

/* Responsive */
@media (max-width: 500px) {
  .footer-links {
    gap: 1rem;
  }
}

/* Footer */
.site-footer {
  background: #0c0c14;
  text-align: center;
  padding: 2rem 1rem;
  color: #aaa;
  border-top: 1px solid #222;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.site-footer .footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.site-footer .footer-links a:hover {
  color: #0ff;
}

/* .brand {
  display: flex;
  align-items: center;
  gap: 1px;
  /* width: 1px; */
  /* height: 10px;
  width: auto; */
  /*transition: transform 0.3s ease;
  cursor: pointer; */

/* Hover effect: move the logo up slightly and enlarge */
/* .brand:hover {
  transform: translateY(-5px) scale(1.05);
} */



