body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f9f9f9;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* ✅ Dark Mode */
body.dark-mode {
  background: #111827;
  color: #f9fafb;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #1e293b, #334155);
}

body.dark-mode .feature-card {
  background: #1f2937;
  color: #e5e7eb;
}

body.dark-mode footer {
  background: #0f172a;
  color: #9ca3af;
}

/* ✅ Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition: 0.3s;
}
.theme-toggle:hover {
  background: #2563eb;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  text-align: center;
  padding: 100px 20px;
  animation: gradient 8s ease infinite;
  background-size: 200% 200%;
}
.hero h1 { font-size: 2.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* Buttons */
.buttons .btn {
  padding: 12px 25px;
  margin: 5px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}
.btn.primary { background: #22c55e; color: white; }
.btn.primary:hover { background: #16a34a; transform: scale(1.05); }
.btn.secondary { background: white; color: #3b82f6; }
.btn.secondary:hover { background: #e0e7ff; transform: scale(1.05); }

/* Features */
.features { padding: 60px 20px; text-align: center; }
.features h2 { font-size: 2rem; margin-bottom: 40px; }
.feature-list {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 20px;
}
.feature-card {
  background: white; padding: 25px;
  width: 250px; border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.feature-card .icon { color: #3b82f6; margin-bottom: 10px; }

/* Motivation */
.motivation {
  background: #f3f4f6; padding: 50px 20px;
  text-align: center; font-style: italic; font-size: 1.2rem;
}
body.dark-mode .motivation { background: #1e293b; }

/* Footer */
footer {
  background: #111827; color: #9ca3af;
  text-align: center; padding: 20px; font-size: 0.9rem;
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .feature-list { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 15px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .buttons .btn { padding: 10px 18px; font-size: 0.9rem; }
}

/* Animations */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-fade { animation: fadeIn 2s ease-in; }
.animate-slide { animation: slideIn 1.5s ease-in-out; }
.animate-zoom { animation: zoomIn 1.2s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
