:root {
  --navy: #0b1220;
  --navy-2: #111827;
  --steel: #1e3a5f;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --light: #f8fafc;
  --white: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.site-header.open {
  max-height: 100svh;
  overflow-y: auto;
}

.site-header.scrolled {
  background: rgba(11, 18, 32, 0.96);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: #cbd5e1;
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: #dbeafe;
}

.main-nav a {
  padding: 8px 2px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.language-switcher button {
  cursor: pointer;
  color: #dbeafe;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 12px;
}

.language-switcher button.active {
  color: var(--navy);
  background: var(--white);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.28);
}

.button-light {
  color: var(--navy);
  background: var(--white);
}

.button-outline,
.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-actions .button {
  min-height: 48px;
  padding-inline: 18px;
  border-width: 2px;
}

.button-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.icon-grid {
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 7px 0 0 transparent;
}

.icon-grid::before,
.icon-grid::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.icon-grid::before {
  top: 6px;
  left: 1px;
  right: 1px;
  height: 2px;
}

.icon-grid::after {
  top: 1px;
  bottom: 1px;
  left: 6px;
  width: 2px;
}

.icon-user {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -5px;
  height: 8px;
  border: 2px solid currentColor;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.icon-mail {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-mail::before,
.icon-mail::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 9px;
  height: 2px;
  background: currentColor;
}

.icon-mail::before {
  left: 0;
  transform: rotate(35deg);
}

.icon-mail::after {
  right: 0;
  transform: rotate(-35deg);
}

.icon-phone {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-phone::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 9px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-radius: 0 0 0 6px;
  transform: rotate(-35deg);
}

.icon-link {
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
}

.icon-link::before {
  content: "";
  position: absolute;
  top: 1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.icon-link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1px;
  width: 13px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.section {
  padding: 96px clamp(18px, 5vw, 64px);
}

.section > * {
  max-width: var(--max);
  margin-inline: auto;
}

.section-dark {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(rgba(6, 12, 24, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 12, 24, 0.72) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.18), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #10213a 45%, #0b1220 100%);
  background-size: 36px 36px, 36px 36px, auto, auto;
}

.section-muted {
  background: #eef5fb;
}

.hero {
  min-height: 100vh;
  padding-top: 142px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-nameplate {
  margin: 0 0 18px;
}

.hero-nameplate strong,
.hero-nameplate a {
  display: block;
}

.hero-nameplate strong {
  color: var(--white);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-nameplate a {
  width: fit-content;
  margin-top: 8px;
  color: #bae6fd;
  font-size: 15px;
  font-weight: 800;
  border-bottom: 2px solid rgba(6, 182, 212, 0.62);
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  line-height: 1.25;
}

.hero-lead {
  max-width: 780px;
  color: #e0f2fe;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
}

.hero-support {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 17px;
}

.badge-row,
.chip-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.badge-row span,
.chip-list span,
.tag-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.tag-list li {
  color: var(--steel);
  background: #eef6ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
}

.contact-action-group {
  display: grid;
  gap: 8px;
}

.contact-action-group .button {
  width: 100%;
}

.profile-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: none;
}

.profile-visual {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.14)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 14px);
}

.profile-photo {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-photo::after {
  content: "Hashed Al-Naeem";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(11, 18, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.orbit-one {
  width: 260px;
  height: 260px;
}

.orbit-two {
  width: 360px;
  height: 160px;
  transform: rotate(-25deg);
}

.profile-meta {
  padding-top: 18px;
  color: #e2e8f0;
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-cards span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 13px;
}

.mini-cards strong {
  color: var(--white);
}

.cv-card-link {
  display: block;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(6, 182, 212, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.12));
}

.cv-card-link strong,
.cv-card-link span {
  display: block;
}

.cv-card-link strong {
  color: var(--white);
}

.cv-card-link span {
  margin-top: 3px;
  color: #bae6fd;
  font-size: 13px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: var(--max);
  margin: 56px auto 0;
}

.metrics-grid article {
  min-height: 138px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.metrics-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1;
}

.metrics-grid span {
  color: #cbd5e1;
  font-size: 13px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-heading p:not(.eyebrow),
.compact-dark .section-heading p:not(.eyebrow) {
  color: #cbd5e1;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.about-copy {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.about-copy p {
  color: #334155;
  font-size: 17px;
}

.highlight-grid,
.skills-grid,
.projects-grid,
.awards-grid,
.certificate-grid,
.services-grid,
.video-grid,
.education-grid,
.certification-grid {
  display: grid;
  gap: 16px;
}

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

.highlight-grid article,
.education-card,
.timeline-card,
.project-card,
.award-card,
.service-card,
.video-card,
.certification-grid article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.highlight-grid article,
.education-card,
.project-card,
.award-card,
.service-card,
.video-card,
.certification-grid article {
  padding: 24px;
}

.highlight-grid span,
.service-card span,
.project-card > span,
.certificate-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.muted,
.highlight-grid p,
.project-card p,
.award-card p,
.service-card p,
.video-card p {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  max-width: 980px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 220px;
  width: 2px;
  background: linear-gradient(var(--blue), var(--cyan));
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 60px;
  align-items: start;
}

.timeline-date {
  color: var(--steel);
  font-weight: 800;
}

.timeline-card {
  position: relative;
  padding: 26px;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -67px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.timeline-card.featured {
  border-color: rgba(37, 99, 235, 0.32);
}

.timeline-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #334155;
}

.impact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.impact-strip span {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--steel);
  background: #eaf6ff;
}

.impact-strip strong {
  color: var(--blue);
}

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

.status-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.compact-dark {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #0b1220, #13233d);
  background-size: 34px 34px, 34px 34px, auto;
}

.skills-grid {
  grid-template-columns: repeat(2, 1fr);
}

.skill-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.skill-card h3 {
  color: var(--white);
}

.language-bars {
  display: grid;
  gap: 10px;
}

.language-bars span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.language-bars em {
  color: #bae6fd;
  font-style: normal;
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
}

.project-card .chip-list span {
  color: var(--steel);
  background: #f1f5f9;
}

.text-button {
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.awards-grid {
  grid-template-columns: repeat(4, 1fr);
}

.award-card {
  min-height: 210px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.36);
}

.award-card strong {
  color: var(--cyan);
}

.logo-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.logo-link-grid a {
  min-height: 94px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--steel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 800;
}

.certification-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 28px;
}

.certification-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.certification-grid h3 {
  color: var(--white);
}

.certification-grid p {
  color: #cbd5e1;
}

.certificate-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.certificate-toolbar button {
  cursor: pointer;
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 13px;
}

.certificate-toolbar button.active {
  color: var(--navy);
  background: var(--white);
}

.certificate-grid {
  grid-template-columns: repeat(4, 1fr);
}

.certificate-card {
  cursor: pointer;
  min-height: 170px;
  text-align: left;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(6, 182, 212, 0.12)),
    rgba(255, 255, 255, 0.08);
  padding: 20px;
}

.certificate-card strong,
.certificate-card em {
  display: block;
}

.certificate-card strong {
  margin: 18px 0 8px;
  font-size: 18px;
}

.certificate-card em {
  color: #cbd5e1;
  font-style: normal;
}

.certificate-card.is-hidden {
  display: none;
}

.center-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.video-grid {
  grid-template-columns: repeat(3, 1fr);
}

.video-preview {
  display: grid;
  height: 190px;
  place-items: center;
  margin: -24px -24px 20px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.84), rgba(37, 99, 235, 0.72)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 14px);
  font-size: 26px;
  font-weight: 800;
}

.accent-video .video-preview {
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.82), rgba(30, 58, 95, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 14px);
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-layout h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.contact-layout p {
  color: #cbd5e1;
  font-size: 18px;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-card a,
.contact-card p {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card span {
  display: block;
  color: #93c5fd;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 56px clamp(18px, 5vw, 64px) 28px;
  color: #cbd5e1;
  background: #070d18;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.copyright {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal {
  width: min(780px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-size: 24px;
}

.modal-content {
  padding: 36px;
}

.modal-content .chip-list span {
  color: var(--steel);
  background: #eef6ff;
}

.modal-content a {
  color: var(--blue);
  font-weight: 800;
}

.certificate-preview {
  padding: 54px 36px 38px;
  min-height: 360px;
  text-align: center;
  border: 14px solid #e5edf7;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08)),
    var(--white);
}

.certificate-preview span {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
}

.certificate-preview h3 {
  margin: 34px 0 18px;
  font-size: 36px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.open .main-nav,
  .site-header.open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header.open .main-nav {
    max-height: 42svh;
    overflow-y: auto;
    padding-right: 4px;
  }

  .hero-grid,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid,
  .awards-grid,
  .certificate-grid,
  .logo-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certification-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .section {
    padding: 64px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    max-width: 170px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .site-header.open .main-nav,
  .site-header.open .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .language-switcher {
    justify-content: center;
  }

  .hero-actions,
  .center-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-action-group {
    width: 100%;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    white-space: normal;
    text-align: center;
  }

  h1 {
    font-size: clamp(34px, 11vw, 42px);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(28px, 9vw, 34px);
  }

  .hero-nameplate strong {
    font-size: clamp(22px, 8vw, 30px);
  }

  .hero-nameplate a {
    font-size: 13px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-support,
  .about-copy p,
  .section-heading p:not(.eyebrow),
  .contact-layout p {
    font-size: 16px;
  }

  .badge-row span,
  .chip-list span,
  .tag-list li {
    max-width: 100%;
  }

  .profile-panel,
  .about-copy,
  .highlight-grid article,
  .education-card,
  .project-card,
  .award-card,
  .service-card,
  .video-card,
  .certification-grid article,
  .contact-card {
    padding: 18px;
  }

  .profile-visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .profile-photo {
    width: min(100%, 320px);
  }

  .metrics-grid article {
    min-height: auto;
  }

  .metrics-grid,
  .highlight-grid,
  .education-grid,
  .skills-grid,
  .projects-grid,
  .awards-grid,
  .certificate-grid,
  .services-grid,
  .video-grid,
  .certification-grid,
  .logo-link-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 32px;
  }

  .timeline-card::before {
    left: -31px;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }

  .certificate-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .certificate-toolbar button {
    width: 100%;
    min-height: 42px;
  }

  .video-preview {
    height: 150px;
    margin: -18px -18px 18px;
  }

  .modal {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .modal-content {
    padding: 54px 20px 24px;
  }

  .certificate-preview {
    min-height: 280px;
    padding: 54px 20px 28px;
    border-width: 8px;
  }

  .certificate-preview h3 {
    font-size: 28px;
  }
}

@media (max-width: 390px) {
  .section {
    padding-inline: 14px;
  }

  .brand strong {
    max-width: 138px;
  }

  h1 {
    font-size: 32px;
  }

  .language-switcher {
    display: grid;
    grid-template-columns: 1fr;
  }

  .certificate-toolbar {
    grid-template-columns: 1fr;
  }
}
