html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

section {
  padding-left: 0;
  padding-right: 0;
}

* {
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

#skills .row > div {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  aspect-ratio: 1/1;
}

#skills img {
  width: auto !important;
  height: auto !important;
  max-width: 45%;
  max-height: 45%;
  object-fit: contain;
}

@media (min-width: 768px) {
  #skills img {
    max-width: 50%;
    max-height: 50%;
  }
}

@media (min-width: 992px) {
  #skills img {
    max-width: 55%;
    max-height: 55%;
  }
}

@media (min-width: 1200px) {
  #skills img {
    max-width: 60%;
    max-height: 60%;
  }
}

@media (min-width: 1400px) {
  #skills img {
    max-width: 65%;
    max-height: 65%;
  }
}

.timeline {
  --logo-w: 120px;
  --logo-h: 26px;
  --line-x: 0;
  position: relative;
  margin: 0 auto;
  max-width: 1600px;
  padding-left: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--line-x);
  width: 2px;
  background: var(--bs-primary);
}

.timeline li {
  position: relative;
  margin-bottom: 2rem;
  padding-left: calc(var(--logo-w) + 1.25rem);
  display: block;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: var(--line-x);
  top: calc(var(--logo-h) / 2);
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid var(--bs-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.timeline-icon {
  width: var(--logo-w);
  height: var(--logo-h);
  object-fit: contain;
  display: block;
}

.timeline-body {
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .timeline {
    --logo-w: 160px;
    --logo-h: 35px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .timeline {
    --logo-w: 220px;
    --logo-h: 48px;
  }
}

@media (min-width: 992px) {
  .timeline {
    --logo-w: 260px;
    --logo-h: 57px;
    --line-x: calc(var(--logo-w) + 24px);
  }
}

@media (min-width: 992px) {
  .timeline li {
    display: grid;
    grid-template-columns: var(--logo-w) 1fr;
    column-gap: 2.5rem;
    padding-left: 0;
  }
}

@media (min-width: 992px) {
  .timeline-icon {
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .timeline {
    --logo-w: 300px;
    --logo-h: 66px;
    --line-x: calc(var(--logo-w) + 24px);
  }
}

@media (min-width: 1400px) {
  .timeline {
    --logo-w: 340px;
    --logo-h: 75px;
    --line-x: calc(var(--logo-w) + 24px);
  }
}

.was-validated .form-control:invalid, .form-control.is-invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid, .form-control.is-valid {
  border-color: #198754;
}

.card-img-top {
  object-fit: cover;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.btn-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.btn-icon:hover {
  transform: translateY(-3px) scale(1.05);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vh, 32px);
  transform: translateX(-50%);
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 10;
  background: rgba(var(--bs-body-bg-rgb, 255,255,255), .85);
  border: 1px solid rgba(var(--bs-body-color-rgb, 33,37,41), .12);
  color: var(--bs-body-color);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  text-decoration: none;
  transition: transform .2s ease, opacity .3s ease, box-shadow .2s ease;
  animation: cue-bounce 1.25s ease-in-out infinite;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scroll-cue .bi {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(var(--bs-body-color-rgb, 33,37,41), .08);
  opacity: .9;
  animation: cue-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.scroll-cue:active {
  transform: translateX(-50%) translateY(0) scale(.99);
}

.scroll-cue:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb, 13,110,253), .25);
}

.scroll-cue--hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(.96);
  pointer-events: none;
}

@keyframes cue-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@keyframes cue-pulse {
  0% {
    transform: scale(.85);
    opacity: .45;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* @media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-cue::after {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    transition: none;
  }
} */

