:root {
  --bg: #070d16;
  --panel: rgba(12, 24, 39, 0.78);
  --panel-2: rgba(17, 33, 54, 0.84);
  --text: #f4f8ff;
  --muted: #afc2de;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #31d7b8;
  --brand-2: #ffbf5a;
  --accent: #79c2ff;
  --ok: #8df59e;
  --shadow: 0 22px 62px rgba(2, 8, 18, 0.6);
}

@font-face {
  font-family: "Vazirmatn Local";
  src: url("fonts/Vazirmatn[wght].woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: "Vazirmatn Local", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(1000px 620px at 8% -10%, #1a3560 0%, transparent 64%),
    radial-gradient(860px 560px at 104% 4%, #30254f 0%, transparent 58%),
    linear-gradient(135deg, #060c15, #0a1424 55%, #0b1222);
}

h1,
h2,
h3,
strong,
.logo {
  font-family: "Vazirmatn Local", "Segoe UI", sans-serif;
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(500px 300px at 50% 40%, #173055 0%, #060d17 70%);
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 62px;
  height: 62px;
  margin-inline: auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #061221;
  background: linear-gradient(130deg, var(--brand), #5caeff);
  box-shadow: 0 15px 34px rgba(33, 136, 255, 0.4);
}

.loader p {
  color: #c8d8f3;
  font-size: 0.9rem;
}

.loader-line {
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-inline: auto;
}

.loader-line::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  animation: loadMove 1s ease-in-out infinite alternate;
}

#bg-canvas,
.grain,
.spotlight {
  position: fixed;
  inset: 0;
}

#bg-canvas {
  z-index: 0;
  opacity: 0.48;
}

.grain {
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

.spotlight {
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px 320px at var(--spot-x, 50%) var(--spot-y, 30%), rgba(131, 208, 255, 0.13), transparent 70%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 80;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform-origin: right;
  transform: scaleX(0);
}

.cursor {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 81;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5vw;
  border-bottom: 1px solid transparent;
  transition: 0.28s ease;
}

.topbar.scrolled {
  border-color: var(--line);
  background: rgba(4, 11, 20, 0.7);
  backdrop-filter: blur(12px);
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  line-height: 0.92;
  font-weight: 800;
  color: #051020;
  background: linear-gradient(140deg, var(--brand), #57a8ff);
  box-shadow: 0 12px 28px rgba(58, 157, 255, 0.33);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e9f0ff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.topbar.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav a {
  white-space: nowrap;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 12px;
  font-size: 0.92rem;
  transition: 0.22s ease;
}

nav a:hover,
nav a.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.section-rail {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 65;
  display: grid;
  gap: 11px;
}

.section-rail a {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.section-rail a.active {
  transform: scale(1.28);
  background: var(--brand);
  border-color: var(--brand);
}

main {
  position: relative;
  z-index: 2;
}

.section {
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding: 112px 0;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.74rem;
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
}

.hero {
  min-height: 100vh;
  padding-top: 146px;
  display: grid;
  align-items: center;
  position: relative;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.hero-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
}

.aura-a {
  width: 360px;
  height: 360px;
  top: 22%;
  left: -9%;
  background: radial-gradient(circle, rgba(49, 215, 184, 0.38), transparent 68%);
}

.aura-b {
  width: 280px;
  height: 280px;
  right: -3%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(255, 191, 90, 0.34), transparent 66%);
}

.aura-c {
  width: 220px;
  height: 220px;
  right: 36%;
  top: 9%;
  background: radial-gradient(circle, rgba(121, 194, 255, 0.34), transparent 66%);
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 6.2vw, 4.7rem);
  line-height: 1.04;
  margin-bottom: 12px;
  background: linear-gradient(100deg, #fff 8%, #dbe8ff 56%, #ffe8b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy h1 span {
  display: block;
  font-family: "Vazirmatn Local", sans-serif;
  -webkit-text-fill-color: #c0d1ec;
  color: #c0d1ec;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-top: 10px;
}

.intro {
  color: var(--muted);
  line-height: 2;
  max-width: 60ch;
}

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

.btn,
.mini-btn {
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.btn {
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, var(--brand), #52a7ff);
  color: #05101f;
  box-shadow: 0 14px 30px rgba(47, 145, 255, 0.3);
}

.btn:hover,
.mini-btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: #e8f0ff;
  box-shadow: none;
}

.hero-social {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-pill {
  background: rgba(12, 23, 38, 0.75);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: 0.22s ease;
}

.social-pill:hover {
  border-color: rgba(121, 194, 255, 0.58);
  transform: translateY(-2px);
}

.social-pill strong {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-pill span {
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}

.social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: var(--accent);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.hero-visual {
  position: relative;
  border-radius: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 35, 57, 0.88), rgba(10, 20, 35, 0.66));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-frame {
  height: 540px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 28%, rgba(255, 255, 255, 0.22) 50%, transparent 72%),
    linear-gradient(to top, rgba(5, 10, 20, 0.72), transparent 44%);
  animation: shine 5s ease-in-out infinite;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
}

.float-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(6, 14, 24, 0.82);
  border-radius: 13px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.float-card p {
  color: #97adcf;
  font-size: 0.73rem;
}

.float-card strong {
  font-size: 0.92rem;
}

.fc-1 {
  top: 30px;
  left: 20px;
  animation: bob 4s ease-in-out infinite;
}

.fc-2 {
  bottom: 152px;
  right: 16px;
  animation: bob 4.8s ease-in-out infinite -1s;
}

.fc-3 {
  bottom: 38px;
  left: 20px;
  animation: bob 5s ease-in-out infinite -0.6s;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 14px;
}

.profile-card,
.edge-card,
.project-card,
.edu-card,
.award-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 30px;
  background: linear-gradient(140deg, rgba(18, 36, 58, 0.88), rgba(10, 20, 35, 0.7));
}

.profile-card h2 {
  font-size: clamp(1.55rem, 3.9vw, 2.4rem);
  margin-bottom: 10px;
}

.profile-card p {
  line-height: 2;
  color: #cad9ef;
}

.contact-chips {
  margin-top: 16px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.contact-chips span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  font-size: 0.88rem;
  color: #d8e5fb;
}

.edge-card {
  padding: 26px;
  background: linear-gradient(160deg, rgba(12, 26, 45, 0.92), rgba(10, 18, 33, 0.74));
}

.edge-card h3 {
  margin-bottom: 14px;
}

.edge-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.edge-card li {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  color: #d7e4fb;
}

.timeline-lux {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  padding: 14px 0;
  overflow-x: clip;
}

.timeline-lux::before {
  content: "";
  position: absolute;
  right: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--brand), rgba(255, 255, 255, 0.15), var(--brand-2));
}

.timeline-event {
  position: relative;
  width: calc(50% - 34px);
  padding: 18px 0;
}

.timeline-event:nth-child(odd) {
  margin-right: auto;
  padding-left: 28px;
}

.timeline-event:nth-child(even) {
  margin-left: auto;
  padding-right: 28px;
  text-align: left;
}

.timeline-event:nth-child(even) .timeline-tags {
  justify-content: end;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: #07101e;
  box-shadow: 0 0 0 6px rgba(49, 215, 184, 0.14);
}

.timeline-event:nth-child(odd)::before {
  right: -42px;
}

.timeline-event:nth-child(even)::before {
  left: -42px;
}

.timeline-date {
  color: var(--brand-2);
  font-size: 0.83rem;
  font-weight: 700;
}

.company-chip {
  margin-top: 10px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.company-chip img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.company-chip small {
  color: #dce8ff;
  font-size: 0.76rem;
}

.timeline-event h3 {
  margin: 8px 0 10px;
  font-size: 1.08rem;
}

.timeline-event p {
  color: #ccdbf3;
  line-height: 1.9;
}

.timeline-tags {
  margin-top: 11px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-tags span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #d4e3fb;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.skill-level-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: linear-gradient(150deg, rgba(15, 30, 49, 0.9), rgba(8, 17, 31, 0.72));
}

.skill-level-panel h3 {
  margin-bottom: 14px;
}

.skill-list {
  display: grid;
  gap: 9px;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.skill-row b {
  font-weight: 700;
}

.lvl {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.lvl.expert {
  color: #ecfff4;
  background: rgba(49, 215, 184, 0.2);
  border: 1px solid rgba(49, 215, 184, 0.55);
}

.lvl.advanced {
  color: #fff6e9;
  background: rgba(255, 191, 90, 0.19);
  border: 1px solid rgba(255, 191, 90, 0.5);
}

.lvl.medium {
  color: #eef4ff;
  background: rgba(121, 194, 255, 0.2);
  border: 1px solid rgba(121, 194, 255, 0.54);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  min-height: 214px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, rgba(11, 25, 40, 0.94), rgba(9, 18, 34, 0.72));
  transition: 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 191, 90, 0.56);
}

.project-card p {
  color: var(--brand-2);
  font-size: 0.83rem;
  font-weight: 700;
}

.project-card h3 {
  font-size: 1.3rem;
}

.project-card span {
  color: #cad9f0;
}

.mini-btn {
  margin-top: 14px;
  font-size: 0.82rem;
  width: fit-content;
  padding: 7px 12px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #e8efff;
}

.edu-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: linear-gradient(150deg, rgba(16, 31, 49, 0.92), rgba(8, 17, 31, 0.72));
}

.edu-card p {
  color: #d1def4;
  line-height: 1.9;
}

.edu-card small {
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cert-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: linear-gradient(155deg, rgba(15, 28, 45, 0.9), rgba(8, 16, 30, 0.75));
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: "CERT";
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.22);
}

.cert-card h3 {
  margin-bottom: 10px;
}

.cert-card p {
  color: #d2e0f6;
}

.cert-card small {
  margin-top: 8px;
  color: var(--brand-2);
  display: block;
}

.award-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(420px 220px at 10% 10%, rgba(49, 215, 184, 0.17), transparent),
    linear-gradient(150deg, rgba(16, 31, 49, 0.92), rgba(8, 17, 31, 0.72));
}

.award-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.award-card li {
  color: #e7efff;
  line-height: 1.8;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.award-card li::before {
  content: "★";
  color: var(--brand-2);
  margin-left: 8px;
}

.contact-panel {
  text-align: center;
  padding: 36px;
  background:
    radial-gradient(430px 230px at 15% 8%, rgba(49, 215, 184, 0.2), transparent),
    radial-gradient(340px 220px at 86% 94%, rgba(255, 191, 90, 0.16), transparent),
    linear-gradient(145deg, rgba(15, 31, 49, 0.92), rgba(9, 16, 28, 0.74));
}

.contact-panel h2 {
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  margin-bottom: 8px;
}

.contact-panel p {
  color: #cad9ef;
  max-width: 66ch;
  margin-inline: auto;
  line-height: 1.95;
}

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

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px;
}

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

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

.copy-ok {
  border-color: rgba(141, 245, 158, 0.64) !important;
  background: rgba(141, 245, 158, 0.16) !important;
  color: #edfff1 !important;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shine {
  0%,
  100% {
    transform: translateX(-14%);
  }
  50% {
    transform: translateX(14%);
  }
}

@keyframes loadMove {
  from {
    transform: translateX(-15%);
  }
  to {
    transform: translateX(145%);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .profile-grid,
  .skills-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .timeline-lux::before {
    right: 11px;
  }

  .timeline-event,
  .timeline-event:nth-child(odd),
  .timeline-event:nth-child(even) {
    width: calc(100% - 34px);
    margin: 0;
    padding: 12px 0 12px 18px;
    text-align: right;
  }

  .timeline-event::before,
  .timeline-event:nth-child(odd)::before,
  .timeline-event:nth-child(even)::before {
    left: -26px;
    right: auto;
  }

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

  .photo-frame {
    height: 470px;
  }

  .section-rail {
    display: none;
  }
}

@media (max-width: 840px) {
  .topbar {
    padding-inline: 4vw;
    gap: 8px;
  }

  nav a {
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .section {
    width: min(1180px, 94vw);
  }
}

@media (max-width: 720px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .topbar {
    padding-inline: 4vw;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: rgba(4, 11, 20, 0.78);
    backdrop-filter: blur(12px);
    border-color: var(--line);
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    left: 4vw;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 12, 22, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .topbar.menu-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav a {
    display: block;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  .section {
    width: 94vw;
    padding: 84px 0;
  }

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

  .hero-copy h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

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

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

  .photo-frame {
    height: clamp(260px, 62vw, 392px);
  }

  .float-card {
    position: static;
    margin-top: 10px;
    animation: none;
  }

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

  .project-card {
    min-height: 190px;
  }

  .hero-social {
    grid-template-columns: 1fr;
  }

  .skill-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-event,
  .timeline-event:nth-child(odd),
  .timeline-event:nth-child(even) {
    width: 100%;
    margin: 0;
    text-align: right;
    padding: 12px 14px 12px 0;
  }

  .company-chip {
    margin-top: 8px;
  }

  .timeline-lux {
    padding-right: 20px;
    padding-left: 0;
  }

  .timeline-lux::before {
    right: 6px;
    left: auto;
  }

  .timeline-event::before,
  .timeline-event:nth-child(odd)::before,
  .timeline-event:nth-child(even)::before {
    right: -2px;
    left: auto;
  }

  .timeline-event:nth-child(odd),
  .timeline-event:nth-child(even) {
    padding-left: 0;
    padding-right: 14px;
  }

  .timeline-tags {
    gap: 6px;
  }

  .timeline-tags span {
    font-size: 0.74rem;
    padding: 5px 9px;
  }
}

@media (max-width: 460px) {
  nav {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: 194px;
  }

  .hero-copy h1 span {
    font-size: 0.95rem;
  }

  .intro,
  .profile-card p,
  .timeline-event p,
  .contact-panel p {
    line-height: 1.85;
    font-size: 0.95rem;
  }

  .photo-frame {
    height: 260px;
  }
}

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