:root {
  --bg:      #020810;
  --bg2:     #060d1e;
  --text:    #f0f4ff;
  --accent:  #f59e0b;
  --accent2: #3b82f6;
  --muted:   rgba(240,244,255,.68);
  --line:    rgba(240,244,255,.10);
  --panel:   rgba(5,11,28,.82);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* ── Video background ────────────────────────────────────────────────────────── */
#heroBg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}


/* ── Nav ─────────────────────────────────────────────────────────────────────── */
.topNav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(2,8,16,.82);
  border-bottom: 1px solid var(--line);
}

.navInner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.siteName {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .3px;
  font-size: 16px;
}

.topLinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.topLinks a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  font-size: 15px;
  transition: color .15s, border-color .15s;
}

.topLinks a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.navResume {
  padding: 6px 16px !important;
  border: 1px solid rgba(245,158,11,.45) !important;
  border-radius: 8px;
  color: var(--accent) !important;
  transition: background .2s !important;
}

.navResume:hover {
  background: rgba(245,158,11,.12) !important;
  border-bottom-color: transparent !important;
}

/* ── Main layout ─────────────────────────────────────────────────────────────── */
main { position: relative; z-index: 3; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

/* Dark radial gradient that dims the video behind the text */
.heroOverlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 48%,
    rgba(2,8,16,.72) 0%,
    rgba(2,8,16,.40) 45%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.heroContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 3;
}

.roleBadge {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid rgba(245,158,11,.45);
  background: rgba(245,158,11,.08);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.name {
  margin: 0;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -.5px;
  text-shadow: 0 4px 40px rgba(0,0,0,.75);
}

.heroTag {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 580px;
}

.heroActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.ctaPrimary {
  display: inline-block;
  padding: 13px 30px;
  background: linear-gradient(90deg, var(--accent), #f97316);
  color: #07111f;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 28px rgba(245,158,11,.22);
  transition: transform .15s, box-shadow .15s;
}

.ctaPrimary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245,158,11,.34);
}

.ctaSecondary {
  display: inline-block;
  padding: 13px 30px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .15s, color .15s;
}

.ctaSecondary:hover {
  border-color: rgba(240,244,255,.28);
  color: var(--text);
}

.scrollHint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(240,244,255,.28);
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.scrollHintLine {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, rgba(240,244,255,.30));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.7); }
  50%       { opacity: 1;  transform: scaleY(1); }
}

/* ── Content sections ────────────────────────────────────────────────────────── */
.contentSection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 24px 60px;
  scroll-margin-top: 80px;
  background: var(--bg);
}

.sectionCard {
  width: min(880px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 38px 44px;
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}

.sectionCard h2 {
  margin: 0 0 26px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.3px;
}

/* ── About ───────────────────────────────────────────────────────────────────── */
.aboutCard {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 36px;
  align-items: center;
}

.aboutText { min-width: 0; }

.aboutText p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 17px;
}

.aboutImageWrap { display: flex; justify-content: center; }

.aboutImage {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(240,244,255,.12);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  object-fit: cover;
}

/* ── Project cards ───────────────────────────────────────────────────────────── */
.projectGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.projectCard {
  background: rgba(240,244,255,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: border-color .2s, background .2s, transform .2s;
}

.projectCard:hover {
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.07);
  transform: translateY(-3px);
}

.projectTag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}

.projectCard h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
}

.projectCard p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(240,244,255,.07);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.allWorkLink {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}

.allWorkLink:hover { border-bottom-color: var(--accent); }

/* ── Skills ──────────────────────────────────────────────────────────────────── */
.skillsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skillGroupTitle {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--accent);
}

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

.skillList li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.skillList li:last-child { border-bottom: none; }

/* ── Contact ─────────────────────────────────────────────────────────────────── */
.contactIntro {
  margin: -10px 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.contactLinks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.contactLink {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(240,244,255,.03);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
}

.contactLink:hover {
  border-color: rgba(245,158,11,.38);
  background: rgba(245,158,11,.07);
  transform: translateY(-2px);
}

.contactPlatform {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--accent);
}

.contactValue {
  font-size: 15px;
  color: var(--text);
}

/* ── work.html ───────────────────────────────────────────────────────────────── */
.workShell {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 24px 60px;
  position: relative;
  z-index: 2;
}

.topRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.backLink,
.miniNav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}

.backLink:hover,
.miniNav a:hover,
.miniNav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.miniNav { display: flex; gap: 18px; }

.workIntro {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 36px;
}

.workGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.workCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(14px);
  transition: border-color .2s, background .2s, transform .2s;
}

.workCard:hover {
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.07);
  transform: translateY(-3px);
}

.workCard h2 { margin: 0 0 10px; font-size: 20px; }

.workCard p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.workMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.workLinks { display: flex; gap: 14px; }

.workLinks a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}

.workLinks a:hover { border-bottom-color: var(--accent); }

.workFooter {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.workFooter a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.workFooter a:hover {
  color: var(--text);
  border-bottom-color: rgba(240,244,255,.35);
}

.dot { margin: 0 8px; opacity: .35; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .aboutCard { grid-template-columns: 1fr; }
  .aboutImage { max-width: 100%; }
  .skillsGrid { grid-template-columns: 1fr 1fr; }
  .sectionCard { padding: 28px 24px; }
}

@media (max-width: 600px) {
  .navInner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topLinks  { gap: 14px; }
  .skillsGrid { grid-template-columns: 1fr; }
  .scrollHint { display: none; }
  .sectionCard { padding: 22px 18px; }
}
