html {
  scroll-behavior: smooth;
}

#hero,
#about,
#experience,
#projects,
#education,
#achievements,
#life,
#contact {
  scroll-margin-top: 6rem;
}

#hero {
  min-height: 100vh;
}

#hero .subtitle {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#hero h1 {
  line-height: 1.05;
}

#hero h2 {
  line-height: 1.15;
}

#hero .hero-content {
  max-width: 46ch;
}

#hero .hero-cta {
  margin-top: 32px;
}

#hero .hero-cta .btn,
#contact a.btn {
  border-radius: 999px;
}

#hero .hero-cta .btn {
  margin-top: 0;
}

#hero .hero-secondary-cta,
#contact .hero-secondary-cta {
  background-color: var(--secondary-color) !important;
}

#hero .hero-bottom-svg {
  color: var(--primary-color);
  opacity: 0.3;
}

#hero .hero-bottom-svg svg {
  display: block;
}

#hero .image img {
  max-width: 300px;
  border-width: 2px;
}

#about .content,
.onepage-topic-content {
  max-width: 68ch;
  margin-inline: auto;
}

#about ul {
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 6px 14px;
}

#experience h3,
#education h3,
#achievements h3,
#life h3 {
  color: var(--text-secondary-color) !important;
}

.onepage-topic-content p {
  opacity: 0.9;
}

.onepage-topic-group {
  margin-top: 1.5rem;
}

.onepage-topic-group h5 {
  margin-bottom: 0.6rem;
}

.onepage-topic-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.onepage-topic-group li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.1rem;
}

.onepage-topic-group li::before {
  content: "▹";
  color: var(--primary-color);
  left: 0;
  position: absolute;
}

#projects .card {
  min-height: 100%;
  width: 100%;
}

#projects .card .card-head {
  aspect-ratio: 16 / 10;
}

#projects .card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#achievements .cert-card {
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#achievements .cert-card .cert-card-head {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f2f5f8 0%, #e8edf2 100%);
}

#achievements .cert-card .cert-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#achievements .cert-card .cert-card-body {
  padding: 0;
}

#achievements .cert-card .card-text p {
  margin-bottom: 0.35rem;
}

#achievements .cert-card .card-text p:last-child {
  margin-bottom: 0;
}

#achievements .cert-card--v2 {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  column-gap: 1rem;
  align-items: stretch;
}

#achievements .cert-card--v2 .cert-card-head {
  aspect-ratio: auto;
  min-height: 100%;
}

#achievements .cert-card--v2 .cert-card-img {
  object-fit: contain;
  padding: 0.8rem;
  background: linear-gradient(140deg, #f8fafc 0%, #eef2f7 100%);
}

#achievements .cert-card--v3 .cert-card-head {
  aspect-ratio: 16 / 6;
  background: linear-gradient(140deg, #13202f 0%, #1d3148 100%);
}

#achievements .cert-card--v3 .cert-card-img {
  object-fit: contain;
  padding: 0.8rem 1.1rem;
}

#achievements .cert-card--v3 .card-title {
  letter-spacing: 0.01em;
}

#contact .text-center {
  max-width: 58ch;
  margin-inline: auto;
}

footer .text-center p {
  max-width: 64ch;
  margin-inline: auto;
}

@media (max-width: 991px) {
  #hero {
    min-height: auto;
    padding-top: 2rem;
  }

  #hero .hero-cta {
    margin-top: 1rem;
  }

  #about ul {
    grid-template-columns: 1fr;
  }

  #achievements .cert-card--v2 {
    display: flex;
    flex-direction: column;
  }

  #achievements .cert-card--v2 .cert-card-head {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
