/* Base Styles */
:root {
  --primary: #6d28d9;
  --accent: #c4b5fd;
  --background: #f9fafb;
  --text: #111827;
  --text-muted: rgba(17, 24, 39, 0.8);
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.section-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #5b21b6;
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.main-nav {
  display: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  margin-left: 1.5rem;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  background-color: white;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-link {
  margin: 0.5rem 0;
}

.mobile-menu .btn {
  margin-top: 1rem;
}

.mobile-menu.active {
  display: flex;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* About Section */
.about-section {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* How It Works Section */
.how-it-works-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.step-icon {
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-text {
  color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background-color: var(--background);
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text);
  text-decoration: underline;
}

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

body.dark-mode .header,
body.dark-mode .footer,
body.dark-mode .mobile-menu,
body.dark-mode .step-card,
body.dark-mode .testimonial-card {
  background-color: #1f2937;
  border-color: #374151;
}

body.dark-mode .btn-primary {
  background-color: #4c1d95;
}

body.dark-mode .btn-primary:hover {
  background-color: #3b0764;
}

body.dark-mode .nav-link,
body.dark-mode .footer-link,
body.dark-mode .section-text,
body.dark-mode .step-text,
body.dark-mode .testimonial-author {
  color: #d1d5db;
}

body.dark-mode .nav-link:hover,
body.dark-mode .footer-link:hover,
body.dark-mode .section-title,
body.dark-mode .section-subtitle {
  color: #f9fafb;
}

body.dark-mode .hero-title,
body.dark-mode .hero-subtitle,
body.dark-mode .about-content,
body.dark-mode .cta-section,
body.dark-mode .section-header {
  color: #f9fafb;
}

body.dark-mode .hero-section {
  background-color: #1f2937;
}

body.dark-mode .about-section,
body.dark-mode .how-it-works-section,
body.dark-mode .testimonials-section,
body.dark-mode .cta-section {
  background-color: #1f2937;
}

body.dark-mode .hero-image img,
body.dark-mode .about-image img {
  filter: brightness(0.8);
}

/* Dark Mode Styles for Cards */
body.dark-mode .step-card,
body.dark-mode .testimonial-card {
  background-color: #2d3748; /* Darker background for better contrast */
  color: #e2e8f0; /* Light text for readability */
  border: 1px solid #4a5568; /* Subtle border for structure */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Slight shadow for depth */
}

body.dark-mode .step-card:hover,
body.dark-mode .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.1); /* Glow effect */
}

/* Adjust text colors inside cards */
body.dark-mode .step-title,
body.dark-mode .testimonial-text {
  color: #edf2f7; /* Brighter text for titles and main content */
}

body.dark-mode .step-text,
body.dark-mode .testimonial-author {
  color: #a0aec0; /* Muted text for secondary content */
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  transition: color 0.3s ease;
}

body.dark-mode .dark-mode-toggle {
  color: #f9fafb;
}

body.dark-mode .footer {
  background-color: #1f2937;
  color: #d1d5db; /* Light text for footer */
}

body.dark-mode .footer-link {
  color: #a0aec0; /* Muted text for footer links */
}

body.dark-mode .footer-link:hover {
  color: #f9fafb; /* Brighter text on hover */
}

body.dark-mode .copyright {
  color: #a0aec0; /* Muted text for copyright */
}

/* Media Queries */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }
}
