:root {
  --primary-color: #DC2626;
  --primary-dark: #B91C1C;
  --text-color: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --background-light: #F3F4F6;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
}

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

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-img {
  height: 50px;
  width: auto;
  margin-right: 10px;
  /* Space between the logo and the h1 */
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
}

.logo {
  display: flex;
  align-items: center;
  /* Vertically center-align the items */
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-button {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-button.login {
  border: 1px solid var(--text-light);
}

.nav-button.login:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.nav-button.signup {
  background-color: var(--primary-color);
  color: var(--white);
}

.nav-button.signup:hover {
  background-color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #FFD700 100%);
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 1rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-button.primary {
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  cursor: pointer;
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--background-light);
}

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

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--primary-color);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-light);
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.showcase-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background-color: var(--white);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.testimonial-rating {
  color: #FDB241;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info cite {
  display: block;
  font-style: normal;
  font-weight: 600;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.875rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-light);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.slider-dot.active {
  opacity: 1;
  background-color: var(--primary-color);
}

.prev-button,
.next-button {
  background: none;
  border: 1px solid var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.prev-button:hover,
.next-button:hover {
  background-color: var(--background-light);
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background-color: var(--background-light);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--white);
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  font-size: 1rem;
}

.form-notice {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.success-message {
  text-align: center;
  background-color: #ECFDF5;
  padding: 2rem;
  border-radius: 1rem;
}

.success-message h3 {
  color: #065F46;
  margin-bottom: 1rem;
}

.success-message p {
  color: #047857;
}

/* Footer */
.footer {
  background-color: #111827;
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 55px;
  width: auto;
  margin-right: 10px;
}

.footer-brand h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  /* Stack logo, h2, and p vertically */
  align-items: center;
  /* Center-align items horizontally */
  text-align: center;
  /* Center-align the text */
}

.footer-brand p {
  color: #9CA3AF;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: #9CA3AF;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .feature-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-list {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

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

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group input,
  .form-group button {
    width: 100%;
  }
}