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

body {
  font-family: "Tilt Neon", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Global responsive media */
img, video {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

/* Prevent scroll while preloader is visible */
html:has(.preloader):not(:has(.preloader.hidden)),
body:has(.preloader):not(:has(.preloader.hidden)) {
  overflow: hidden;
}

/* Sticky Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.7rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

#logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.5));
  transition: all 0.3s ease;
}
.logo a {
  text-decoration: none; /* removes the underline */
  color: inherit; /* keeps the button text color */
  display: flex; /* ensures the span and icon stay aligned */
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

header.scrolled #logo img {
  height: 35px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #00ff00;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #00ff00;
  transition: width 0.3s;
}

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

/* Hero Section */
.hero-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2rem;
  padding-top: 100px;
  /* Added padding to account for fixed header */
}

.hero-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300ff00" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
  z-index: -1;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.5rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
  color: #ccc;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #00ff00, #00cc00);
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 0, 0.6);
}

.btn:active {
  transform: translateY(1px);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::after {
  transform: translateX(100%);
}

.features {
  padding: 6rem 2rem;
  background: rgba(10, 10, 10, 0.8);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #00ff00;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(26, 26, 26, 0.8);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 255, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  color: #00ff00;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #ccc;
}

.stats {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #00ff00;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #ccc;
  font-size: 1.2rem;
}

.cta {
  padding: 6rem 2rem;
  text-align: center;
  background: rgba(10, 10, 10, 0.9);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #ccc;
}

footer {
  padding: 3rem 2rem;
  background: #0a0a0a;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #00ff00;
}

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #00ff00;
}

.copyright {
  color: #666;
}

/* Animation for the logo */
@keyframes pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.5));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.8));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.5));
  }
}

#logo img {
  animation: pulse 3s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
    flex-direction: column;
    text-align: center;
  }

  header.scrolled {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    margin-top: 0.8rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 50% 40%, rgba(0,255,0,0.08), transparent 60%)
    , #0a0a0a;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.preloader-logo {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,255,0,0.6));
  animation: pulse 2.5s infinite;
}

.preloader-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(0,255,0,0.25);
  border-top-color: #00ff00;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 15px rgba(0,255,0,0.25);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .preloader-logo { animation: none; }
  .preloader-spinner { animation: none; }
  .preloader { transition: none; }
}
