/* 👻 Import spooky font */
@import url('https://fonts.googleapis.com/css2?family=Nosifer&display=swap');

/* 🌌 Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Nosifer', cursive;
  color: #fff;
  background: url('./Image.jpeg') no-repeat center center fixed;
  background-size: cover;
  text-align: center;
  overflow-x: hidden;
  animation: bg-glow 8s ease-in-out infinite alternate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

/* ✨ Title */
header h1 {
  font-size: 3rem;
  margin-top: 60px;
  text-shadow: 0 0 10px #00eaff, 0 0 30px #00eaff, 0 0 60px #00eaff;
  animation: fadeInOut 4s ease-in-out infinite;
}

/* 🧊 Tagline */
.tagline {
  font-size: 1.3rem;
  margin-top: 10px;
  color: #ff9800;
  text-shadow: 0 0 10px #ff9800, 0 0 20px #ff9800;
  animation: fadeInOut 3s ease-in-out infinite;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 📜 Sections */
main {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
  margin-bottom: 60px;
}

.project-highlights {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  margin-top: 20px;
  border: 2px solid #ff9800;
  border-radius: 12px;
  text-align: left;
}

.project-highlights h2 {
  color: #ff9800;
  margin-bottom: 10px;
  text-align: center;
}

.project-highlights ul {
  list-style: none;
}

.project-highlights ul li {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 1rem;
}

/* 🚀 Launch Info Highlight */
.launch {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: bold;
  text-shadow: 0 0 10px #00eaff;
}

/* 🌐 Links */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border: 2px solid #ff9800;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  transition: 0.3s;
  font-size: 1rem;
}

.btn:hover {
  background: #ff9800;
  color: black;
  box-shadow: 0 0 20px #ff9800;
}

.x-link {
  border-color: #1da1f2;
}

.x-link:hover {
  background: #1da1f2;
  color: white;
}

.tg-link {
  border-color: #0088cc;
}

.tg-link:hover {
  background: #0088cc;
  color: white;
}

/* 🎃 Pumpkin Rain */
.pumpkin {
  position: fixed;
  top: -50px;
  font-size: 2rem;
  animation: fall linear infinite;
  pointer-events: none;
  z-index: 1;
}

.pumpkin:nth-child(1) { left: 10%; animation-duration: 8s; }
.pumpkin:nth-child(2) { left: 25%; animation-duration: 10s; }
.pumpkin:nth-child(3) { left: 40%; animation-duration: 12s; font-size: 1.5rem; }
.pumpkin:nth-child(4) { left: 55%; animation-duration: 9s; }
.pumpkin:nth-child(5) { left: 70%; animation-duration: 11s; }
.pumpkin:nth-child(6) { left: 85%; animation-duration: 13s; font-size: 1.8rem; }
.pumpkin:nth-child(7) { left: 15%; animation-duration: 10s; }
.pumpkin:nth-child(8) { left: 35%; animation-duration: 14s; font-size: 1.6rem; }
.pumpkin:nth-child(9) { left: 50%; animation-duration: 12s; }
.pumpkin:nth-child(10) { left: 65%; animation-duration: 10s; }
.pumpkin:nth-child(11) { left: 80%; animation-duration: 9s; }
.pumpkin:nth-child(12) { left: 90%; animation-duration: 15s; font-size: 1.7rem; }

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.3;
  }
}

/* ✨ Animations */
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes bg-glow {
  0% { filter: brightness(0.9) contrast(1); }
  100% { filter: brightness(1.2) contrast(1.3); }
}

/* 📱 RESPONSIVE STYLES */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .project-highlights {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
    margin-top: 30px;
  }

  .tagline {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
  .project-highlights ul li {
    font-size: 0.95rem;
  }
}