/* Main CSS Variables */
:root {
  /* Pokemon/Thunder Theme Colors */
  --primary-dark: #2A0944;
  --primary-medium: #3B185F;
  --primary-light: #A12568;
  --accent-yellow: #FEC260;
  --accent-electric: #61dbfb;
  --accent-glow: #c036f0;
  
  /* Text Colors */
  --text-light: #f8f8f8;
  --text-dark: #1a1a1a;
  --text-muted: #aaaaaa;
  
  /* UI Colors */
  --background-dark: #1a1021;
  --card-bg: rgba(58, 28, 95, 0.8);
  --card-hover: rgba(75, 37, 122, 0.9);
  
  /* Animation Speeds */
  --transition-fast: 0.3s;
  --transition-medium: 0.5s;
  --transition-slow: 0.8s;

  /* Shadows */
  --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.3);
  --shadow-large: 0 8px 20px rgba(0, 0, 0, 0.4);
  --glow-effect: 0 0 15px var(--accent-glow);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--text-light);
  transition: color var(--transition-fast) ease;
}

a:hover {
  color: var(--accent-yellow);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent-yellow);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast) ease-out;
}

.highlight:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Section Styles */
section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-glow);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(42, 9, 68, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-fast) ease;
  box-shadow: var(--shadow-small);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

header.scrolled {
  padding: 15px 0;
  background: rgba(42, 9, 68, 0.95);
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

nav ul {
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-size: 1rem;
  font-weight: 600;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast) ease-out;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-button {
  background: var(--primary-light);
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: 30px;
  transition: all var(--transition-fast) ease;
  box-shadow: var(--shadow-small);
}

.nav-button:hover,
.nav-button.active {
  background: var(--accent-yellow);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--text-light);
  margin: 3px 0;
  transition: all var(--transition-fast) ease;
}

/* Lightning Effect */
.lightning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
}

.lightning.flash {
  opacity: 1;
  background: rgba(254, 194, 96, 0.1);
  animation: lightning 1.5s ease-out;
}

@keyframes lightning {
  0% {
    opacity: 0;
  }
  1% {
    opacity: 0.8;
  }
  2% {
    opacity: 0.1;
  }
  3% {
    opacity: 0.9;
  }
  4% {
    opacity: 0.2;
  }
  5% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

/* Particle Effects */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--accent-electric);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}

/* Button Styles */
.cta-button {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-fast) ease;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-light);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium) ease-out;
}

.cta-button:hover {
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-large);
}

.cta-button:hover::before {
  transform: scaleX(1);
}

/* Footer Styles */
footer {
  background: var(--primary-dark);
  padding: 60px 0 20px;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--accent-yellow);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-medium);
  border-radius: 50%;
  color: var(--text-light);
  transition: all var(--transition-fast) ease;
}

.social-icons a:hover {
  background: var(--accent-yellow);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: var(--glow-effect);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-medium) ease;
    z-index: 999;
  }
  
  nav.active ul {
    right: 0;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .container {
    width: 95%;
    padding: 0 10px;
  }
}