/* Common styles for all pages */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

:root {
  /* Color Variables */
  --primary-blue: #4dc9ff;
  --primary-pink: #ff61e5;
  --primary-purple: #c961ff;
  --neon-blue: #00eeff;
  --neon-pink: #ff00aa;
  --dark-bg: #0b0b13;
  --card-bg: rgba(20, 20, 40, 0.6);
  --text-light: #ffffff;
  --text-secondary: #ccccff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grid Background */
.grid-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  perspective: 1000px;
}

.grid-horizon {
  position: absolute;
  width: 200%;
  height: 200%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(transparent 0%, rgba(15, 10, 40, 0.5) 75%, rgba(5, 5, 20, 0.8) 100%),
              linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 49.9%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0) 50.1%, rgba(0,0,0,0) 100%),
              linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 49.9%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0) 50.1%, rgba(0,0,0,0) 100%);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  transform: rotateX(60deg);
  animation: grid-move 15s linear infinite;
}

@keyframes grid-move {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 100%, 60px 0, 0 60px;
  }
}

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

/* Typography */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
               0 0 20px rgba(255, 255, 255, 0.2),
               0 0 30px var(--primary-blue),
               0 0 40px var(--primary-purple);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--primary-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(11, 11, 19, 0.9), rgba(11, 11, 19, 0.7) 70%, transparent);
  backdrop-filter: blur(5px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  filter: drop-shadow(0 0 5px var(--neon-blue));
}

nav ul {
  display: flex;
  list-style: none;
}

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

nav ul li a {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 1px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Buttons */
.neon-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
  color: var(--text-light);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(76, 201, 255, 0.5),
              0 0 30px rgba(201, 97, 255, 0.3);
}

.neon-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.neon-button:hover {
  box-shadow: 0 0 20px rgba(76, 201, 255, 0.7),
              0 0 40px rgba(201, 97, 255, 0.5);
}

.neon-button:hover::before {
  left: 100%;
}

/* Footer */
footer {
  background: linear-gradient(to top, rgba(11, 11, 19, 0.9), rgba(11, 11, 19, 0.7) 70%, transparent);
  padding: 50px 0 30px;
  margin-top: 50px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 30px;
  filter: drop-shadow(0 0 5px var(--neon-blue));
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-pink);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(11, 11, 19, 0.95);
    padding: 20px 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-out;
    backdrop-filter: blur(10px);
  }
  
  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}