/* =====================================================================
   Bharath Srividhya — Portfolio
   Design system: "Neon Terminal" — dark canvas, vivid per-brand color.
   Hand-built, no build step. Structured for easy extension.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Canvas */
  --bg: #060713;
  --bg-1: #0b0d1c;
  --bg-2: #11142a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Core accents */
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --violet: #a855f7;
  --violet-soft: #c084fc;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --accent-grad: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--pink));

  /* Brand colors (companies / orgs) */
  --c-cognizant: #2f7bff;   /* Cognizant blue  */
  --c-bu:        #e2231a;   /* Boston University scarlet */
  --c-cyware:    #f26722;   /* Cyware orange */
  --c-1kosmos:   #12b3e8;   /* 1Kosmos sky blue */
  --c-bahwan:    #14b8a6;   /* Bahwan CyberTek teal */
  --c-eufinity:  #8b5cf6;   /* Eufinity violet */

  /* Experience categories (unified color coding) */
  --cat-professional: #2f7bff;  /* blue  — industry roles */
  --cat-research:     #22c55e;  /* green — research roles */
  --cat-leadership:   #e2231a;  /* red   — leadership roles */

  /* Text */
  --text: #e9edf6;
  --text-dim: #a1abbf;
  --text-faint: #67728d;

  /* Effects */
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.4);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, "Cascadia Code", monospace;

  /* Layout */
  --maxw: 1160px;
  --nav-h: 68px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Per-card brand accent (overridden inline) */
  --brand: var(--cyan);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background: subtle grid + vivid drifting color blobs */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 35%, transparent 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(680px circle at 10% 6%, rgba(47, 123, 255, 0.24), transparent 46%),
    radial-gradient(720px circle at 90% 12%, rgba(168, 85, 247, 0.24), transparent 46%),
    radial-gradient(640px circle at 72% 58%, rgba(236, 72, 153, 0.14), transparent 46%),
    radial-gradient(640px circle at 18% 78%, rgba(34, 197, 94, 0.14), transparent 46%),
    radial-gradient(900px circle at 50% 120%, rgba(34, 211, 238, 0.12), transparent 50%);
  animation: bgdrift 22s ease-in-out infinite alternate;
}
@keyframes bgdrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-24px,0) scale(1.04); }
}

/* Animated starfield (space vibe) — canvas injected by main.js */
#starfield {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; position: relative; }

.section-head { margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--cyan); box-shadow: var(--glow-cyan);
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.section-title .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--text-dim); max-width: 640px; margin-top: 14px; }

.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-grad); color: #05060c; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(168,85,247,.5); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); box-shadow: var(--glow-cyan); }

/* =====================================================================
   Navbar
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 7, 19, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.nav-logo .bracket { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.92rem; color: var(--text-dim);
  padding: 8px 14px; border-radius: 8px; position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-links a .idx { font-family: var(--font-mono); color: var(--cyan); font-size: 0.78rem; margin-right: 5px; opacity: .8; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent-grad); border-radius: 2px;
}
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px; align-items: center; width: 100%; }

.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--surface);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.hero-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
.hero-badges .hero-status { margin-bottom: 0; }
.hero-status.auth { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.hero-status.auth .check { color: var(--green); font-weight: 700; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero h1 .grad { display: inline-block; }
.hero-role { font-family: var(--font-mono); font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--text); margin-bottom: 22px; min-height: 1.6em; }
.hero-role .prompt { color: var(--cyan); }
.hero-role .typed { color: var(--violet-soft); }
.hero-role .cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--cyan); margin-left: 2px; transform: translateY(2px); animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc { color: var(--text-dim); font-size: 1.05rem; max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-socials { display: flex; gap: 16px; align-items: center; }
.hero-socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim);
  background: var(--surface); transition: all .2s ease;
}
.hero-socials a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--glow-cyan); }
.hero-socials svg { width: 20px; height: 20px; }

/* Hero right: framed portrait + terminal stacked */
.hero-visual { display: grid; gap: 22px; }
.hero-photo { position: relative; border-radius: var(--radius); max-width: 320px; width: 100%; margin-inline: auto; }
.hero-photo img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(47,123,255,.18), rgba(168,85,247,.18)); display: block;
}
.hero-photo::before {
  content: ""; position: absolute; inset: -3px; border-radius: calc(var(--radius) + 3px); padding: 3px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; pointer-events: none;
}
.hero-photo.img-fallback { min-height: 320px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.hero-photo.img-fallback::after { content: "BS"; font-family: var(--font-mono); font-size: 4.5rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-photo-badge {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text);
  background: rgba(6,7,19,.6); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 12px;
}
.hero-photo-badge .dot { color: var(--green); }

/* Terminal card */
.terminal {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17,20,42,.92), rgba(11,13,28,.92));
  box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(6px);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.terminal-bar .tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.terminal-bar .tname { margin-left: 8px; font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: .84rem; line-height: 1.85; }
.terminal-body .line { white-space: pre-wrap; word-break: break-word; }
.t-com { color: var(--green); } .t-key { color: var(--cyan); } .t-val { color: var(--text); }
.t-str { color: var(--violet-soft); } .t-num { color: var(--amber); } .t-cmt { color: var(--text-faint); }

/* =====================================================================
   About
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 1/1.1; border-radius: var(--radius); object-fit: cover;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(168,85,247,.12));
  box-shadow: var(--shadow-lg);
}
.about-photo.img-fallback { display: grid; place-items: center; }
.about-photo.img-fallback::after { content: "BS"; font-family: var(--font-mono); font-size: 4rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-photo-wrap::before {
  content: ""; position: absolute; inset: -2px; border-radius: var(--radius); padding: 2px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none;
}
/* Education card under photo */
.edu-card {
  margin-top: 20px; border: 1px solid var(--border); border-left: 3px solid var(--c-bu);
  border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface);
}
.edu-card .edu-school { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.edu-card .edu-degree { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }
.edu-card .edu-meta { font-family: var(--font-mono); font-size: .76rem; color: var(--text-faint); margin-top: 6px; }

/* Logo wall (companies + BU) shown beside the About paragraph */
.about-side { display: grid; gap: 20px; align-content: start; }
.logo-wall { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.lw-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.lw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lw-logo {
  aspect-ratio: 1/1; display: grid; place-items: center; border-radius: 12px;
  background: #f7f8fb; border: 1px solid var(--border); position: relative; overflow: hidden;
  font-family: var(--font-mono); font-weight: 700; font-size: .95rem; color: var(--brand);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lw-logo:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -12px var(--brand); border-color: var(--brand); }
.lw-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; }

/* Experience category groups */
.exp-group { margin-bottom: 52px; }
.exp-group:last-child { margin-bottom: 0; }
.exp-group-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.exp-group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 45%, transparent), transparent); }

.about-body p { color: var(--text-dim); margin-bottom: 18px; }
.about-body p strong { color: var(--text); font-weight: 600; }
.about-highlight { color: var(--cyan); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.stat {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 16px;
  background: var(--surface); transition: border-color .2s ease, transform .2s ease;
}
.stat:hover { border-color: var(--brand, var(--cyan)); transform: translateY(-3px); }
.stat .num { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; }
.stat .num .grad { display: inline; }
.stat .label { color: var(--text-faint); font-size: .8rem; margin-top: 2px; }

/* =====================================================================
   Experience — filterable timeline w/ brand colors
   ===================================================================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  font-family: var(--font-mono); font-size: .82rem; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-dim); background: var(--surface); transition: all .2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { color: #05060c; background: var(--accent-grad); border-color: transparent; font-weight: 600; }

.timeline { position: relative; padding-left: 38px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cat-professional), var(--cat-research) 42%, var(--cat-leadership) 58%, var(--cat-professional) 74%, transparent);
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -38px; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--brand); box-shadow: 0 0 16px -2px var(--brand);
}
.tl-card {
  border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius);
  padding: 22px 24px; background: var(--surface);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.tl-card:hover { transform: translateX(4px); box-shadow: 0 18px 40px -22px var(--brand); border-color: var(--brand); }
.tl-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.logo-badge {
  flex: none; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: #fff;
  background: var(--brand); position: relative; overflow: hidden;
  box-shadow: 0 6px 18px -6px var(--brand);
}
.logo-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7px; background: #fff; }
.tl-headings { flex: 1; min-width: 0; }
.tl-role { font-size: 1.18rem; font-weight: 650; line-height: 1.25; }
.tl-company { color: var(--brand); font-weight: 600; }
.tl-company .tl-type { color: var(--text-faint); font-weight: 400; font-family: var(--font-mono); font-size: .76rem; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tl-chip-meta { font-family: var(--font-mono); font-size: .74rem; color: var(--text-faint); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.tl-tagline { color: var(--text); font-family: var(--font-mono); font-size: .82rem; margin: 4px 0 12px; opacity: .85; }
.tl-points { display: grid; gap: 9px; }
.tl-points li { color: var(--text-dim); font-size: .93rem; padding-left: 20px; position: relative; }
.tl-points li::before { content: "▹"; position: absolute; left: 0; color: var(--brand); }
.tl-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.metric-pill {
  display: flex; flex-direction: column; padding: 10px 14px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.metric-pill .mv { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: var(--brand); line-height: 1.1; }
.metric-pill .ml { font-size: .72rem; color: var(--text-faint); }
.tl-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tl-card { cursor: pointer; }
.tl-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.tl-foot { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--border); }
.tl-foot .detail { font-family: var(--font-mono); font-size: .78rem; color: var(--brand); }
.m-sub { font-family: var(--font-mono); font-size: .8rem; color: var(--text-faint); }

/* =====================================================================
   Skills
   ===================================================================== */
.skills-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.skill-bars { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.skill-bars h3 { font-size: 1.1rem; margin-bottom: 20px; }
.bar-row { margin-bottom: 16px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: 6px; }
.bar-label .pct { font-family: var(--font-mono); color: var(--text-faint); }
.bar-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--accent-grad); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden;
  --brand: var(--cyan);
}
.skill-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.skill-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); font-size: 1.3rem; }
.skill-head h3 { font-size: 1.12rem; font-weight: 650; }
.skill-head .sub { font-family: var(--font-mono); font-size: .74rem; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .8rem; font-family: var(--font-mono); padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); transition: all .18s ease;
}
.skill-card .chip:hover, .chip:hover { color: var(--brand, var(--cyan)); border-color: var(--brand, var(--cyan)); }

/* Certifications strip */
.certs { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); transition: border-color .2s ease, transform .2s ease;
}
.cert:hover { border-color: var(--cyan); transform: translateY(-3px); }
.cert .cert-ic { font-size: 1.4rem; }
.cert .cert-name { font-size: .84rem; font-weight: 600; line-height: 1.3; }
.cert .cert-by { font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); }

/* =====================================================================
   Projects
   ===================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-1);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; --brand: var(--cyan);
}
.project-card.featured { grid-column: 1 / -1; }
.project-card.featured .project-cover { aspect-ratio: 21/9; }
.project-card:hover { border-color: var(--brand); transform: translateY(-6px); box-shadow: 0 24px 50px -24px var(--brand); }
.project-cover { aspect-ratio: 16/9; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); display: grid; place-items: center; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-cover img { transform: scale(1.05); }
.project-cover.img-fallback { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%), linear-gradient(135deg, var(--bg-2), var(--bg-1)); }
.project-cover .glyph { font-family: var(--font-mono); font-size: 3rem; font-weight: 700; color: color-mix(in srgb, var(--brand) 85%, white); text-shadow: 0 2px 26px rgba(0,0,0,.5); z-index: 1; }
.project-cover .cover-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; opacity: .5; }
.project-badge { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: .7rem; padding: 4px 10px; border-radius: 999px; background: rgba(6,7,19,.7); backdrop-filter: blur(6px); border: 1px solid var(--border-strong); color: var(--brand); z-index: 2; }
.project-ribbon { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px; background: var(--accent-grad); color: #05060c; z-index: 2; }
.project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-body .p-cat { font-family: var(--font-mono); font-size: .74rem; color: var(--brand); margin-bottom: 8px; }
.project-body h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: 10px; }
.project-body .p-desc { color: var(--text-dim); font-size: .92rem; flex: 1; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.project-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; }
.project-foot .links { display: flex; gap: 14px; }
.project-foot .links a { color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; transition: color .2s ease; }
.project-foot .links a:hover { color: var(--brand); }
.project-foot .links svg { width: 16px; height: 16px; }
.project-foot .detail { font-family: var(--font-mono); font-size: .78rem; color: var(--brand); }

/* =====================================================================
   Contact
   ===================================================================== */
.contact-wrap {
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 56px;
  background: radial-gradient(600px circle at 50% 0%, rgba(168,85,247,.12), transparent 70%),
              radial-gradient(500px circle at 20% 100%, rgba(47,123,255,.1), transparent 70%), var(--surface);
  text-align: center;
}
.contact-wrap h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.contact-wrap p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer p { font-family: var(--font-mono); font-size: .82rem; color: var(--text-faint); }
.footer .up { color: var(--text-dim); font-size: .85rem; transition: color .2s ease; }
.footer .up:hover { color: var(--cyan); }

/* =====================================================================
   Modal
   ===================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(3, 4, 10, .82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-1); border: 1px solid var(--border-strong); border-top: 3px solid var(--brand);
  border-radius: var(--radius); width: 100%; max-width: 820px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .3s ease; --brand: var(--cyan);
}
.modal-overlay.visible .modal { transform: translateY(0) scale(1); }
.modal-header {
  position: sticky; top: 0; background: rgba(11, 13, 28, .94); backdrop-filter: blur(10px);
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; z-index: 2;
}
.modal-header h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.modal-header .m-cat { font-family: var(--font-mono); font-size: .76rem; color: var(--brand); }
.modal-close { font-size: 1.6rem; color: var(--text-dim); line-height: 1; padding: 4px; transition: color .2s ease, transform .2s ease; }
.modal-close:hover { color: var(--brand); transform: rotate(90deg); }
.modal-body { padding: 28px; }
.modal-body .m-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.modal-body h3 { color: var(--brand); font-size: 1.05rem; margin: 24px 0 10px; font-weight: 600; }
.modal-body h3:first-of-type { margin-top: 0; }
.modal-body p { color: var(--text-dim); margin-bottom: 14px; }
.modal-body p strong { color: var(--text); font-weight: 600; }
.modal-body ul { margin: 10px 0 14px; display: grid; gap: 8px; }
.modal-body ul li { color: var(--text-dim); padding-left: 20px; position: relative; }
.modal-body ul li::before { content: "▹"; position: absolute; left: 0; color: var(--brand); }
.modal-body .note { font-style: italic; color: var(--text-faint); font-size: .9rem; border-left: 2px solid var(--border-strong); padding-left: 14px; }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-side { max-width: 420px; }
  .skills-top, .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured .project-cover { aspect-ratio: 16/9; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(6, 7, 19, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; transform: translateY(-140%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 72px 0; }
  .contact-wrap { padding: 36px 24px; }
  .certs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .bar-fill { transition: none; }
}
