:root {
  --resume-radius: 1.25rem;
  --resume-shadow: 0 1rem 3rem rgba(20, 30, 50, 0.08);
  --resume-line: #dfe3e8;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172033;
  background: #fff;
}
.section-pad {
  padding: 5rem 0;
}
.hero {
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: center;
  background: radial-gradient(
    circle at 90% 10%,
    rgba(13, 110, 253, 0.09),
    transparent 34%
  );
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bs-primary);
}
.profile-frame {
  max-width: 390px;
  aspect-ratio: 4/5;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--resume-shadow);
  transform: rotate(1.5deg);
  background: #e9ecef;
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resume-copy {
  color: #4b5563;
  line-height: 1.75;
}
.resume-copy ul,
.resume-copy ol {
  padding-left: 1.2rem;
  margin-bottom: 0;
}
.resume-copy li + li {
  margin-top: 0.45rem;
}
.section-heading {
  max-width: 760px;
}
.timeline {
  position: relative;
}

.timeline-item {
  display: grid;

  /*
   * Mobile:
   * rail | content
   */
  grid-template-columns: 1.25rem minmax(0, 1fr);
  grid-template-areas:
    "rail meta"
    "rail content";

  column-gap: 1rem;

  position: relative;

  padding-bottom: 3rem;
}

.timeline-meta {
  grid-area: meta;

  margin-bottom: 1rem;
}

.timeline-content {
  grid-area: content;

  min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Timeline Rail
|--------------------------------------------------------------------------
*/

.timeline-rail {
  grid-area: rail;

  position: relative;

  display: flex;
  justify-content: center;

  /*
   * Make the vertical line fill the entire item.
   */
  align-self: stretch;
}

.timeline-rail::before {
  content: "";

  position: absolute;

  top: 0.4rem;
  bottom: -3rem;

  left: 50%;

  width: 2px;

  background: var(--resume-line);

  transform: translateX(-50%);
}

/*
|--------------------------------------------------------------------------
| Timeline Dot
|--------------------------------------------------------------------------
*/

.timeline-dot {
  position: absolute;

  top: 0.4rem;
  left: 50%;

  width: 1rem;
  height: 1rem;

  border-radius: 50%;

  background: var(--bs-primary);

  box-shadow: 0 0 0 0.35rem #fff;

  transform: translateX(-50%);

  z-index: 2;
}

.timeline-item:last-child .timeline-rail::before {
  bottom: auto;
  height: 0;
}

/*
|--------------------------------------------------------------------------
| Desktop
|--------------------------------------------------------------------------
*/

.education-card {
  border-radius: var(--resume-radius) !important;
}
.read-more-toggle {
  text-decoration: none;
  font-weight: 600;
}
.read-more-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.read-more-toggle i {
  display: inline-block;
  transition: transform 0.2s ease;
}
.skill-pill {
  display: inline-flex;
  padding: 0.65rem 1rem;
  border: 1px solid #dce1e7;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}
.contact-section {
  background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%);
}
.contact-section .card {
  border-radius: var(--resume-radius);
}
.form-control {
  border-radius: 0.85rem;
}
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.thank-you p {
  max-width: 600px;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-image {
  transform: translateY(18px) scale(0.97);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.btn,
.nav-link,
.skill-pill,
.card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(20, 30, 50, 0.07);
}
@media (min-width: 768px) {
  .section-pad {
    padding: 7rem 0;
  }

  .timeline-item {
    grid-template-columns:
      minmax(0, 1fr)
      1.5rem
      minmax(0, 2fr);

    grid-template-areas: "meta rail content";

    column-gap: 1.5rem;
  }

  .timeline-meta {
    margin-bottom: 0;

    padding-right: 0.5rem;
  }
}
@media (max-width: 767.98px) {
  .display-3 {
    font-size: clamp(2.8rem, 14vw, 4.25rem);
  }
  .hero {
    min-height: auto;
  }
  .profile-frame {
    max-width: 290px;
  }
  .section-pad {
    padding: 4.5rem 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal-image,
  .btn,
  .nav-link,
  .skill-pill,
  .card,
  .read-more-toggle i {
    transition: none !important;
  }
  .reveal,
  .reveal-image {
    opacity: 1;
    transform: none;
  }
}
