:root {
  color-scheme: dark;
  --accent: #fb923c;
  --dark: #262626;
  --muted: #d1d5db;
  --radius: 0.85rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: #171717;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

h3 {
  font-size: 1.2rem;
}

p + p {
  margin-top: 0.75rem;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-dark {
  background: var(--dark);
  color: var(--muted);
}

.section-dark h2, .section-dark dt {
  color: #fff;
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading::after {
  display: block;
  width: 3rem;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.25rem;
  background: #fff;
  color: #171717;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 50;
  background: rgb(23 23 23 / 95%);
  backdrop-filter: blur(12px);
}

.header-content {
  padding-block: 0.5rem;
}

#primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

#primary-nav a {
  display: block;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

#primary-nav a[aria-current="location"] {
  color: var(--accent);
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.6rem 0.9rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #171717;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 4rem);
  place-items: center;
  padding-block: 5rem;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(0 0 0 / 15%);
  content: "";
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: rgb(17 24 39 / 72%);
  text-align: center;
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.hero p {
  max-width: 52rem;
  margin: 0;
  color: #e7e5e4;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero strong {
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid currentColor;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
}

.round-link {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #262626;
  font-size: 1.5rem;
  text-decoration: none;
}

.hero-down {
  position: absolute;
  bottom: 1.25rem;
}

.about-layout {
  display: grid;
  gap: 2rem;
}

.profile-image {
  width: 11rem;
  height: 11rem;
  margin-inline: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.about-layout h2 {
  margin-bottom: 0.75rem;
}

.about-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-details div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.about-details dt {
  font-weight: 700;
}

.about-details dt::after {
  content: ":";
}

.section-light {
  color-scheme: light;
  background: #f5f5f5;
  color: #404040;
}

.resume-row {
  display: grid;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 2px solid #d4d4d4;
}

.resume-row:first-child {
  padding-top: 0;
}

.resume-heading {
  width: fit-content;
  height: fit-content;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #c2410c;
  color: #262626;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 2rem;
}

.timeline h3 {
  color: #262626;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-block: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.skills-section {
  padding-top: 2rem;
}

.skill-grid, .award-grid, .testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 4%);
}

.skill-card h3 {
  margin-bottom: 1.25rem;
  color: #262626;
  font-size: 1rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.badges li {
  padding: 0.3rem 0.7rem;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.languages {
  display: grid;
  gap: 1rem;
}

.languages > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.languages dt {
  font-size: 0.9rem;
  font-weight: 600;
}

.languages dd {
  display: grid;
  grid-template-columns: 4rem 6rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.languages dd span {
  text-align: right;
}

meter {
  width: 4rem;
  height: 0.75rem;
  accent-color: #c2410c;
}

meter::-webkit-meter-optimum-value {
  background: #c2410c;
}

.gallery {
  columns: 2;
  column-gap: 1rem;
}

.gallery figure {
  margin-bottom: 1rem;
  overflow: hidden;
  break-inside: avoid;
  border-radius: var(--radius);
  background: #171717;
  box-shadow: 0 8px 18px rgb(0 0 0 / 20%);
}

.gallery img {
  width: 100%;
}

.gallery a {
  display: block;
  text-decoration: none;
}

.gallery a:focus-visible {
  outline-offset: -3px;
}

.gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.awards-section {
  background: linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("/assets/images/header-background.webp") center / cover;
}

.testimonials-section {
  background: linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("/assets/images/testimonial.webp") center / cover;
}

.glass-card {
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  background: rgb(17 24 39 / 88%);
  color: #e5e7eb;
}

.glass-card h3 {
  color: #fff;
}

.organization {
  margin-block: 0.75rem;
  color: #fdba74;
  font-size: 0.9rem;
  font-weight: 600;
}

blockquote {
  font-style: italic;
}

.testimonial-grid figcaption {
  margin-top: 1rem;
  color: #fdba74;
  font-size: 0.85rem;
}

.contact-section {
  text-align: center;
}

.contact-section .section-heading {
  margin-bottom: 1.5rem;
}

address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.site-footer {
  position: relative;
  padding: 3rem 1rem 2rem;
  background: #171717;
  color: #a3a3a3;
  text-align: center;
}

.footer-up {
  position: absolute;
  top: -1.375rem;
  left: calc(50% - 1.375rem);
}

.site-footer p {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.privacy-button {
  margin-top: 1rem;
  padding: 0.5rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  width: min(100% - 2rem, 22rem);
  max-height: calc(100svh - 2rem);
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid #737373;
  border-radius: var(--radius);
  background: #171717;
  color: #f5f5f5;
  box-shadow: 0 4px 24px rgb(0 0 0 / 40%);
}

.consent-banner h2 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.consent-banner p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.consent-actions button {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.consent-actions button:hover {
  background: #404040;
}

.analytics-status:not(:empty) {
  width: min(100%, 40rem);
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--accent);
  background: #171717;
  color: #fff;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.error-page h1, .error-page p {
  margin-bottom: 1.5rem;
}

@media (max-width: 24rem) {
  .gallery {
    columns: 1;
  }
}

@media (max-width: 47.999rem) {
  .site-header.is-enhanced {
    position: sticky;
    top: 0;
  }

  #primary-nav:not([hidden]) {
    margin-top: 0.25rem;
  }

  .menu-toggle:not([hidden]) + #primary-nav {
    flex-direction: column;
  }
}

@media (min-width: 48rem) {
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    background: rgb(23 23 23 / 80%);
  }

  #primary-nav {
    gap: 1.25rem;
  }

  .hero {
    min-height: 100svh;
  }

  .about-layout, .resume-row {
    grid-template-columns: 1fr 3fr;
  }

  .profile-image {
    margin-inline: 0;
  }

  .about-details, .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    columns: 3;
  }

  .award-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
