@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600&display=swap");

:root {
  --primary: #7b2ff7;
  --primary-light: #9d5cfa;
  --secondary: #00d4ff;
  --accent: #ff6b35;
  --bg-dark: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --text-muted: #8892b0;
  --glow: 0 0 20px rgba(123, 47, 247, 0.5);
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* STARS BACKGROUND */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stars {
  background: transparent;
  animation: twinkle 4s ease-in-out infinite alternate;
}

.stars::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow:
    25px 50px 0 #fff, 100px 120px 0 #fff, 200px 80px 0 #fff, 350px 150px 0 #fff,
    450px 60px 0 #fff, 500px 200px 0 #fff, 600px 100px 0 #fff, 750px 180px 0 #fff,
    800px 50px 0 #fff, 900px 120px 0 #fff, 150px 300px 0 #fff, 300px 400px 0 #fff,
    550px 350px 0 #fff, 700px 450px 0 #fff, 850px 380px 0 #fff, 120px 500px 0 #fff,
    400px 550px 0 #fff, 650px 600px 0 #fff, 250px 650px 0 #fff, 950px 550px 0 #fff,
    50px 700px 0 #fff, 350px 750px 0 #fff, 500px 800px 0 #fff, 750px 700px 0 #fff,
    1000px 50px 0 #fff, 1100px 200px 0 #fff, 1200px 100px 0 #fff, 1300px 300px 0 #fff;
  animation: drift 120s linear infinite;
}

.stars2::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow:
    80px 150px 0 rgba(255, 255, 255, 0.8), 250px 300px 0 rgba(255, 255, 255, 0.6),
    420px 180px 0 rgba(255, 255, 255, 0.7), 600px 250px 0 rgba(255, 255, 255, 0.5),
    780px 350px 0 rgba(255, 255, 255, 0.9), 950px 200px 0 rgba(255, 255, 255, 0.4),
    1150px 150px 0 rgba(255, 255, 255, 0.8), 200px 500px 0 rgba(255, 255, 255, 0.6),
    550px 600px 0 rgba(255, 255, 255, 0.7), 850px 550px 0 rgba(255, 255, 255, 0.5);
  animation: drift 80s linear infinite;
}

.stars3::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow:
    150px 250px 0 var(--secondary), 500px 400px 0 var(--primary-light),
    900px 300px 0 var(--accent), 300px 600px 0 var(--secondary),
    700px 500px 0 var(--primary-light), 1100px 200px 0 var(--accent);
  border-radius: 50%;
  animation: drift 60s linear infinite;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-1500px); }
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.nebula {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(123, 47, 247, 0.3) 0%,
    rgba(0, 212, 255, 0.2) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: nebula-pulse 8s ease-in-out infinite alternate;
}

@keyframes nebula-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.planet, .rocket {
  font-size: 3rem;
  animation: orbit 4s ease-in-out infinite;
}

.planet { animation-delay: 0s; }
.rocket { animation-delay: 2s; transform: rotate(-45deg); }

@keyframes orbit {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(5deg); }
  75% { transform: translateY(10px) rotate(-5deg); }
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
  text-shadow: 0 0 40px rgba(123, 47, 247, 0.3);
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* FEATURES SECTION */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(123, 47, 247, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-light);
  box-shadow: var(--glow), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.feature-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* APP SECTION */
.app-section {
  position: relative;
  z-index: 1;
  padding: 80px 20px 100px;
  display: flex;
  justify-content: center;
}

.app-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  animation: app-glow 4s ease-in-out infinite alternate;
}

@keyframes app-glow {
  0% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(123, 47, 247, 0.2); }
  100% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.3); }
}

.app-header {
  text-align: center;
  margin-bottom: 30px;
}

.app-header h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

/* FORM */
.input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

#task-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
}

#task-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 20px rgba(123, 47, 247, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

#task-input::placeholder {
  color: var(--text-muted);
}

button[type="submit"] {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

button[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(123, 47, 247, 0.4);
}

button[type="submit"]:active {
  transform: scale(0.95);
}

.btn-text {
  color: white;
  font-weight: 600;
  margin-right: 8px;
}

.btn-icon {
  font-size: 1.2rem;
}

/* TASK LIST */
#task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#task-list li {
  display: flex;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  animation: task-slide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.3s;
}

@keyframes task-slide {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

#task-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

#task-list li.completed {
  opacity: 0.5;
  border-color: rgba(0, 255, 136, 0.3);
}

#task-list li.completed span {
  text-decoration: line-through;
  color: #00ff88;
}

#task-list li span {
  flex: 1;
  cursor: pointer;
  font-size: 1rem;
}

.delete-btn {
  background: linear-gradient(135deg, #ff3366, #ff6b35);
  padding: 8px 16px;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.delete-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 15px rgba(255, 51, 102, 0.4);
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.tech-stack {
  margin-top: 10px;
  color: var(--secondary) !important;
  font-weight: 600;
  letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .logo { flex-direction: column; gap: 10px; }
  .app-container { padding: 25px; }
  .features { padding: 60px 20px; }
}
