: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;
  }
}

.employer-name {
  color: #172033;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.employer-link {
  color: inherit;
  text-decoration: none;
}

.employer-link:hover {
  color: var(--bs-primary);
}

.employer-link-icon {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.65em;
  opacity: 0.55;
  vertical-align: 0.15em;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.employer-link:hover .employer-link-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.job-title {
  font-size: 1.05rem;
  line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| Printable Resume
|--------------------------------------------------------------------------
*/

@media print {

  @page {
    size: letter;
    margin: 0.55in 0.65in;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt;
  }

  body {
    font-family:
      Arial,
      Helvetica,
      sans-serif;
  }

  /*
  |--------------------------------------------------------------------------
  | Hide Website-Only Elements
  |--------------------------------------------------------------------------
  */

  .navbar,
  footer,
  #contact,
  .read-more-toggle,
  .btn,
  .reveal-image {
    display: none !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Remove Website Animation States
  |--------------------------------------------------------------------------
  */

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Page Layout
  |--------------------------------------------------------------------------
  */

  .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .section-pad {
    padding: 0 !important;
  }

  section {
    background: transparent !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Hero → Resume Header
  |--------------------------------------------------------------------------
  */

  .hero {
    min-height: 0 !important;
    display: block !important;

    padding: 0 0 0.25in !important;
    margin-bottom: 0.25in;

    background: none !important;

    border-bottom: 1px solid #bbb;
  }

  .hero .row {
    display: block !important;
  }

  .hero .col-12,
  .hero .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero .eyebrow {
    display: none;
  }

  .hero h1 {
    margin-bottom: 0.05in !important;

    font-size: 24pt !important;
    line-height: 1.1 !important;
  }

  .hero .fs-4 {
    margin-bottom: 0.05in !important;

    font-size: 12pt !important;
  }

  .hero .fs-5 {
    font-size: 10.5pt !important;
  }

  .hero .resume-copy {
    margin-top: 0.12in;
    margin-bottom: 0 !important;
  }

  /*
   * Hide website CTA / LinkedIn buttons.
   */
  .hero .d-flex.flex-wrap.gap-2 {
    display: none !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Section Headings
  |--------------------------------------------------------------------------
  */

  .section-heading {
    margin: 0 0 0.15in !important;
  }

  .section-heading .eyebrow {
    display: none;
  }

  .section-heading h2 {
    margin: 0 !important;
    padding-bottom: 0.04in;

    font-size: 14pt !important;

    border-bottom: 1.5px solid #222;
  }

  /*
  |--------------------------------------------------------------------------
  | Work Experience
  |--------------------------------------------------------------------------
  */

  #experience {
    margin-bottom: 0.25in;
  }

  .timeline {
    margin-top: 0 !important;
  }

  .timeline-item {
    display: grid !important;

    grid-template-columns:
      1.25in 0.12in minmax(0, 1fr) !important;

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

    column-gap: 0.12in !important;

    padding-bottom: 0.18in !important;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .timeline-meta {
    grid-area: meta;

    margin: 0 !important;
    padding: 0 !important;
  }

  .timeline-meta p {
    margin: 0 !important;

    font-size: 8.5pt !important;
  }

  .timeline-rail {
    grid-area: rail;
  }

  .timeline-content {
    grid-area: content;
  }

  .timeline-content h3 {
    margin-bottom: 0 !important;

    font-size: 11.5pt !important;
  }

  .job-title {
    margin-bottom: 0.06in !important;

    color: #222 !important;

    font-size: 10pt !important;
  }

  /*
   * Remove web timeline decorations.
   */
  .timeline-rail::before,
  .timeline-dot {
    display: none !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Resume Description
  |--------------------------------------------------------------------------
  */

  .resume-copy {
    color: #222 !important;

    font-size: 9.5pt !important;
    line-height: 1.35 !important;
  }

  .resume-copy p {
    margin-bottom: 0.06in;
  }

  .resume-copy ul,
  .resume-copy ol {
    margin-top: 0.04in;
    margin-bottom: 0;

    padding-left: 0.18in;
  }

  .resume-copy li+li {
    margin-top: 0.025in;
  }

  /*
  |--------------------------------------------------------------------------
  | Employer Links
  |--------------------------------------------------------------------------
  */

  .employer-link {
    color: #111 !important;
    text-decoration: none !important;
  }

  .employer-link-icon {
    display: none !important;
  }

  /*
   * Don't let browsers print the URL after links.
   */
  a[href]::after {
    content: none !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Education
  |--------------------------------------------------------------------------
  */

  #education {
    margin-bottom: 0.25in;
  }

  .education-card {
    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .education-card .card-body {
    padding: 0 !important;
  }

  /*
   * Print the hidden "Read more" education information.
   */
  .education-card .collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Skills
  |--------------------------------------------------------------------------
  */

  #skills {
    margin-bottom: 0.25in;
  }

  .skill-pill {
    padding: 0 !important;
    margin-right: 0.12in;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    font-size: 9.5pt;
  }

  /*
   * Add separators between skills.
   */
  .skill-pill:not(:last-child)::after {
    content: " •";

    margin-left: 0.12in;
  }

  /*
  |--------------------------------------------------------------------------
  | Projects / Certifications
  |--------------------------------------------------------------------------
  */

  #projects,
  #certifications {
    margin-bottom: 0.25in;
  }

  #projects .card,
  #certifications .rounded-4 {
    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  #projects .card-body,
  #certifications .p-4 {
    padding: 0 !important;
  }

  /*
  |--------------------------------------------------------------------------
  | Prevent Awkward Page Breaks
  |--------------------------------------------------------------------------
  */

  h1,
  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  article {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}


@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;
  }
}