/* =========================
   DESIGN SYSTEM
========================= */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --dark-color: #111827;
  --text-color: #374151;
  --muted-color: #6b7280;
  --light-color: #f8fafc;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
}


/* =========================
   NAVIGATION
========================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}

h1 {
  margin: 0;
  color: var(--dark-color);
  font-size: 24px;
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 20px;
  color: var(--dark-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

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


/* =========================
   MOBILE MENU
========================= */

.menu-button {
  display: none;
  padding: 5px;
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 767px) {

  .menu-button {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  }

  nav.show {
    display: flex;
  }

  nav a {
    width: 100%;
    margin-left: 0;
    padding: 8px 0;
  }

}


/* =========================
   HERO
========================= */

.hero {
  padding: 85px 20px;
  text-align: center;
  background:
    radial-gradient(
      circle at top right,
      #dbeafe 0,
      transparent 35%
    ),
    var(--white);
}

.hero-badge {
  display: inline-block;
  padding: 7px 15px;
  margin-bottom: 20px;
  background-color: #eff6ff;
  color: var(--primary-color);
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
}

.hero h2 {
  max-width: 750px;
  margin: 0 auto 20px;
  color: var(--dark-color);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 35px;
  color: var(--muted-color);
  font-size: 18px;
  line-height: 1.7;
}


/* =========================
   BUTTONS
========================= */

.hero-button,
.contact-button {
  display: inline-block;
  min-width: 160px;
  padding: 14px 28px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: 0.3s;
}
.hero-button:hover,
.contact-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}


/* =========================
   SERVICES
========================= */

.services {
  display: flex;
  flex-direction: column;
  padding: 75px 20px;
  text-align: center;
}

.section-heading {
  width: 100%;
  max-width: 650px;
  margin: 0 auto 40px;
}

.section-heading span {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.section-heading h2 {
  margin: 10px 0 15px;
  color: var(--dark-color);
  font-size: 30px;
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--muted-color);
}

.service-card {
  padding: 32px 24px;
  margin-bottom: 12px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}
.service-card:last-child {
  margin-bottom: 0;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background-color: #eff6ff;
  border-radius: 50%;
  font-size: 30px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--dark-color);
  font-size: 20px;
}

.service-card p {
  margin: 0;
  color: var(--muted-color);
}


/* =========================
   STATS
========================= */

.stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 45px 20px;
  text-align: center;
  background-color: var(--primary-color);
}

.stat h3 {
  margin: 0;
  color: white;
  font-size: 30px;
}

.stat p {
  margin: 3px 0 0;
  color: #dbeafe;
  font-size: 14px;
}


/* =========================
   ABOUT
========================= */

.about {
  padding: 85px 20px;
  background-color: var(--white);
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
}

.about-text span {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.about-text h2 {
  margin: 10px 0 20px;
  color: var(--dark-color);
  font-size: 32px;
  line-height: 1.2;
}

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

.about-box {
  padding: 30px;
  margin-top: 35px;
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.about-box h3 {
  margin-top: 0;
  color: var(--dark-color);
}

.about-box p {
  color: var(--text-color);
}


/* =========================
   CONTACT / CTA
========================= */

.contact {
  padding: 90px 20px;
  text-align: center;
  background-color: var(--dark-color);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-content > span {
  color: #93c5fd;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.contact h2 {
  margin: 12px 0 20px;
  color: white;
  font-size: 34px;
  line-height: 1.2;
}

.contact p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #d1d5db;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 60px 20px 20px;
  background-color: var(--dark-color);
  color: white;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.footer-brand p {
  margin: 0;
  color: #9ca3af;
}

.footer-links,
.footer-contact {
  margin-top: 30px;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 15px;
  font-size: 16px;
}

.footer-links a,
.footer-contact a {
  display: block;
  margin-bottom: 10px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1100px;
  margin: 45px auto 0;
  padding-top: 20px;
  border-top: 1px solid #374151;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}


/* =========================
   DESKTOP
========================= */

@media (min-width: 768px) {

  header {
    padding: 22px 60px;
  }

  .hero {
    padding: 150px 20px;
  }

  .hero h2 {
    font-size: 56px;
  }

  .services {
    flex-direction: row;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .service-card {
    width: 30%;
    max-width: 320px;
  }

  .stats {
    flex-direction: row;
    justify-content: center;
    gap: 100px;
  }

  .about-content {
    display: flex;
    align-items: center;
    gap: 70px;
  }

  .about-text {
    flex: 1;
  }

  .about-box {
    flex: 1;
    margin-top: 0;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
  }

  .footer-links,
  .footer-contact {
    margin-top: 0;
  }

}
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s;
}

.service-card:hover::before {
  transform: scaleX(1);
}