:root {
  --bg: #050711;
  --bg-soft: #0b1022;
  --bg-panel: rgba(13, 18, 39, 0.78);
  --panel-solid: #10162d;
  --panel-alt: #111827;
  --text: #f8fbff;
  --muted: #b7c2d8;
  --subtle: #8390aa;
  --line: rgba(190, 213, 255, 0.16);
  --blue: #7dd3fc;
  --blue-strong: #38bdf8;
  --purple: #a78bfa;
  --purple-strong: #8b5cf6;
  --mint: #6ee7b7;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --header-height: 76px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 17, 0.96), rgba(6, 9, 22, 1) 42%, rgba(5, 7, 17, 1)),
    var(--bg);
  color: var(--text);
  font-family: var(--font, "Inter"), ui-sans-serif, system-ui, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.nav-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.7px),
    radial-gradient(circle at center, rgba(125, 211, 252, 0.58) 0 1px, transparent 1.6px),
    radial-gradient(circle at center, rgba(167, 139, 250, 0.48) 0 1px, transparent 1.7px);
  background-position: 0 0, 36px 42px, 18px 14px;
  background-size: 118px 118px, 172px 172px, 236px 236px;
  opacity: 0.38;
}

body::after {
  background:
    linear-gradient(118deg, transparent 12%, rgba(125, 211, 252, 0.08) 12.4%, transparent 13% 46%, rgba(167, 139, 250, 0.07) 46.4%, transparent 47%),
    linear-gradient(158deg, transparent 28%, rgba(110, 231, 183, 0.06) 28.3%, transparent 29% 72%, rgba(125, 211, 252, 0.05) 72.4%, transparent 73%),
    repeating-linear-gradient(172deg, transparent 0 120px, rgba(125, 211, 252, 0.035) 121px, transparent 123px);
  inset: -80px;
  opacity: 0.7;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  background: var(--white);
  color: #050711;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 10px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
  z-index: 100;
}

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 50;
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.82), rgba(12, 15, 33, 0.76), rgba(5, 7, 17, 0.82));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  height: 100%;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(167, 139, 250, 0.24));
  border: 1px solid rgba(190, 213, 255, 0.28);
  border-radius: var(--radius);
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-name {
  color: var(--white);
  font-weight: 700;
}

.nav-menu {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.nav-menu a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 12px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  background: rgba(125, 211, 252, 0.1);
  color: var(--white);
}

.nav-menu .mobile-resume-link {
  display: none;
}

.nav-resume,
.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-resume {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.9rem;
  padding: 10px 14px;
}

.nav-resume:hover,
.button:hover {
  transform: translateY(-2px);
}

.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.hero {
  isolation: isolate;
  min-height: 78svh;
  overflow: hidden;
  padding: 112px 0 22px;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(110deg, transparent 0 22%, rgba(125, 211, 252, 0.12) 22.15%, transparent 22.6% 63%, rgba(167, 139, 250, 0.1) 63.2%, transparent 63.8%),
    linear-gradient(152deg, transparent 0 38%, rgba(110, 231, 183, 0.08) 38.2%, transparent 38.7%);
  content: "";
  inset: 0;
  opacity: 0.7;
  position: absolute;
  z-index: -1;
}

.hero-image {
  background-image: url("assets/prabha-cosmic-signature.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  opacity: 0.66;
  position: absolute;
  z-index: -3;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.96) 0%, rgba(5, 7, 17, 0.82) 42%, rgba(5, 7, 17, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 7, 17, 0.16), rgba(5, 7, 17, 0.9));
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-content {
  max-width: 830px;
  position: relative;
}

.eyebrow,
.section-kicker {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
  line-height: 1.3;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3.2rem, 7.4vw, 6.8rem);
  line-height: 0.92;
  margin: 0;
  max-width: 780px;
  text-shadow: 0 0 34px rgba(125, 211, 252, 0.18);
}

.hero-role {
  background: linear-gradient(90deg, #c4b5fd, #7dd3fc, #6ee7b7);
  background-clip: text;
  color: transparent;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  margin: 20px 0 16px;
  overflow-wrap: anywhere;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  margin: 0;
  max-width: 760px;
  overflow-wrap: break-word;
}

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

.button {
  border: 1px solid transparent;
  cursor: pointer;
  padding: 12px 17px;
}

.button-primary {
  background: linear-gradient(135deg, var(--blue-strong), var(--purple-strong));
  color: #020617;
}

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

.button-ghost {
  background: transparent;
  border-color: rgba(125, 211, 252, 0.32);
  color: var(--blue);
}

.intro-band {
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.04), transparent 28%, rgba(167, 139, 250, 0.05) 72%, transparent),
    linear-gradient(180deg, rgba(9, 14, 31, 0.9), rgba(7, 10, 24, 0.98));
  border-block: 1px solid var(--line);
  padding: 28px 0;
}

.highlight-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.highlight-item {
  align-items: start;
  background:
    linear-gradient(var(--bg-panel), var(--bg-panel)) padding-box,
    linear-gradient(135deg, rgba(125, 211, 252, 0.38), rgba(167, 139, 250, 0.14), rgba(110, 231, 183, 0.25)) border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 20px;
}

.highlight-item svg {
  color: var(--blue);
}

.highlight-item strong {
  color: var(--white);
  font-size: 1.1rem;
}

.highlight-item span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
  position: relative;
}

.section::before {
  background:
    linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.11), rgba(167, 139, 250, 0.08), transparent);
  content: "";
  height: 1px;
  left: 50%;
  opacity: 0.72;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
}

.section-alt {
  background:
    linear-gradient(120deg, rgba(125, 211, 252, 0.045), transparent 30%, rgba(167, 139, 250, 0.055) 76%, transparent),
    linear-gradient(180deg, rgba(10, 15, 32, 0.88), rgba(5, 7, 17, 0.98)),
    var(--bg-soft);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section-grid {
  display: grid;
  gap: clamp(30px, 6vw, 74px);
  grid-template-columns: 0.85fr 1.15fr;
}

.section-heading h2,
.section-title h2,
.content-panel h2,
.contact-copy h2,
.languages h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.06;
  margin: 0;
  text-shadow: 0 0 28px rgba(167, 139, 250, 0.12);
}

.section-body p,
.section-title p,
.content-panel p,
.contact-copy p,
.portfolio-card p,
.expertise-card p,
.experience-note {
  color: var(--muted);
}

.section-body p,
.content-panel p,
.contact-copy p {
  font-size: 1.02rem;
  margin: 0 0 18px;
}

.section-title {
  margin-bottom: 36px;
  max-width: 780px;
}

.section-title p {
  margin: 14px 0 0;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-points span {
  align-items: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.1), rgba(167, 139, 250, 0.07));
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: var(--radius);
  color: var(--text);
  display: inline-flex;
  font-weight: 650;
  gap: 8px;
  padding: 10px 12px;
}

.timeline {
  border-left: 1px solid rgba(125, 211, 252, 0.22);
  margin-left: 12px;
  padding-left: 28px;
}

.experience-card,
.content-panel,
.expertise-card,
.languages,
.portfolio-card,
.contact-panel {
  background:
    linear-gradient(var(--bg-panel), var(--bg-panel)) padding-box,
    linear-gradient(135deg, rgba(125, 211, 252, 0.3), rgba(167, 139, 250, 0.16), rgba(110, 231, 183, 0.2)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-card {
  padding: clamp(22px, 4vw, 34px);
  position: relative;
}

.experience-card + .experience-card {
  margin-top: 20px;
}

.timeline-marker {
  background: var(--blue);
  border: 5px solid #10162d;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(125, 211, 252, 0.1);
  height: 18px;
  left: -38px;
  position: absolute;
  top: 34px;
  width: 18px;
}

.experience-topline {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.experience-topline h3 {
  color: var(--white);
  font-size: 1.45rem;
  margin: 0 0 4px;
}

.experience-topline p {
  color: var(--blue);
  font-weight: 700;
  margin: 0;
}

.agency-link {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  gap: 8px;
  transition: color 180ms ease;
}

.agency-link:hover {
  color: var(--mint);
}

.experience-topline span {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: var(--radius);
  color: #ddd6fe;
  flex: 0 0 auto;
  font-weight: 700;
  padding: 8px 10px;
}

.experience-note {
  border-left: 3px solid var(--purple);
  margin: 24px 0;
  padding-left: 14px;
}

.check-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  color: var(--muted);
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  background: var(--mint);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 5px;
  position: absolute;
  top: 11px;
  width: 8px;
}

.expertise-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
}

.expertise-card,
.portfolio-card {
  min-height: 210px;
  padding: 22px;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.expertise-card::before,
.portfolio-card::before,
.skill-module::before,
.contact-panel::before {
  background:
    linear-gradient(130deg, transparent 0 32%, rgba(125, 211, 252, 0.12) 32.3%, transparent 33% 68%, rgba(167, 139, 250, 0.1) 68.3%, transparent 69%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.expertise-card:hover,
.portfolio-card:hover,
.highlight-item:hover {
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: 0 26px 80px rgba(56, 189, 248, 0.12);
  transform: translateY(-4px);
}

.expertise-card:hover::before,
.portfolio-card:hover::before,
.skill-module:hover::before,
.contact-panel:hover::before {
  opacity: 1;
}

.expertise-card svg,
.portfolio-card svg {
  color: var(--blue);
  height: 28px;
  margin-bottom: 20px;
  width: 28px;
}

.expertise-card h3,
.portfolio-card h3 {
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.expertise-card p,
.portfolio-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.two-column {
  display: grid;
  gap: 20px;
  grid-template-columns: 0.9fr 1.1fr;
}

.content-panel {
  padding: clamp(24px, 4vw, 34px);
}

.credential {
  border-left: 3px solid var(--blue);
  margin: 28px 0;
  padding-left: 16px;
}

.credential span {
  color: var(--purple);
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.credential strong {
  color: var(--white);
  display: block;
  font-size: 1.2rem;
}

.credential p {
  margin: 2px 0 0;
}

.program-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.program-list li {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
}

.program-list svg {
  color: var(--mint);
  margin-top: 4px;
}

.program-list strong {
  color: var(--white);
  display: block;
}

.program-list span {
  color: var(--muted);
  display: block;
  line-height: 1.6;
}

.skill-modules {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.skill-module {
  background:
    linear-gradient(var(--bg-panel), var(--bg-panel)) padding-box,
    linear-gradient(135deg, rgba(125, 211, 252, 0.3), rgba(167, 139, 250, 0.16), rgba(110, 231, 183, 0.2)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease;
}

.skill-module:hover {
  border-color: rgba(125, 211, 252, 0.3);
  transform: translateY(-4px);
}

.skill-module p {
  color: var(--white);
  display: block;
  font-weight: 750;
  margin: 0 0 16px;
}

.module-tags,
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.module-tags span,
.contact-tags span {
  background: rgba(8, 16, 34, 0.88);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 8px 10px;
}

.language-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.language-track span {
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--mint));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--level, 80%);
}

.languages {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.7fr 1fr;
  margin-top: 42px;
  padding: clamp(24px, 4vw, 34px);
}

.language-list {
  display: grid;
  gap: 18px;
}

.language-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 110px 1fr 130px;
}

.language-row > span {
  color: var(--white);
  font-weight: 760;
}

.language-row strong {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.language-track span {
  width: var(--level, 80%);
}

.portfolio-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card span {
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: auto;
  padding-top: 22px;
  text-transform: uppercase;
}

.contact-section {
  background:
    linear-gradient(120deg, rgba(125, 211, 252, 0.08), transparent 34%, rgba(167, 139, 250, 0.08) 76%, transparent),
    linear-gradient(180deg, rgba(5, 7, 17, 0.92), rgba(8, 12, 28, 0.98)),
    url("assets/prabha-cosmic-signature.png") center / cover fixed;
}

.contact-grid {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 76px);
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-copy p {
  max-width: 620px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text);
  display: inline-flex;
  font-weight: 700;
  gap: 12px;
  padding: 13px 14px;
  transition: border-color 180ms ease, transform 180ms ease;
  width: fit-content;
}

.contact-links a:hover {
  border-color: rgba(125, 211, 252, 0.34);
  transform: translateY(-2px);
}

.contact-links svg {
  color: var(--blue);
}

.contact-panel {
  display: grid;
  gap: 11px;
  padding: clamp(22px, 4vw, 32px);
}

.contact-panel {
  gap: 20px;
  overflow: hidden;
  position: relative;
}

.contact-panel h3 {
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.1;
  margin: 0;
}

.contact-panel .button {
  margin-top: 6px;
  width: fit-content;
}

.site-footer {
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.04), transparent 35%, rgba(167, 139, 250, 0.05)),
    #03050c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding: 24px 0;
}

.footer-content {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.footer-content p {
  margin: 0;
}

.footer-content a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (max-width: 1040px) {
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-grid,
  .portfolio-grid,
  .skill-modules {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 860px) {
  .shell {
    width: min(720px, calc(100% - 28px));
  }

  .nav {
    display: flex;
    justify-content: space-between;
    width: min(720px, calc(100% - 28px));
  }

  .icon-button {
    flex: 0 0 44px;
    display: inline-flex !important;
  }

  .nav-toggle {
    position: fixed;
    right: 14px;
    top: 13px;
    z-index: 80;
  }

  .nav-menu {
    background: rgba(5, 7, 17, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    left: 0;
    padding: 18px 20px 24px;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
  }

  .nav-menu a {
    align-items: center;
    display: flex;
    gap: 9px;
    font-size: 1rem;
    justify-content: center;
    padding: 12px 14px;
  }

  .nav-menu .mobile-resume-link {
    background: linear-gradient(135deg, var(--blue-strong), var(--purple-strong));
    color: #020617;
    display: flex;
    font-weight: 800;
    margin-top: 4px;
  }

  .nav-resume {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding-top: 122px;
  }

  .hero-image {
    background-position: 60% center;
    opacity: 0.46;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 7, 17, 0.98), rgba(5, 7, 17, 0.72)),
      linear-gradient(180deg, rgba(5, 7, 17, 0.32), rgba(5, 7, 17, 0.92));
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.6rem);
  }

  .highlight-grid,
  .section-grid,
  .two-column,
  .languages,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .experience-topline {
    display: grid;
  }

  .experience-topline span {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12vw, 4.8rem);
  }

  .hero-role {
    font-size: 1rem;
    margin: 20px 0 14px;
  }

  .hero-copy {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
  }

  .section {
    padding: 64px 0;
  }

  .expertise-grid,
  .portfolio-grid,
  .skill-modules {
    grid-template-columns: 1fr;
  }

  .language-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .language-row strong {
    text-align: left;
  }

  .timeline {
    margin-left: 8px;
    padding-left: 22px;
  }

  .timeline-marker {
    left: -32px;
  }

  .contact-links a {
    width: 100%;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: star-drift 44s linear infinite;
  }

  body::after {
    animation: constellation-drift 70s linear infinite;
  }
}

@keyframes star-drift {
  from {
    background-position: 0 0, 36px 42px, 18px 14px;
  }

  to {
    background-position: 118px 118px, 208px 214px, 254px 250px;
  }
}

@keyframes constellation-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-40px, -24px, 0);
  }
}
