:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: rgba(18, 18, 18, 0.74);
  --panel-strong: rgba(9, 9, 9, 0.9);
  --text: #f3f3f3;
  --muted: #c4c4c4;
  --soft: #8f8f8f;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #ffffff;
  --accent-muted: #d8d8d8;
  --hover: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.46);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.68)),
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54)),
    url("assets/Background.jpg") center / cover fixed,
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 72%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-menu {
  position: fixed;
  top: 50%;
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 10;
  display: grid;
  gap: 0.28rem;
  width: 184px;
  transform: translateY(-50%);
  padding: 0.34rem 0 0.34rem 1.28rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}

.section-menu::before {
  position: absolute;
  top: 0.2rem;
  left: -1px;
  width: 1px;
  height: calc(100% - 0.4rem);
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
}

.section-menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.25rem 0.5rem 1.05rem;
  border-radius: 6px;
  color: var(--soft);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.section-menu a::before {
  position: absolute;
  left: -1.65rem;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: var(--bg);
  content: "";
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.section-menu a::after {
  position: absolute;
  left: -0.97rem;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.58);
  content: "";
  transition: width 180ms ease;
}

.section-menu a:hover,
.section-menu a:focus-visible,
.section-menu a.active {
  color: var(--text);
  outline: none;
}

.section-menu a:hover {
  transform: translateX(-4px);
}

.section-menu a:hover::before,
.section-menu a:focus-visible::before,
.section-menu a.active::before {
  border-color: var(--text);
  background: var(--text);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.34);
  transform: scale(1.08);
}

.section-menu a:hover::after,
.section-menu a:focus-visible::after,
.section-menu a.active::after {
  width: 0.68rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main {
  overflow: clip;
}

.hero,
.section {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 92svh;
  padding: clamp(5rem, 9vw, 7.5rem) 0 3rem;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.8rem;
  color: var(--accent-muted);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(4.4rem, 9vw, 8.8rem);
  line-height: 0.86;
  font-weight: 900;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 850;
}

h3 {
  margin-bottom: 0.2rem;
  font-size: 1.22rem;
  line-height: 1.2;
}

.role {
  max-width: 680px;
  margin-bottom: 1.4rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.28;
}

.intro,
.contact-copy p,
.timeline-content p,
.detail-panel p {
  color: var(--muted);
}

.intro {
  max-width: 620px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button::after {
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.44) 50%, transparent 100%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-125%);
  animation: button-flash 3.8s ease-in-out infinite;
}

.button:hover::after,
.button:focus-visible::after {
  animation-duration: 1.7s;
  opacity: 0.75;
}

.button.primary {
  animation: primary-button-pulse 3.8s ease-in-out infinite;
  border-color: rgba(255, 255, 255, 0.74);
  background: #f3f3f3;
  color: #090909;
}

.button.primary::after {
  background: linear-gradient(120deg, transparent 0%, rgba(9, 9, 9, 0.16) 50%, transparent 100%);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-panel {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  align-self: center;
  max-width: 540px;
}

.hero-panel > div {
  padding: 0;
}

.hero-panel .panel-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-panel p {
  max-width: 520px;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-panel p:last-child {
  margin-bottom: 0;
}

.interest-list {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interest-list li {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.signal-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.signal-strip span {
  padding: 0.42rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.signal-strip span:not(:last-child)::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.65rem;
  border-radius: 999px;
  background: var(--soft);
  content: "";
  vertical-align: middle;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-divider {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading > p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 1.35rem;
  color: var(--muted);
}

#experience .section-heading > p:not(.eyebrow) {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
}

#experience .section-heading h2,
#education .section-heading h2,
#contact .contact-copy h2 {
  font-size: clamp(1.11rem, 2.04vw, 2.01rem);
  line-height: 1.06;
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.timeline-content {
  max-width: 820px;
}

.job-title {
  margin-bottom: 1rem;
  color: var(--accent-muted);
  font-weight: 800;
}

.timeline-content ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.timeline-content li::marker {
  color: var(--accent-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.education-column {
  display: grid;
  gap: 1rem;
}

.detail-panel {
  padding: clamp(1.1rem, 3vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 40px var(--shadow);
  backdrop-filter: blur(10px);
}

.detail-panel p {
  margin-bottom: 0.35rem;
}

.detail-panel p:last-child {
  margin-bottom: 0;
}

.detail-panel time {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-panel time:last-child {
  margin-bottom: 0;
}

.credential-title {
  color: var(--text);
  font-weight: 800;
}

.detail-group-title {
  margin: 0.75rem 0 0.85rem;
  color: var(--text);
}

.certification-group {
  display: grid;
  gap: 1rem;
}

.certification-item {
  display: grid;
  gap: 0.45rem;
}

.certification-item h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.25;
}

.certification-name {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-weight: 800;
}

.status {
  color: var(--accent-muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 58svh;
  padding-bottom: clamp(3.5rem, 6vw, 5.25rem);
}

.contact-copy p {
  max-width: 590px;
  margin-top: 1.3rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.contact-details {
  display: grid;
  gap: 0;
}

.contact-details div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.contact-details div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-details strong {
  color: var(--text);
  font-weight: 850;
}

.contact-details a,
.contact-details span {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--text);
  outline: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.3rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 0.15rem;
}

.site-footer strong {
  color: var(--text);
  font-size: 0.95rem;
}

.site-footer span,
.site-footer a {
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer p {
  flex-basis: 100%;
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffffff, #8a8a8a);
}

@keyframes button-flash {
  0%,
  56% {
    opacity: 0;
    transform: translateX(-125%);
  }

  68% {
    opacity: 0.65;
  }

  82%,
  100% {
    opacity: 0;
    transform: translateX(125%);
  }
}

@keyframes primary-button-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
  }
}

@media (max-width: 980px) {
  .section-menu {
    top: auto;
    right: auto;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    left: 50%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(calc(100% - 2rem), 430px);
    min-width: 0;
    transform: translateX(-50%);
    gap: 0.18rem;
    padding: 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(20px);
  }

  .section-menu::before {
    display: none;
  }

  .section-menu p {
    grid-column: 1 / -1;
    text-align: center;
  }

  .section-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.44rem 0.34rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1;
    text-align: center;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .section-menu a::before,
  .section-menu a::after {
    display: none;
  }

  .section-menu a:hover,
  .section-menu a:focus-visible,
  .section-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
  }

  .section-menu a:hover {
    transform: translateY(-1px);
  }

  .hero,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (min-width: 981px) and (max-width: 1680px) {
  .hero,
  .section {
    width: min(calc(100% - 24rem), var(--max));
    margin-left: clamp(1rem, 4vw, 4rem);
    margin-right: auto;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(5.35rem + env(safe-area-inset-bottom));
    font-size: 0.95rem;
    overflow-x: hidden;
    background:
      linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.74)),
      url("assets/Background.jpg") center top / cover scroll,
      var(--bg);
  }

  h2 {
    font-size: 2rem;
  }

  .hero,
  .section {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .hero {
    gap: 1rem;
    min-height: auto;
    padding: 2.35rem 0 2.8rem;
  }

  .hero-copy {
    max-width: none;
    min-width: 0;
  }

  .eyebrow,
  .panel-label {
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero-copy h2 {
    font-size: clamp(2.35rem, 11.8vw, 3.45rem);
    line-height: 0.98;
  }

  .role {
    margin-bottom: 0.85rem;
    font-size: 1rem;
    line-height: 1.32;
  }

  .intro,
  .contact-copy p,
  .timeline-content p,
  .detail-panel p {
    font-size: 0.92rem;
    overflow-wrap: break-word;
  }

  .role,
  .timeline-content,
  .section-heading,
  .contact-copy {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.3rem;
  }

  .button {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
  }

  .hero-panel {
    gap: 1.3rem;
    max-width: none;
  }

  .detail-panel {
    background: rgba(18, 18, 18, 0.58);
    box-shadow: none;
  }

  .hero-panel > div {
    padding: 0;
  }

  .detail-panel {
    padding: 0.95rem;
  }

  .hero-panel .panel-label {
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .interest-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.16rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .interest-list li {
    padding: 0;
    border: 0;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .signal-strip {
    display: none;
  }

  .section {
    padding: 4.25rem 0 3.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section + .section,
  .section-divider + .section {
    margin-top: 0.35rem;
  }

  .section-heading {
    margin-bottom: 1.55rem;
  }

  .section-heading > p:not(.eyebrow),
  .contact-copy p {
    margin-top: 0.85rem;
  }

  #experience .section-heading > p:not(.eyebrow) {
    font-size: 0.93rem;
    font-weight: 600;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.2rem 0;
  }

  .timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .timeline-content ul {
    display: none;
  }

  .detail-grid,
  .education-column,
  .certification-group {
    gap: 0.8rem;
  }

  .detail-group-title {
    margin: 0.35rem 0 0.1rem;
    font-size: 1rem;
  }

  .contact-section {
    min-height: auto;
    gap: 1.4rem;
    padding-bottom: 2.6rem;
  }

  .contact-details div {
    padding: 0.82rem 0;
  }

  .site-footer {
    display: grid;
    gap: 0.85rem;
    padding-bottom: 1.1rem;
  }

  .section-menu {
    width: min(calc(100% - 1rem), 390px);
    padding: 0.3rem;
  }

  .section-menu a {
    min-height: 39px;
    padding: 0.44rem 0.1rem;
    font-size: clamp(0.68rem, 2.75vw, 0.8rem);
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 380px) {
  .section-menu {
    width: min(calc(100% - 0.75rem), 360px);
  }

  .section-menu a {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
