:root {
  --primary-color: #007bff;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --light-gray-color: #e9ecef;
  --white-color: #fff;
  --dark-blue-color: #0d2c6c;
  --footer-bg-color: #295de9;
  --body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color);
}

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

button {
  cursor: pointer;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 20px;
}

.header {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--light-gray-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-color);
}

@media (max-width: 992px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 2.5rem 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-buttons {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-text .btn-primary {
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
}

.hero-image {
  width: 45%;
  height: 350px;
}

.hero-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    margin-top: 2rem;
  }
}

/* Features Section */
.features {
  padding: 60px 0;
  text-align: center;
}

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

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

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

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* How it Works Section */
.how-it-works {
  padding: 60px 0;
}

.how-it-works-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.how-it-works-text {
  max-width: 50%;
}

.how-it-works-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.how-it-works-text p {
  margin-bottom: 2rem;
}

.how-it-works-text ul {
  list-style: none;
  margin-bottom: 2rem;
}

.how-it-works-text ul li {
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.how-it-works-text .btn-primary {
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
}

.how-it-works-image {
  width: 45%;
  height: 400px;
  background-color: #e0e0e0;
  border-radius: 20px;
}

.how-it-works-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .how-it-works-container {
    flex-direction: column;
  }

  .how-it-works-text {
    max-width: 100%;
    text-align: center;
  }

  .how-it-works-image {
    width: 100%;
    margin-top: 2rem;
  }
}

/* Partners Section */
.partners {
  padding: 60px 0;
  text-align: center;
  background-color: var(--secondary-color);
}

.partners .section-title {
  margin-bottom: 1rem;
}

.partners p {
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.partner-logo {
  height: 60px;
  border-radius: 10px;
}

.partner-logo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

/* Why Us Section */
.why-us {
  padding: 60px 0;
  text-align: center;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}

.why-us-card {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 20px;
}

.why-us-icon {
  width: 60px;
  height: 60px;
  background-color: var(--white-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.why-us-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.why-us-card p {
  margin-bottom: 1.5rem;
}

/* General Responsive Adjustments */
@media (max-width: 992px) {
  .hero-text h1,
  .section-title,
  .how-it-works-text h2,
  .footer-contact-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .hero,
  .features,
  .how-it-works,
  .partners,
  .why-us,
  .footer {
    padding: 40px 0;
  }

  .hero-text h1,
  .section-title,
  .how-it-works-text h2,
  .footer-contact-text h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .hero-text h1,
  .section-title,
  .how-it-works-text h2,
  .footer-contact-text h2 {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }

  .partner-logo {
    height: 50px;
  }
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--white-color);
  padding: 60px 0 20px;
}

.footer-contact {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 40px;
  border-bottom: 1px solid #4a4a7a;
}

.footer-contact-text {
  max-width: 45%;
}

.footer-contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-contact-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.footer-contact-form {
  max-width: 45%;
  width: 100%;
}

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

.footer-contact-form input,
.footer-contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #34be23;
  background-color: transparent;
  color: var(--white-color);
  border-radius: 5px;
  font-size: 1rem;
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
  outline: 2px solid #34be23;
}

.footer-contact-form textarea {
  font-family: var(--body-font-family);
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
  color: #a9a9d1;
}

.footer-contact-form textarea {
  height: 120px;
  margin-bottom: 1rem;
  resize: vertical;
}

.footer-contact-form .btn-primary {
  background-color: #00c853;
  padding: 15px 30px;
  width: auto;
  float: right;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--white-color);
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-contact {
    flex-direction: column;
  }

  .footer-contact-text,
  .footer-contact-form {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.terms-content {
  margin: 0 auto;
  max-width: 80ch;
  padding: 20ch 0;
}
