@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700&display=swap');

/* Base Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at bottom, #030310 0%, #000007 100%);
  color: #f5f5f5;
  overflow-x: hidden;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Particle Layer */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

/* Subtle Overlay Animation */
body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 0, 64, 0.06) 0%, rgba(0, 0, 80, 0.1) 100%);
  z-index: -2;
  animation: pulseOverlay 10s ease-in-out infinite alternate;
}

@keyframes pulseOverlay {
  0% {
    opacity: 0.05;
    transform: scale(1);
  }
  100% {
    opacity: 0.1;
    transform: scale(1.03);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 140px 30px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
  border-radius: 30px;
  margin: 40px 20px;
  box-shadow: 0 0 80px rgba(255, 0, 64, 0.08);
}

.hero h1 {
  font-size: 3.2rem;
  color: #ff4d6d;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.25);
  margin-bottom: 20px;
}

/* Links */
a {
  color: #ff6a85;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 106, 133, 0.5);
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #fff;
  border-bottom-color: #ff4d6d;
}

/* Features Section */
.features {
  padding: 80px 20px;
}

.features h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  font-weight: 600;
  color: #ff4455;
  text-shadow: 0 0 6px #ff445533;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature {
  background: rgba(0, 0, 30, 0.4);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(255, 70, 100, 0.12);
}

/* Steps Section */
.how-it-works {
  padding: 80px 20px;
}

.steps {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.step {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 100px 30px;
  background: linear-gradient(135deg, #a30000, #111133);
  color: #fff;
  border-radius: 25px;
  margin: 60px 20px;
  box-shadow: 0 0 50px rgba(255, 0, 60, 0.2);
}

.cta .btn {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 14px 30px;
  margin-top: 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cta .btn:hover {
  background: #ff4d6d;
  color: #fff;
  box-shadow: 0 0 12px #ff4d6d;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  font-size: 15px;
  color: #999;
}

/* Toggle Button */
#toggle-theme {
  margin-top: 20px;
  padding: 10px 20px;
  background: #1a1a2e;
  color: #ff4d6d;
  border: 2px solid #ff4d6d;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#toggle-theme:hover {
  background: #ff4d6d;
  color: #fff;
}

/* Contributors Hero Section */
.contributors-hero {
  position: relative;
  height: 400px;
  color: white;
  text-align: center;
  overflow: hidden;
  border-radius: 20px;
  margin: 60px 20px;
  background: radial-gradient(ellipse at top left, #1e1e3f, #0d0d1a);
}

.contributors-hero #particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contributors-hero .content {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.contributors-hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.contributors-hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5em;
}

.btn-hero {
  padding: 12px 24px;
  font-size: 1rem;
  background: white;
  color: black;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: #00bfff;
  color: white;
  box-shadow: 0 0 10px #00bfff;
}

.launch-countdown {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  margin: 60px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(255, 0, 60, 0.1);
}

.launch-countdown h2 {
  font-size: 2rem;
  color: #ff4d6d;
  margin-bottom: 30px;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

#countdown div {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  min-width: 80px;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.1);
}

#countdown p {
  font-size: 0.85rem;
  color: #ccc;
  margin: 5px 0 0;
}

/* Red Matrix Tint Overlay on Particles */
#particles-js::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(255, 0, 0, 0.15),
    rgba(139, 0, 0, 0.08),
    transparent
  );
  mix-blend-mode: color;
  z-index: 1;
}

/* Optional: Enhance red glow in the hero particles */
.contributors-hero #particles-js::after {
  background: radial-gradient(
    circle at center,
    rgba(255, 10, 30, 0.2),
    rgba(150, 0, 0, 0.12),
    transparent
  );
  mix-blend-mode: color;
  z-index: 2;
}
