/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background: #050510;
  color: #e8ecf8;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(700px 500px at 92% 8%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(900px 700px at 50% 110%, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

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

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}

.grad-text {
  background: linear-gradient(100deg, #60a5fa 0%, #38bdf8 40%, #22d3ee 70%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Loading screen */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #050510;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader-title {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93a0bf;
}

.loader-title span {
  color: #38bdf8;
  font-weight: 700;
}

.loader-track {
  width: 220px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loader-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  transition: width 0.12s linear;
}

/* Floating glass navbar */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 16px;
  border-radius: 99px;
  pointer-events: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #04070f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 45%, #818cf8);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  color: #a7b2cc;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(34, 211, 238, 0.28));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 24px 90px;
}

.hero-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  margin-bottom: 26px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #c3cde6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.hero-title {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero-type {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
  font-size: 17px;
  font-weight: 500;
  color: #8f9cba;
  margin-bottom: 20px;
}

.type-text {
  color: #e8ecf8;
  font-weight: 600;
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 19px;
  margin-left: 1px;
  background: #38bdf8;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-lead {
  max-width: 540px;
  font-size: 15.5px;
  color: #97a3bf;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 0;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-solid {
  color: #04070f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 45%, #6366f1);
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.32);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(56, 189, 248, 0.45);
}

.btn-ghost {
  color: #dbe3f5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(125, 211, 252, 0.45);
}

.btn-small {
  padding: 10px 20px;
  font-size: 13.5px;
}

.btn-full {
  width: 100%;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-label {
  margin-right: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6f7c99;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #c3cde6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.icon-btn:hover {
  color: #ffffff;
  transform: translateY(-3px);
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.25);
}

.hero-badge-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 46px;
}

/* 3D hanging ID badge */
.badge-scene {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 330px;
  perspective: 1100px;
  perspective-origin: 50% 10%;
}

.badge-anchor {
  position: absolute;
  top: 0;
  left: 50%;
  width: 58px;
  height: 13px;
  margin-left: -29px;
  border-radius: 7px;
  background: linear-gradient(180deg, #1a2340, #0b1120);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.badge-swing {
  position: relative;
  width: 268px;
  transform-origin: 50% 7px;
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
}

.badge-swing.is-dragging {
  cursor: grabbing;
}

.badge-strap {
  display: block;
  width: 30px;
  height: 92px;
  margin: 7px auto 0;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(186, 230, 253, 0.48) 45%, rgba(56, 189, 248, 0.1));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
}

.badge-clip {
  position: relative;
  z-index: 2;
  display: block;
  width: 56px;
  height: 15px;
  margin: -4px auto -7px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8 55%, #475569);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
}

.id-glow {
  position: absolute;
  top: 130px;
  left: 50%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 66%);
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
}

.id-card {
  position: relative;
  width: 100%;
  margin-top: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(24, 33, 60, 0.97), rgba(9, 12, 26, 0.97));
  border: 1px solid rgba(125, 211, 252, 0.24);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}

.id-card:hover {
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(125, 211, 252, 0.35), 0 0 60px rgba(56, 189, 248, 0.22);
}

.id-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.28), rgba(10, 14, 30, 0.9));
  border: 1px solid rgba(125, 211, 252, 0.28);
}

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

.id-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.id-role {
  font-size: 12.5px;
  color: #7dd3fc;
  margin-bottom: 13px;
}

.id-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8390ad;
}

/* Shared section shell */
.section {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #38bdf8;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.about-photo {
  padding: 14px;
  border-radius: 24px;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.24), rgba(9, 12, 26, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.26);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.about-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.body-copy {
  font-size: 15px;
  color: #98a4c0;
  margin-bottom: 16px;
}

.about-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.mini-card {
  padding: 20px 20px 8px;
  border-radius: 18px;
}

.mini-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 16px;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 12px;
}

.timeline-dot {
  position: absolute;
  top: 7px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.timeline-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.timeline-detail {
  font-size: 12.5px;
  color: #8694b2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 16px;
  border-radius: 20px;
  text-align: center;
}

.stat-icon {
  font-size: 14px;
  color: #38bdf8;
}

.stat-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8694b2;
}

/* Portfolio tabs and cards */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  margin-bottom: 30px;
  border-radius: 99px;
}

.tab {
  padding: 9px 20px;
  border: 0;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: #9aa7c4;
  background: transparent;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease;
}

.tab:hover {
  color: #ffffff;
}

.tab.is-active {
  color: #04070f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 50%, #818cf8);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: fade-up 0.45s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.work-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 26px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(125, 211, 252, 0.2), 0 0 70px rgba(56, 189, 248, 0.16);
}

.work-card.is-reversed .work-preview {
  order: 2;
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.work-preview {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.22), rgba(8, 11, 24, 0.7));
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.mock-return {
  background: linear-gradient(150deg, rgba(56, 189, 248, 0.16), rgba(8, 11, 24, 0.72));
}

.map-sheet {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.18), transparent 60%), #070b18;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(125, 211, 252, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
}

.map-pin {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.18), 0 0 18px rgba(56, 189, 248, 0.7);
}

.pin-one {
  top: 34%;
  left: 26%;
}

.pin-two {
  top: 58%;
  left: 62%;
}

.pin-three {
  top: 22%;
  left: 78%;
}

.map-card {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 150px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 7, 16, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-card-dot {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #6366f1);
}

.map-card-line {
  display: block;
  height: 6px;
  margin-bottom: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.map-card-line.short {
  width: 55%;
  margin-bottom: 0;
}

/* Real screenshot inside a window frame */
.shot-preview {
  margin: 0;
  padding: 22px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.shot-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f7fc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.shot-bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.92);
}

.shot-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.work-shot {
  display: block;
  width: 100%;
  height: auto;
}

.shot-note {
  align-self: flex-end;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 11px;
  color: #cfe3ff;
  background: rgba(6, 10, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Certificate slot, laid out so the real scan can replace it */
.cert-preview {
  margin: 0;
  padding: 26px;
}

.cert-doc {
  position: relative;
  width: 100%;
  border-radius: 14px;
  padding: 30px 24px 20px;
  text-align: center;
  color: #0b1226;
  background: linear-gradient(160deg, #ffffff, #e6edfb);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
}

.cert-issuer {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #2563eb;
}

.cert-kicker {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.cert-name {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cert-course {
  margin-top: 6px;
  font-size: 13px;
  color: #334155;
}

.cert-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 11px;
  color: #64748b;
}

.cert-seal {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

/* Project detail lists and fact rows */
.feature-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #a9b6d2;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.work-meta {
  display: grid;
  gap: 9px;
  margin: 20px 0 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.work-meta div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}

.work-meta dt {
  padding-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7f8dab;
}

.work-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd6ea;
}

/* Achievements */
.achieve-card {
  padding: 32px;
}

.achieve-head {
  margin-bottom: 20px;
}

.achieve-head .work-title {
  margin-top: 10px;
}

.milestone-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.milestone-list li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-list li:first-child {
  padding-top: 6px;
  border-top: 0;
}

.milestone-year {
  padding-top: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7dd3fc;
}

.milestone-title {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.work-body {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
}

.work-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.work-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge {
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-muted {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.12);
  border-color: rgba(252, 211, 77, 0.32);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.tag {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  color: #a9b6d2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.hint {
  font-size: 12.5px;
  color: #7f8dab;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.contact-form {
  padding: 28px;
  border-radius: 24px;
}

.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8694b2;
}

.input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.input::placeholder {
  color: #66738f;
}

.input:focus {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: #7f8dab;
  text-align: center;
}

.contact-side {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.12);
}

.contact-card.is-static {
  cursor: default;
}

.contact-card.is-static:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  font-size: 15px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.contact-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.contact-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f8dab;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  color: #dbe3f5;
  overflow-wrap: anywhere;
}

/* Footer and back-to-top */
.footer {
  position: relative;
  margin-top: 40px;
  padding: 40px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 800;
  color: #04070f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8 45%, #818cf8);
}

.footer-name {
  font-size: 14.5px;
  font-weight: 700;
}

.footer-tag {
  font-size: 12.5px;
  color: #8694b2;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: #9aa7c4;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-copy {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 12px;
  color: #6d7a96;
  text-align: center;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 17px;
  color: #04070f;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.35);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-card {
  padding: 24px 24px 8px;
  border-radius: 22px;
}

.skill-card .tag-list {
  margin: 14px 0 16px;
}

.section-sub {
  margin-top: 10px;
  font-size: 14.5px;
  color: #8694b2;
  max-width: 60ch;
}

/* Responsive: tablet and below */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
    text-align: left;
  }

  .badge-swing {
    width: 244px;
  }

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

  .about-photo {
    max-width: 320px;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-card.is-reversed .work-preview {
    order: 0;
    border-left: 0;
  }

  .work-preview {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

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

/* Tablets keep the two-column hero, so the first screen is not half empty */
@media (min-width: 761px) and (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(40px, 5.4vw, 58px);
  }

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

  .badge-swing {
    width: 226px;
  }
}

/* Responsive: phone */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 92px;
  }

  .hero {
    padding: 118px 20px 70px;
  }

  .hero-title {
    font-size: clamp(38px, 11vw, 54px);
  }

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

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .section {
    padding: 72px 20px;
  }

  .nav-wrap {
    top: 12px;
    padding: 0 12px;
  }

  .nav {
    width: 100%;
    max-width: 420px;
    justify-content: space-between;
    padding: 6px 6px 6px 12px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .nav-logo {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .about-panels {
    grid-template-columns: 1fr;
  }

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

  .stat {
    flex-direction: row;
    justify-content: space-between;
    padding: 18px 20px;
    text-align: left;
  }

  .stat-icon {
    display: none;
  }

  .tabs {
    display: flex;
    width: 100%;
  }

  .tab {
    flex: 1;
    padding: 9px 8px;
    font-size: 12.5px;
  }

  .work-body {
    padding: 26px 22px;
  }

  .work-preview {
    min-height: 230px;
    padding: 18px;
  }

  .work-meta div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .milestone-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .achieve-card {
    padding: 24px 22px;
  }

  .shot-preview {
    padding: 14px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

}

/* Responsive: small phone */
@media (max-width: 420px) {
  .nav-link {
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .badge-swing {
    width: 226px;
  }

  .hero-social {
    flex-wrap: wrap;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .type-caret {
    animation: none;
  }

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

  .panel.is-active {
    animation: none;
  }
}
