/* Google Fonts are loaded in HTML */
:root {
  --color-primary: #333333;
  --color-secondary: #666666;
  --color-accent: #f7f7fa;
  --color-dark: #000000;
  --color-light: #ffffff;
  --color-muted: #e9ecef;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  --radius: 1.2em;
  --font-main: "Inter", "Poppins", Arial, sans-serif;
}

/* Dark theme variables */
[data-theme="dark"] {
  --color-primary: #ffffff;
  --color-secondary: #cccccc;
  --color-accent: #1a1a1a;
  --color-dark: #ffffff;
  --color-light: #2d2d2d;
  --color-muted: #404040;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.2em;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
  background: var(--color-light);
  color: var(--color-dark);
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-accent);
  color: var(--color-dark);
  min-height: 100vh;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.navbar {
  background: var(--color-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2em 0;
}
.logo {
  font-weight: 700;
  font-size: 1.5em;
  color: var(--color-primary);
  letter-spacing: 1px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  transition: color 0.2s;
  border-radius: var(--radius);
  padding: 0.4em 1em;
}
.nav-links a:hover,
.nav-links a:focus {
  background: var(--color-primary);
  color: var(--color-light);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3em;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  padding: 0.5em 0;
  margin: 0.5em 0 0 0;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.7em 1.2em;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--color-primary);
  color: var(--color-light);
}
.hero-section {
  background: linear-gradient(
    120deg,
    var(--color-primary) 60%,
    var(--color-secondary) 100%
  );
  color: var(--color-light);
  padding: 5em 0 3em 0;
  text-align: center;
  border-radius: 0 0 2em 2em;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(
    120deg,
    var(--color-light) 60%,
    var(--color-muted) 100%
  );
  color: var(--color-dark);
}
.hero-content h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.tagline {
  font-size: 1.25em;
  margin-bottom: 1.5em;
  color: var(--color-light);
}

[data-theme="dark"] .tagline {
  color: var(--color-dark);
}
.cta-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
}
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.75em 2em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-dark);
  color: var(--color-light);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}
.btn-secondary {
  background: var(--color-light);
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-dark);
  color: var(--color-light);
}

[data-theme="dark"] .btn-primary {
  background: var(--color-light);
  color: var(--color-dark);
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}

[data-theme="dark"] .btn-secondary {
  background: var(--color-dark);
  color: var(--color-light);
  border: 2px solid var(--color-light);
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:focus {
  background: var(--color-light);
  color: var(--color-dark);
}

/* Additional dark theme styles */
[data-theme="dark"] .navbar {
  border-bottom: 1px solid var(--color-muted);
}

[data-theme="dark"] .footer {
  border-top: 1px solid var(--color-muted);
}

[data-theme="dark"] .newsletter-form input[type="email"] {
  background: var(--color-muted);
  border: 1px solid var(--color-secondary);
  color: var(--color-dark);
}

[data-theme="dark"] .newsletter-form input[type="email"]:focus {
  border: 1.5px solid var(--color-primary);
}

[data-theme="dark"] .legal-content {
  background: var(--color-light);
  color: var(--color-dark);
}
.about-section,
.features-section,
.testimonials-section,
.contact-section {
  padding: 3em 0 2em 0;
}
.about-section h2,
.features-section h2,
.testimonials-section h2,
.contact-section h2 {
  font-size: 2em;
  margin-bottom: 0.7em;
  font-weight: 700;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin-top: 2em;
}
.feature-card {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2em 1.5em;
  text-align: center;
  width: 250px;
  min-width: 200px;
}
.feature-icon {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  display: block;
}
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin-top: 2em;
}
.testimonial {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5em 1.2em;
  width: 300px;
  min-width: 200px;
  font-style: italic;
  color: var(--color-dark);
}
.testimonial footer {
  margin-top: 1em;
  font-size: 0.95em;
  color: var(--color-primary);
  font-style: normal;
}
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2em;
  align-items: flex-start;
}
.newsletter-form {
  width: 100%;
  max-width: 400px;
}
.newsletter-input-group {
  display: flex;
  gap: 0.5em;
  margin-top: 0.5em;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.7em 1em;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius);
  font-size: 1em;
  outline: none;
  transition: border 0.2s;
}
.newsletter-form input[type="email"]:focus {
  border: 1.5px solid var(--color-primary);
}
.newsletter-message {
  margin-top: 0.7em;
  font-size: 1em;
  min-height: 1.2em;
}
.contact-info {
  font-size: 1.1em;
}
.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
}
.contact-info a:hover,
.contact-info a:focus {
  text-decoration: underline;
}
.footer {
  background: var(--color-light);
  color: var(--color-dark);
  box-shadow: 0 -2px 12px rgba(34, 34, 59, 0.05);
  padding: 2em 0 1em 0;
  border-radius: 2em 2em 0 0;
  margin-top: 3em;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  justify-content: center;
}
.legal-info {
  font-size: 0.95em;
  color: #888;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.5em;
}
.footer-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.3em 0.8em;
  transition: background 0.2s, color 0.2s;
}
.footer-links a:hover,
.footer-links a:focus {
  background: var(--color-primary);
  color: var(--color-light);
}
@media (max-width: 800px) {
  .features-grid,
  .testimonials-grid {
    flex-direction: column;
    align-items: center;
  }
  .nav-container {
    flex-direction: column;
    gap: 1em;
  }
}
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.5em;
  }
  .features-section,
  .about-section,
  .testimonials-section,
  .contact-section {
    padding: 2em 0 1em 0;
  }
  .feature-card,
  .testimonial {
    width: 100%;
    min-width: unset;
  }
  .container {
    width: 98%;
    padding: 0 0.5em;
  }
  .footer {
    padding: 1.2em 0 0.7em 0;
  }
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.1em;
  }
}
