/* =========================================================
   Bhanu Prasad Samal — Glassmorphism Portfolio
   ---------------------------------------------------------
   1. Tokens          6. Hero            11. Experience
   2. Base            7. About           12. Education
   3. Background      8. Skills          13. Contact
   4. Glass + buttons 9. Projects        14. Footer + extras
   5. Navigation     10. (dialog)        15. Responsive / motion
   ========================================================= */

/* ── 1. TOKENS ─────────────────────────────────────────── */
:root {
  /* colour */
  --bg: #050816;
  --bg-2: #080d20;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hi: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --blue: #2583ff;
  --purple: #8957ff;
  --text: #f5f7ff;
  --muted: #a3aec5;
  --success: #3ddc97;
  --danger: #ff6b81;
  --grad: linear-gradient(135deg, var(--blue), var(--purple));

  /* type */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* shape + spacing */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  /* effects */
  --blur: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 2. BASE ───────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
strong { font-weight: 600; color: var(--text); }

:focus-visible {
  outline: 2px solid #7db1ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

/* ── Sections ── */
.section { padding-block: var(--section-y); position: relative; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(8, 13, 32, 0.72) 18%, rgba(8, 13, 32, 0.72) 82%, transparent);
}

.section-head { max-width: 680px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(37, 131, 255, 0.1);
  border: 1px solid rgba(37, 131, 255, 0.28);
  color: #a9c7ff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.h2 { font-size: clamp(1.85rem, 3.4vw + 0.8rem, 3rem); font-weight: 700; }
.lead { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.section-head--center .lead { margin-inline: auto; }

/* ── Scroll reveal (only active when JS is running) ── */
.js .reveal { opacity: 0; translate: 0 28px; }
.reveal {
  transition:
    opacity 0.8s var(--ease) var(--d, 0s),
    translate 0.8s var(--ease) var(--d, 0s),
    transform 0.35s var(--ease),
    border-color 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}
.js .reveal.visible { opacity: 1; translate: 0 0; }

/* ── 3. BACKGROUND ─────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 650px at 50% -8%, #0b1332 0%, transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 15%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 {
  width: 640px; height: 640px; left: -200px; top: -140px;
  background: radial-gradient(circle, rgba(37, 131, 255, 0.26), transparent 66%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-2 {
  width: 580px; height: 580px; right: -180px; top: 24%;
  background: radial-gradient(circle, rgba(137, 87, 255, 0.24), transparent 66%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.orb-3 {
  width: 520px; height: 520px; left: 22%; bottom: -220px;
  background: radial-gradient(circle, rgba(37, 131, 255, 0.15), transparent 66%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate3d(80px, 60px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-90px, 50px, 0) scale(1.1); } }

.particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--sz);
  height: var(--sz);
  border-radius: 50%;
  background: rgba(165, 195, 255, 0.7);
  opacity: 0.25;
  animation: particle var(--dur) ease-in-out var(--delay) infinite alternate;
}
@keyframes particle {
  to { transform: translate3d(var(--dx), var(--dy), 0); opacity: 0.6; }
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(37, 131, 255, 0.12), rgba(137, 87, 255, 0.06) 42%, transparent 70%);
  transition: opacity 0.5s;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* page-load progress bar */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 0;
  height: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(37, 131, 255, 0.7);
  animation: progress 1.4s var(--ease) forwards;
}
.page-progress.done { animation: none; width: 100%; opacity: 0; transition: opacity 0.5s 0.2s; }
@keyframes progress { to { width: 82%; } }

/* ── 4. GLASS + BUTTONS ────────────────────────────────── */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

/* Interactive glass: lift + cursor-following spotlight and glowing border */
.spot { --mx: 50%; --my: 50%; }
.spot::before,
.spot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.spot::before {
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(137, 87, 255, 0.15), rgba(37, 131, 255, 0.07) 42%, transparent 72%);
}
.spot::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(37, 131, 255, 0.95), rgba(137, 87, 255, 0.6) 45%, transparent 76%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }
.spot:hover::before,
.spot:hover::after { opacity: 1; }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}
.btn .icon { width: 18px; height: 18px; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 26px rgba(37, 131, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(137, 87, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover::after { transform: translateX(130%); }

.btn-glass {
  color: var(--text);
  background: var(--glass);
  border-color: var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover { transform: translateY(-2px); background: var(--glass-hi); border-color: rgba(255, 255, 255, 0.3); }

.btn-sm { min-height: 42px; padding: 0.65rem 1.2rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

.icon-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #cfe0ff;
  background: linear-gradient(135deg, rgba(37, 131, 255, 0.2), rgba(137, 87, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.icon-badge--sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-badge--lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-badge--lg .icon { width: 30px; height: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: #cbd6ee;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
}

.social-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.social-btn .icon { width: 19px; height: 19px; }
.social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: rgba(137, 87, 255, 0.6);
  background: rgba(137, 87, 255, 0.16);
  box-shadow: 0 8px 24px rgba(137, 87, 255, 0.25);
}

/* ── 5. NAVIGATION ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(1120px, 100%);
  padding: 0.5rem 0.55rem 0.5rem 1.5rem;
  border-radius: var(--r-pill);
  background: rgba(12, 18, 44, 0.5);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled .nav { background: rgba(8, 13, 32, 0.76); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07); }

.brand {
  font: 800 1.4rem/1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-menu { display: flex; gap: 0.2rem; margin-inline: auto; }
.nav-link {
  position: relative;
  display: block;
  padding: 0.6rem 0.95rem;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 18px; left: calc(50% - 9px); }
.nav-link.active { background: rgba(255, 255, 255, 0.06); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 8.5rem 4.5rem;
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #d4e1fb;
  font-size: 0.85rem;
  font-weight: 500;
}
.badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }

.hero-title {
  margin: 1.35rem 0 0.9rem;
  font-size: clamp(2.35rem, 4.6vw + 0.9rem, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-title > span:first-child { display: block; }
.hero-title .gradient-text { display: inline-block; padding-bottom: 0.08em; }
.hero-role {
  font: 600 clamp(1.1rem, 1vw + 0.8rem, 1.4rem)/1.3 var(--font-display);
  color: #c6d6f7;
  letter-spacing: -0.01em;
}
.hero-desc { margin-top: 1.1rem; max-width: 52ch; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-copy .social-list { margin-top: 2rem; }

.hero-visual { min-width: 0; }
.portrait { position: relative; width: min(100%, 460px); margin-inline: auto; aspect-ratio: 1; }

.portrait-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 12px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 70px rgba(37, 131, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 131, 255, 0.9), rgba(137, 87, 255, 0.15) 45%, rgba(137, 87, 255, 0.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 29px;
}
.portrait-glow {
  position: absolute;
  inset: 10%;
  z-index: 0;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(70px);
  opacity: 0.3;
}

.orbit {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: spin 50s linear infinite;
}
.orbit-1 { inset: -9%; }
.orbit-2 { inset: -21%; border: 1px dashed rgba(137, 87, 255, 0.28); animation-duration: 72s; animation-direction: reverse; }
.orbit::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px 2px rgba(37, 131, 255, 0.75);
}
.orbit-2::after { top: auto; bottom: -5px; background: var(--purple); box-shadow: 0 0 14px 2px rgba(137, 87, 255, 0.75); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.05rem;
  border-radius: var(--r-md);
  background: rgba(9, 14, 36, 0.72); /* darker glass so text stays readable over the photo */
  animation: floaty 7s ease-in-out infinite;
}
.float-card--role { left: -8%; bottom: 11%; }
.float-card--role strong { display: block; font-size: 0.9rem; line-height: 1.25; }
.float-card--role small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
/* Sits in the top-right corner, straddling the frame's top edge ABOVE the hair,
   so it never covers the face (head occupies roughly x 33-68%, y 15-66% of the photo). */
.float-card--code {
  right: -2%;
  top: -9%;
  display: block;
  padding: 0.6rem 0.85rem;
  font: 400 0.66rem/1.55 var(--font-mono);
  color: #cfd9f1;
  animation-delay: -3.2s;
}
.float-card--code pre { font: inherit; white-space: pre; }
.tk-p { color: #b196ff; }
.tk-k { color: #7db1ff; }
.tk-s { color: #a8e0c4; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── 7. ABOUT ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.about-panel { padding: clamp(1.6rem, 3.6vw, 2.9rem); }
.about-panel .h2 { margin-bottom: 1.4rem; }
.about-panel p { color: var(--muted); margin-bottom: 1rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft);
}
.fact dt { color: #8697bd; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.fact dd { margin-top: 0.2rem; font-weight: 500; }

.about-cards { display: grid; grid-auto-rows: 1fr; gap: 1.25rem; }
.feature-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.6rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ── 8. SKILLS ─────────────────────────────────────────── */
.skill-groups { display: grid; gap: 1.25rem; }
.skill-group {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem 1.75rem;
}
.skill-group-head { display: flex; align-items: center; gap: 1rem; }
.skill-group-head h3 { font-size: 1.15rem; }
.skill-group-head p { color: var(--muted); font-size: 0.85rem; }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0.9rem; }
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  height: 112px;
  padding: 0.75rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}
.skill img { width: 40px; height: 40px; object-fit: contain; transition: transform 0.35s var(--ease); }
/* Logos that are wider than tall get a wider box so they read at the same visual size */
.skill img.is-wide { width: 56px; height: 40px; }
.skill img.is-wordmark { width: 84px; height: 40px; }
.skill:hover img { transform: scale(1.1); }

/* ── 9. PROJECTS ───────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.project-grid > li { display: flex; }
.project-card { display: flex; flex-direction: column; width: 100%; padding: 0.6rem; overflow: hidden; }

.project-visual {
  position: relative;
  flex: none;
  height: 200px;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 8px);
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 131, 255, 0.3), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(137, 87, 255, 0.3), transparent 55%),
    rgba(8, 13, 32, 0.6);
  border: 1px solid var(--border-soft);
}
.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(5, 8, 22, 0.62);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #d4e1fb;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
}
.project-body { display: flex; flex: 1; flex-direction: column; gap: 0.9rem; padding: 1.35rem 1.2rem 1.2rem; }
.project-body h3 { font-size: 1.2rem; }
.project-body > p { color: var(--muted); font-size: 0.95rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 0.5rem; }

/* CSS-only project visuals */
.pv { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 1.6rem; }

.pv-win {
  display: flex;
  flex-direction: column;
  width: 80%;
  height: 74%;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(8, 13, 32, 0.78);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.pv-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); }
.pv-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.pv-layout { display: grid; grid-template-columns: 22% 1fr; flex: 1; min-height: 0; }
.pv-side { display: flex; flex-direction: column; gap: 7px; padding: 10px 8px; border-right: 1px solid var(--border-soft); }
.pv-side i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); }
.pv-side i:first-child { background: var(--grad); }
.pv-main { display: flex; flex-direction: column; gap: 9px; min-height: 0; padding: 10px; }
.pv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pv-tiles i { height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-soft); }
.pv-chart { display: flex; flex: 1; align-items: flex-end; gap: 6px; min-height: 0; }
.pv-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue), rgba(137, 87, 255, 0.45));
}

.pv-cinema { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 58%; }
.pv-screen {
  width: 100%;
  height: 22px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 3px solid rgba(125, 177, 255, 0.85);
  background: linear-gradient(180deg, rgba(37, 131, 255, 0.35), transparent);
  box-shadow: 0 -10px 30px rgba(37, 131, 255, 0.35);
}
.pv-seats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; width: 100%; }
.pv-seats i { aspect-ratio: 1; border-radius: 5px 5px 3px 3px; background: rgba(255, 255, 255, 0.16); }
.pv-seats i.t { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-soft); }
.pv-seats i.s { background: var(--grad); box-shadow: 0 0 12px rgba(137, 87, 255, 0.55); }

.pv-player { display: flex; flex-direction: column; gap: 22px; width: 76%; max-width: 340px; }
.pv-eq { display: flex; align-items: flex-end; justify-content: space-between; gap: 5px; height: 78px; }
.pv-eq i {
  flex: 1;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  transform-origin: bottom;
  transform: scaleY(0.4);
  animation: eq 1.3s ease-in-out infinite alternate;
}
.pv-eq i:nth-child(2n) { animation-duration: 1.7s; animation-delay: -0.4s; }
.pv-eq i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -0.8s; }
.pv-eq i:nth-child(5n) { animation-duration: 2s; animation-delay: -1.2s; }
@keyframes eq { 0% { transform: scaleY(0.22); } 100% { transform: scaleY(1); } }
.pv-ctrl { display: flex; align-items: center; gap: 14px; }
.pv-play { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); }
.pv-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.pv-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.pv-track b { display: block; width: 38%; height: 100%; border-radius: 3px; background: var(--grad); }

/* ── Project details dialog ── */
.project-dialog {
  margin: auto; /* the global reset removes the browser's auto-centering for <dialog> */
  width: min(600px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  background: rgba(10, 15, 38, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.project-dialog::backdrop { background: rgba(3, 5, 15, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.project-dialog[open] { animation: dialog-in 0.35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
body:has(dialog[open]) { overflow: hidden; }

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.dialog-close:hover { background: var(--glass-hi); transform: rotate(90deg); }
.dialog-body { padding: clamp(1.5rem, 4vw, 2.25rem); }
.dialog-body .project-tag { position: static; display: inline-block; margin-bottom: 1rem; max-width: none; }
.dialog-body h3 { padding-right: 2.5rem; margin-bottom: 1.25rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.dialog-body h4 { margin: 1.4rem 0 0.6rem; color: #8fb4f5; font: 600 0.74rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.dialog-body p { color: var(--muted); }
.dialog-body ul:not(.chips) { display: grid; gap: 0.5rem; }
.dialog-body ul:not(.chips) li { position: relative; padding-left: 1.4rem; color: #d3dcf1; }
.dialog-body ul:not(.chips) li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* ── 11. EXPERIENCE ────────────────────────────────────── */
.timeline { position: relative; max-width: 860px; margin-inline: auto; padding-left: 3.2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--purple) 65%, rgba(137, 87, 255, 0.1));
  box-shadow: 0 0 14px rgba(37, 131, 255, 0.45);
}
.timeline-item { position: relative; }
.timeline-item + .timeline-item { margin-top: 1.75rem; }
.timeline-node {
  position: absolute;
  left: calc(-3.2rem + 6px);
  top: 2rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 131, 255, 0.12), 0 0 18px rgba(37, 131, 255, 0.55);
}
.timeline-node--current { border-color: var(--purple); box-shadow: 0 0 0 5px rgba(137, 87, 255, 0.14), 0 0 20px rgba(137, 87, 255, 0.6); }
.timeline-node--current::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--grad); }

.xp-card { padding: clamp(1.4rem, 3vw, 2rem); }
.xp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.xp-head h3 { font-size: clamp(1.15rem, 1.4vw + 0.8rem, 1.4rem); }
.xp-company { margin-top: 0.25rem; color: #8fb4f5; font-weight: 500; }
.xp-date {
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  color: #cbd6ee;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.xp-card > p { color: var(--muted); }
.xp-list { display: grid; gap: 0.4rem; margin: 0.9rem 0 1.2rem; }
.xp-list li { position: relative; padding-left: 1.4rem; color: #d3dcf1; }
.xp-list li::before { content: ''; position: absolute; left: 0; top: 0.64em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.xp-card > p + .chips { margin-top: 1.1rem; }

/* ── 12. EDUCATION ─────────────────────────────────────── */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
.edu-main { display: flex; align-items: flex-start; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.edu-main-body { flex: 1; min-width: 0; }
.edu-kicker { color: #8697bd; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.edu-main h3 { margin: 0.5rem 0 0.35rem; font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.6rem); }
.edu-school { color: #8fb4f5; font-weight: 500; }
.edu-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.edu-meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.edu-meta .icon { width: 16px; height: 16px; }

.cgpa {
  flex: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(37, 131, 255, 0.14), rgba(137, 87, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cgpa-label { color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; }
.cgpa-value { font: 800 2.1rem/1.2 var(--font-display); letter-spacing: -0.03em; }

.edu-side { display: grid; gap: 1.25rem; }
.edu-mini { padding: 1.4rem 1.6rem; }
.edu-mini h3 { margin: 0.4rem 0 0.25rem; font-size: 1.05rem; }
.edu-mini p:last-child { color: var(--muted); font-size: 0.9rem; }

.achievement { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.25rem; padding: 1.4rem 1.6rem; }
.achievement h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.achievement p { color: var(--muted); font-size: 0.92rem; }

/* ── 13. CONTACT ───────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-cards { display: grid; gap: 0.9rem; margin-top: 2rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 0.95rem 1.2rem; text-decoration: none; }
.contact-card-text { display: grid; min-width: 0; }
.contact-card small { color: #8697bd; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-card strong { font-size: 0.95rem; font-weight: 500; overflow-wrap: anywhere; }

.contact-form { display: grid; gap: 0.9rem; padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field label { color: #cbd6ee; font-size: 0.85rem; font-weight: 500; }
.input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
textarea.input { min-height: 140px; resize: vertical; }
.input::placeholder { color: #75819d; }
.input:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus { outline: 2px solid transparent; /* stays visible in Windows high-contrast mode */ border-color: var(--blue); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 4px rgba(37, 131, 255, 0.2); }
.input[aria-invalid='true'] { border-color: var(--danger); }
.input[aria-invalid='true']:focus { box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.2); }
.field-error { min-height: 1.1em; margin-top: -0.2rem; color: #ff9aa9; font-size: 0.8rem; line-height: 1.4; }

.form-note { color: #8697bd; font-size: 0.82rem; text-align: center; }
.form-status { display: none; align-items: flex-start; gap: 0.7rem; padding: 0.9rem 1rem; border-radius: var(--r-sm); font-size: 0.92rem; line-height: 1.5; }
.form-status.show { display: flex; }
.form-status .icon { margin-top: 0.15em; }
.form-status a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.form-status.success { color: #b8f3d8; background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.35); }
.form-status.error { color: #ffc2cb; background: rgba(255, 107, 129, 0.1); border: 1px solid rgba(255, 107, 129, 0.35); }

/* ── 14. FOOTER + EXTRAS ───────────────────────────────── */
.site-footer { padding: 2rem 0 2.5rem; }
.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.footer-brand p { max-width: 34ch; margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }
.footer-title { margin-bottom: 1rem; color: #8697bd; font: 600 0.74rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0.5rem 2rem; }
.footer-nav a { color: var(--muted); font-size: 0.93rem; text-decoration: none; transition: color 0.25s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 1.5rem; padding-inline: 0.5rem; color: #7f8cab; font-size: 0.85rem; }

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(12, 18, 44, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, border-color 0.3s, background 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: rgba(137, 87, 255, 0.7); background: rgba(137, 87, 255, 0.22); transform: translateY(-3px); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 250;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10, 15, 38, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ── 15. RESPONSIVE ────────────────────────────────────── */

/* Laptops / small desktops */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero { min-height: 0; padding-block: 8.75rem 4rem; } /* extra room so the corner code card clears the nav */
  .hero-visual { order: -1; }
  .portrait { width: min(72%, 400px); }
  /* keep the decorative rings (and their dots) from reaching the badge text below the photo */
  .orbit-1 { inset: -6%; }
  .orbit-2 { inset: -10%; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-copy .social-list { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-card { flex-direction: column; }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

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

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

/* Tablet: collapsible navigation */
@media (max-width: 1023px) {
  .nav { padding-left: 1.25rem; }
  .brand { margin-right: auto; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    padding: 0.6rem;
    border-radius: var(--r-lg);
    background: rgba(8, 13, 32, 0.97);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 0.9rem 1.1rem; border-radius: var(--r-md); font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-link.active { background: rgba(37, 131, 255, 0.14); }

  .skill-group { grid-template-columns: 1fr; }
}

/* Too tight beside the role card below this width, so the decorative code card is dropped */
@media (max-width: 700px) {
  .float-card--code { display: none; }
}

/* Large phones / small tablets */
@media (max-width: 767px) {
  .section-head { margin-bottom: 2rem; }
  .about-cards { grid-template-columns: 1fr; }
  .feature-card { flex-direction: row; }
  .project-grid { grid-template-columns: 1fr; }
  .edu-side { grid-template-columns: 1fr; }
  .footer-panel { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: 5.5rem; } /* keeps the copyright line clear of the back-to-top button */

  /* lighter effects on small screens */
  :root { --blur: 12px; }
  .orb { animation: none; }
  .cursor-glow { display: none; }
}

/* Phones */
@media (max-width: 600px) {
  .hero { padding-block: 6.5rem 3rem; }
  .hero-grid { gap: 2.5rem; }
  .portrait { width: min(68vw, 290px); }
  .portrait-frame { padding: 9px; border-radius: 30px; }
  .portrait-frame img { border-radius: 22px; }
  .orbit-1 { inset: -5%; }
  .orbit-2 { inset: -8%; }
  .float-card--role { left: -10%; bottom: 6%; padding: 0.6rem 0.8rem; }
  .float-card--role small { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }

  .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .skill-group { padding: 1.25rem; }
  .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
  .skill { height: 98px; font-size: 0.8rem; }
  .skill img { width: 34px; height: 34px; }
  .edu-main { flex-wrap: wrap; }
  .cgpa { flex-direction: row; gap: 0.75rem; width: 100%; min-width: 0; padding: 0.8rem 1rem; }
  .cgpa-value { font-size: 1.6rem; }
  .achievement { flex-direction: column; align-items: flex-start; }
  .timeline { padding-left: 2.5rem; }
  .timeline-node { left: calc(-2.5rem + 6px); }
  .nav-cta { padding-inline: 1rem; }
}

@media (max-width: 380px) {
  .nav { padding-left: 1rem; gap: 0.5rem; }
  .nav-cta { min-height: 40px; padding: 0.55rem 0.85rem; font-size: 0.82rem; }
  .skill-grid { gap: 0.5rem; }
}

/* ── Reduced motion: keep layout, drop movement ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .spot:hover { transform: none; }
  .pv-eq i { animation: none; transform: scaleY(0.6); }
  .pv-eq i:nth-child(3n) { transform: scaleY(0.9); }
  .pv-eq i:nth-child(4n) { transform: scaleY(0.38); }
  .particles, .cursor-glow { display: none; }
}
