body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  scroll-behavior: smooth;
  background: #f9fafb;
  color: #111;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 24px;
  color: #7c3aed;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

.nav-links li a:hover {
  color: #7c3aed;
  transform: scale(1.1);
  text-decoration: underline;
}

.actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.signin {
  padding: 8px 20px;
  border-radius: 25px;
  border: none;
  background: #7c3aed;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.signin:hover {
  background: #5b21b6;
  transform: scale(1.05);
}

body.dark {
  background: #111827;
  color: #f9fafb;
}

body.dark .navbar { background: #1f2937; }
body.dark .feature-item { background: #1f2937; color: #f9fafb; }
body.dark .modal-content { background: #1f2937; color: #f9fafb; }
body.dark .footer { background: #000; }

.theme-toggle {
  cursor: pointer;
  font-size: 18px;
  border: none;
  background: none;
  transition: transform 0.3s;
}

.theme-toggle:hover { transform: rotate(20deg); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #111;
  border-radius: 3px;
  transition: 0.3s;
}

body.dark .hamburger span { background: #f9fafb; }

.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  top: 70px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-in-out;
}

.nav-links-mobile.active { display: flex; }
body.dark .nav-links-mobile { background: #1f2937; color: #f9fafb; }

.hero {
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #f0f9ff, #fdfdfd);
  animation: fadeIn 1s ease-in-out;
}

body.dark .hero { background: linear-gradient(135deg, #111827, #1f2937); }
.hero h1 { font-size: 3rem; line-height: 1.2; }
.hero .gradient {
  background: linear-gradient(to right, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.2rem; margin-top: 20px; color: #555; }
body.dark .hero p { color: #d1d5db; }

.cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primary, .secondary {
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.primary { background: #7c3aed; color: white; }
.primary:hover { background: #5b21b6; transform: scale(1.05); }

.secondary { background: #e5e7eb; color: #111; }
.secondary:hover { background: #d1d5db; transform: scale(1.05); }

.about {
  padding: 80px 20px;
  text-align: center;
  animation: slideUp 1.2s ease-in-out;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}
body.dark .about p { color: #d1d5db; }

.features {
  padding: 100px 20px;
  text-align: center;
  animation: slideUp 1.5s ease-in-out;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  background: linear-gradient(to right, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.feature-item {
  background: #f0f9ff;
  padding: 30px;
  border-radius: 20px;
  width: 250px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

@keyframes fadeIn { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }
@keyframes slideUp { from {opacity: 0; transform: translateY(40px);} to {opacity: 1; transform: translateY(0);} }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

.goal-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  text-align: center;
}

.goal-form input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: 0.3s;
  font-size: 1rem;
  width: 80%;
  max-width: 400px;
}

.goal-form input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 6px rgba(6,182,212,0.3);
}

.generate-btn {
  background: #7c3aed;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.generate-btn:hover {
  background: #5b21b6;
  transform: scale(1.05);
}

.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-links a {
  color: #7c3aed;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #06b6d4;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .modal-content { width: 95%; padding: 15px 20px; }
}

.roadmap-stage {
  text-align: left;
  margin-bottom: 20px;
}

.roadmap-stage h4 { color: #7c3aed; margin-bottom: 8px; }
.roadmap-stage ul { margin: 5px 0 10px 20px; padding: 0; }
.roadmap-stage a { color: #06b6d4; text-decoration: none; }
.roadmap-stage a:hover { text-decoration: underline; }


.spinner {
  border: 4px solid #f3f3f3;       /* Light gray */
  border-top: 4px solid #3498db;   /* Blue */
  border-radius: 50%;
  width: 35px;
  height: 35px;
  animation: spin 1s linear infinite;
  margin: 0 auto; /* center horizontally */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
