html,
body {
  height: 100%;
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: hsla(40, 33%, 98%, 1);
  color: hsla(30, 4%, 20%, 1);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: hsla(217, 65%, 47%, 1);
  text-decoration: none;
}

a:hover {
  color: hsla(217, 65%, 37%, 1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header + nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid hsla(40, 8%, 88%, 1);
}

.site-logo {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: hsla(30, 4%, 20%, 1);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  color: hsla(30, 4%, 32%, 1);
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: hsla(40, 8%, 85%, 1);
}

/* Hero */
.hero {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 88px 0 96px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1.2;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsla(217, 65%, 47%, 1);
  font-weight: 600;
  margin: 0;
}

.hero-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.12;
  margin: 0;
  text-wrap: pretty;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: hsla(30, 4%, 38%, 1);
  margin: 0;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.btn-primary {
  background: hsla(217, 65%, 47%, 1);
  color: hsla(40, 40%, 99%, 1);
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
}

.btn-primary:hover {
  background: hsla(217, 65%, 37%, 1);
  color: hsla(40, 40%, 99%, 1);
}

.hero-media {
  display: flex;
  justify-content: center;
  flex: 0.8;
}

.hero-frame {
  width: 340px;
  height: 300px;
  border-radius: 12px;
  border: 1px solid hsla(40, 8%, 85%, 1);
  background: repeating-linear-gradient(
    45deg,
    hsla(40, 15%, 95%, 1),
    hsla(40, 15%, 95%, 1) 10px,
    hsla(40, 10%, 92%, 1) 10px,
    hsla(40, 10%, 92%, 1) 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-frame figure {
  margin: 0;
}

.hero-frame img {
  width: 420px;
  display: block;
}

/* Services */
.services {
  padding: 72px 0 88px;
  border-top: 1px solid hsla(40, 8%, 88%, 1);
}

.section-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 12px;
}

.section-lead {
  font-size: 16px;
  color: hsla(30, 4%, 38%, 1);
  margin: 0 0 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: hsla(217, 40%, 91%, 1);
  color: hsla(217, 65%, 42%, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}

.service p {
  font-size: 15px;
  line-height: 1.6;
  color: hsla(30, 4%, 38%, 1);
  margin: 0;
}

/* Experience */
.experience {
  padding: 0 0 88px;
}

.experience-card {
  background: hsla(214, 20%, 22%, 1);
  border-radius: 12px;
  padding: 56px 56px 48px;
  color: hsla(40, 20%, 96%, 1);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  color: hsla(217, 60%, 76%, 1);
}

.stat-label {
  font-size: 16px;
  color: hsla(40, 6%, 78%, 1);
}

.clients-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsla(40, 6%, 63%, 1);
  margin-bottom: 24px;
}

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.clients a {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsla(40, 10%, 83%, 1);
}

.clients a:hover {
  color: hsla(40, 20%, 96%, 1);
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px 48px;
  padding-bottom: 48px;
}

/* .project{
  border: 2px solid hsla(217, 60%, 56%, 1);
  background: hsla(217, 60%, 89%, 1);
} */

.project-tags{
  display:flex;
  gap: 4px;
}
.badge{
  font-size: 11px;
  border: 1px solid hsla(217, 40%, 80%, 1);
  background: hsla(217, 60%, 89%, 1);
}

figure.project-logo{
  margin-block-start: 0em;
  margin-inline-start: 0px;
}

/* Contact */
.contact {
  padding: 24px 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.contact h2 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  font-size: 36px;
  margin: 0;
}

.contact p {
  font-size: 17px;
  color: hsla(30, 4%, 38%, 1);
  margin: 0;
  max-width: 44ch;
  line-height: 1.6;
}

.contact .btn-primary {
  padding: 14px 30px;
  margin-top: 8px;
}

.contact-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  margin-top: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid hsla(40, 8%, 88%, 1);
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: hsla(30, 4%, 52%, 1);
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 44px;
  }
}

@media (max-width: 1020px) {
  .container {
    padding: 0 20px;
  }

  .site-header {
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-divider {
    display: none;
  }

  .hero {
    flex-direction: column;
    align-items: start;
    padding: 56px 0 64px;
    gap: 40px;
  }

  .hero-copy,
  .hero-media {
    flex: 1 1 auto;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-frame {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    border: none;
    background: none;
  }

  .hero-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .services {
    padding: 56px 0 64px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .experience {
    padding: 0 0 64px;
  }

  .experience-card {
    padding: 40px 28px 32px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

  .stat-number {
    font-size: 36px;
  }

  .contact {
    padding: 16px 0 72px;
  }

  .contact h2 {
    font-size: 30px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0 32px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .site-logo {
    font-size: 18px;
  }

  .site-nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .clients {
    gap: 20px 28px;
  }
}
