/* --- CSS Variables (Theme) --- */
:root {
  --primary-color: #007bff; /* A friendly blue */
  --secondary-color: #f8f9fa; /* Light grey */
  --dark-color: #212529;
  --light-color: #ffffff;
  --text-color: #333;
  --font-family: 'Poppins', sans-serif;
}

/* --- Global Styles & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
}

.btn-outline:hover {
  background: var(--light-color);
  color: var(--dark-color);
}

/* --- Header & Navigation --- */
.header {
  background: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border: none;
  background: transparent;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.8)),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80')
      no-repeat center center/cover;
  height: 90vh;
  color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--secondary-color);
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.step-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-10px);
}

.step-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.partner-logo {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: #aaa;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}
.partner-logo:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: var(--secondary-color);
}

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

.testimonial-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: rgba(0, 123, 255, 0.1);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  z-index: -1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info h4 {
  margin-bottom: 0.2rem;
  color: var(--dark-color);
}

.author-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

/* --- Final CTA Section --- */
.cta-final {
  background: var(--primary-color);
  color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}
.cta-final h2 {
  color: var(--light-color);
  margin-bottom: 1rem;
}
.cta-final .btn {
  background: var(--light-color);
  color: var(--primary-color);
  font-weight: 600;
}
.cta-final .btn:hover {
  background: var(--secondary-color);
}

/* --- Footer --- */
.footer {
  background: var(--dark-color);
  color: #aaa;
  padding: 3rem 0 1rem 0;
}

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

.footer-column h3 {
  color: var(--light-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #aaa;
  transition: color 0.3s ease;
}
.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* --- Legal Pages Styles --- */
.legal-page {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.legal-content h2 {
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--dark-color);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--dark-color);
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-content ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.back-to-home {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.back-to-home:hover {
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .nav-links {
    position: fixed;
    left: 0;
    top: 70px; /* Height of header */
    flex-direction: column;
    background: var(--light-color);
    width: 100%;
    text-align: center;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links.nav-active {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

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

  .legal-content {
    padding: 0 1rem;
  }
}