/* Base Styles */
:root {
  --primary: #14FFEC;
  --primary-dark: #0CCCB9;
  --accent-red: #FF6B6B;
  --accent-yellow: #E5FF00;
  --bg-dark: #0B0F0E;
  --bg-darker: #080C0B;
  --card-bg: rgba(20, 31, 30, 0.7);
  --text: rgba(255, 255, 255, 0.87);
  --text-muted: rgba(255, 255, 255, 0.6);
  --glow-primary: 0 0 10px rgba(20, 255, 236, 0.5), 0 0 20px rgba(20, 255, 236, 0.2);
  --glow-red: 0 0 10px rgba(255, 107, 107, 0.5), 0 0 20px rgba(255, 107, 107, 0.2);
  --glow-yellow: 0 0 10px rgba(229, 255, 0, 0.5), 0 0 20px rgba(229, 255, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Audiowide', cursive;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  text-shadow: var(--glow-primary);
}

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

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #141F1E 0%, #0B0F0E 70%);
  opacity: 0.8;
  animation: pulse 15s infinite alternate;
}

@keyframes pulse {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(11, 15, 14, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 255, 236, 0.1);
  transition: all 0.3s ease;
}

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

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

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: 2px;
  color: var(--primary);
  text-shadow: var(--glow-primary);
  position: relative;
  z-index: 2;
}

.logo-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  left: -20px;
  animation: rotate 10s linear infinite;
  box-shadow: var(--glow-primary);
  opacity: 0.7;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

nav li {
  margin-left: 2rem;
}

nav a {
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
  box-shadow: var(--glow-primary);
}

nav a:hover::after {
  width: 100%;
}

/* Button Styles */
.button {
  display: inline-block;
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(20, 255, 236, 0.3);
}

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

.button:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

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

/* Main content */
main {
  flex: 1;
  margin-top: 100px;
  padding-bottom: 2rem;
}

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
    text-shadow: var(--glow-primary);
  }
  91% {
    transform: translate(-2px, 2px);
    text-shadow: var(--glow-red);
  }
  93% {
    transform: translate(2px, -2px);
    text-shadow: var(--glow-yellow);
  }
  95% {
    transform: translate(-2px, -2px);
    text-shadow: var(--glow-primary);
  }
  97% {
    transform: translate(2px, 2px);
    text-shadow: var(--glow-red);
  }
}

/* Footer Styles */
footer {
  background-color: rgba(11, 15, 14, 0.9);
  backdrop-filter: blur(8px);
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(20, 255, 236, 0.1);
}

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

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

.footer-logo h2 {
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 2px;
  color: var(--primary);
  text-shadow: var(--glow-primary);
  position: relative;
  z-index: 2;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.copyright {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .container,
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    margin-top: 1.5rem;
    justify-content: center;
  }
  
  nav li {
    margin: 0 1rem;
  }
  
  .footer-logo {
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  
  .button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--primary);
  box-shadow: var(--glow-primary);
  text-align: center;
  max-width: 90%;
  width: 400px;
  animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}