/* Color Palette - Harmonious Purple Theme:
   Primary: #6366f1 (Medium Indigo) - Main brand color
   Secondary: #8b5cf6 (Violet) - Accents and highlights
   Tertiary: #1e1b4b (Deep Indigo) - Backgrounds
*/

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Jersey 10', sans-serif;
  color: #e0e7ff;
  text-align: center;
  image-rendering: pixelated;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e1b4b 0%, #4338ca 50%, #1e1b4b 100%);
  z-index: -2;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #a78bfa;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.9; transform: translateY(0px); }
  50% { opacity: 0.4; transform: translateY(1px); }
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 65px; /* 🔥 NEW: define exact height */
  background: rgba(30, 27, 75, 0.9);
  display: flex;
  justify-content: center; /* easier alignment */
  align-items: center;
  padding: 0 24px; /* NEW: remove vertical padding, add horizontal */
  z-index: 1000;
  box-sizing: border-box; /* ensure border stays perfectly aligned */
  backdrop-filter: blur(10px);
}


.nav-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: nowrap;
}

nav a {
  color: #e0e7ff;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

h1, h2, h3 {
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.7), 2px 2px 4px #000;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #c4b5fd;
}

h1 {
  font-size: 5rem;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(99, 102, 241, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.9;
  }
}

section {
  padding: 100px 20px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.landing {
  min-height: 100vh;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  max-width: 800px;
  margin: auto;
  padding: 0 10px;
}

.video-wrapper {
  position: relative;
  width: 315px;
  height: 560px;
  max-width: 90vw;
  border: 3px solid #6366f1;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  background: #000;
}

.about {
  padding: 100px 20px;
  text-align: center;
}

.learn-more-container {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.learn-more-toggle {
  display: inline-block;
  color: #8b5cf6;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: underline;
  transition: all 0.3s ease;
  padding: 10px 20px;
}

.learn-more-toggle:hover {
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  transform: scale(1.05);
}

.learn-more-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
  text-align: left;
  padding: 0 20px;
}

.learn-more-content.expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 30px;
}

.learn-more-content h3 {
  color: #a78bfa;
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: left;
}

.learn-more-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e0e7ff;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.champion-section {
  text-align: center;
}

.champions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  align-items: center;
  margin-top: 40px;
  max-width: 700px;
  width: 100%;
}

.champion {
  position: relative;
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  cursor: pointer;
}

.champion img {
  width: 128px;
  height: 128px;
  border: 2px solid #6366f1;
  background: #1e1b4b;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

.champion:hover img {
  transform: scale(1.1);
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.7), 0 0 30px rgba(99, 102, 241, 0.4);
}

.champion .desc {
  visibility: hidden;
  width: 180px;
  background-color: rgba(30, 27, 75, 0.95);
  color: #e0e7ff;
  text-align: center;
  border: 1px solid #6366f1;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.champion:hover .desc {
  visibility: visible;
  opacity: 1;
}

.feedback {
  padding: 100px 20px;
  text-align: center;
}

.feedback-subtext {
  max-width: 500px;
  font-size: 1rem;
  color: #c4b5fd;
  opacity: 0.9;
  margin-bottom: 40px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

input, textarea {
  width: 100%;
  background: rgba(30, 27, 75, 0.6);
  border: 2px solid #6366f1;
  color: #e0e7ff;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Jersey 10', sans-serif;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

input::placeholder, textarea::placeholder {
  color: rgba(224, 231, 255, 0.5);
}

input:focus, textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 12px 24px;
  border: 2px solid #6366f1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Jersey 10', sans-serif;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

footer {
  padding: 80px 20px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  background-color: rgba(30, 27, 75, 0.8);
  border-top: 2px solid #6366f1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

a { 
  color: #a78bfa; 
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover { 
  color: #c4b5fd;
  text-decoration: underline;
}

@media (max-width: 768px) {
  section { padding: 100px 60px; }
  nav a { font-size: 0.9rem; }
  .video-wrapper { width: 270px; height: 480px; }
  .champions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  section { padding: 100px 60px; }
  nav a { font-size: 0.8rem; }
  .video-wrapper { width: 240px; height: 430px; }
  .landing { font-size: 1.2rem; }
  .champions-grid { grid-template-columns: repeat(2, 1fr); }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(99, 102, 241, 0.5);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(139, 92, 246, 1), 0 0 45px rgba(99, 102, 241, 0.7);
  }
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.logo {
  height: 42px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.7));
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.1);
}

/* Mobile hamburger defaults */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger div {
  width: 28px;
  height: 3px;
  background: #e0e7ff;
  border-radius: 3px;
  transition: 0.3s ease;
}

@media (max-width: 768px) {

  .hamburger {
    display: flex;
    margin-left: auto; /* force spacing */
  }

  nav {
    height: 70px;      /* same as desktop — keeps border aligned */
    padding: 0 25px;   /* no vertical padding */
    justify-content: space-between;
  }


  .nav-links {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background: rgba(30,27,75,0.95);
    flex-direction: column;
    gap: 25px;
    padding: 40px 0;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }

  .nav-links a {
    font-size: 1.4rem;
    padding: 10px 20px;
  }

  .nav-links.active {
    transform: translateY(0%);
  }
}

/* Hamburger animation when active */
.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
