/* ============================================================
   dharunvincent.com — Shared Stylesheet
   All pages import this file for design consistency.
   Design tokens (CSS variables) are defined in :root.
   ============================================================ */

/* ── Cursor: hide native on mouse devices ────────────────── */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

/* ── Box model reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --orange:      #FF6B2B;
  --orange-dim:  rgba(255,107,43,0.12);
  --orange-glow: rgba(255,107,43,0.45);
  --surface:     rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --muted:       rgba(255,255,255,0.45);
  --font:        'Syne', system-ui, sans-serif;
  --mono:        'DM Mono', monospace;
  /* Nav height — used for scroll-margin-top offsets */
  --nav-h:       5rem;
}

/* ── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; overscroll-behavior: none; height: 100%; }
body {
  background: #000; color: #fff;
  font-family: var(--font);
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}

/* ── Accessibility ───────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Touch/stylus: restore native cursor ─────────────────── */
@media (hover: none) { body { cursor: auto; } }
@media (max-width: 1024px) and (pointer: coarse) {
  body { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ── Custom cursor — desktop mouse only ──────────────────── */
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0; /* shown only after first mousemove */
  transform: translate(-50%, -50%);
  transition: opacity .3s, width .2s, height .2s;
  will-change: transform;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,107,43,0.6);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .3s, width .25s cubic-bezier(.22,1,.36,1),
              height .25s cubic-bezier(.22,1,.36,1), border-color .25s;
  will-change: transform;
}
body.has-cursor { cursor: none; }
body.has-cursor a,
body.has-cursor button { cursor: none; }
body.cursor-active #cursor-dot  { opacity: 1; }
body.cursor-active #cursor-ring { opacity: 1; }
body.cursor-hover  #cursor-ring { width: 52px; height: 52px; border-color: var(--orange); }
@media (hover: none), (pointer: coarse), (pointer: none) {
  body { cursor: auto !important; }
  body.has-cursor { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ── Noise overlay ───────────────────────────────────────── */
body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 9997; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ── Utility: card ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .4s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,43,.35);
  box-shadow: 0 28px 56px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,107,43,.12);
}

/* ── Utility: section label ──────────────────────────────── */
.label {
  font-family: var(--font);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .3em;
  color: var(--orange); font-weight: 600; margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: .75rem;
}
.label::before { content: ''; width: 1.5rem; height: 1px; background: var(--orange); }

/* ── Utility: reveal on scroll ───────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.reveal.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Utility: accent colour ──────────────────────────────── */
.accent { color: var(--orange); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--orange); color: #000;
  padding: .875rem 2rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 700;
  box-shadow: 0 0 36px -8px var(--orange-glow);
  transition: filter .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { filter: brightness(1.1); transform: scale(1.04); }
.btn-secondary {
  backdrop-filter: blur(24px); background: var(--surface);
  border: 1px solid var(--border);
  padding: .875rem 2rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); transform: scale(1.04); }

/* ── Keyframe animations ─────────────────────────────────── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes pulse   { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.4; transform:scale(.7); } }
@keyframes navIn   { to { opacity:1; transform:translateY(0); } }
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes scrollPulse { 0%,100%{ opacity:.8; transform:scaleY(1); } 50%{ opacity:.2; transform:scaleY(.4); } }
@keyframes heroIn  { from { opacity:0; transform:scale(1.04); } to { opacity:1; transform:scale(1); } }

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 1.5rem 0;
  opacity: 0; transform: translateY(-16px);
  animation: navIn .6s cubic-bezier(.22,1,.36,1) .2s forwards;
}
.nav-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 9999px;
  /* Desktop: slightly taller pill for Phase 3 */
  padding: .55rem .55rem .55rem 1.25rem;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav-inner.scrolled {
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  background: rgba(8,8,8,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 12px 40px -8px rgba(0,0,0,.7),
    0 0 0 0.5px rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .9375rem; letter-spacing: -.02em;
}
.nav-logo-img {
  height: 1.75rem; width: auto;
  filter: drop-shadow(0 0 6px rgba(255,60,60,0.6));
  transition: filter .3s;
}
.nav-logo:hover .nav-logo-img { filter: drop-shadow(0 0 14px rgba(255,60,60,1)); }

/* Desktop nav links — Phase 3: only 3 items shown */
.nav-links { display: flex; gap: .125rem; }
.nav-links a {
  padding: .375rem 1rem; border-radius: 9999px;
  /* Slightly larger font for Phase 3 desktop */
  font-size: .875rem; font-weight: 600;
  color: rgba(255,255,255,.55);
  transition: color .2s, background .2s;
  letter-spacing: -.01em;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.07); }

/* ── Mobile nav right — CTA + Hamburger wrapper ──────────── */
/* Holds the visible CTA (Blogs/Home) and hamburger side by side.
   Desktop: hidden. Mobile: visible, flex row. */
.mobile-nav-right {
  display: none; /* shown only on mobile via media query */
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* Visible CTA pill — "Blogs" or "Home" depending on page */
.mobile-nav-cta {
  display: inline-flex; align-items: center;
  padding: .35rem .875rem;
  border-radius: 9999px;
  background: rgba(255,107,43,.12);
  border: 1px solid rgba(255,107,43,.3);
  font-size: .75rem; font-weight: 600;
  color: var(--orange);
  letter-spacing: .03em;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.mobile-nav-cta:hover {
  background: rgba(255,107,43,.2);
  border-color: rgba(255,107,43,.5);
  color: var(--orange);
}

/* ── Hamburger button ────────────────────────────────────── */
.hamburger {
  display: none; /* shown only on mobile via media query */
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; width: 2.25rem; height: 2.25rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,.14); border-color: rgba(255,107,43,.4); }
.hamburger span {
  display: block; width: 1rem; height: 1.5px;
  background: rgba(255,255,255,.85); border-radius: 2px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s, width .2s;
}
/* Hamburger → X animation */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav dropdown (liquid glass) ──────────────────── */
#mobile-nav {
  display: none;
  position: fixed; top: 4.5rem; right: 1rem;
  width: min(18rem, calc(100vw - 2rem));
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  background: rgba(10,10,10,0.7);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05) inset;
  z-index: 200; overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
#mobile-nav.open { display: block; opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
/* Orange accent top bar */
#mobile-nav::before {
  content: ''; display: block; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,107,43,.5), transparent);
}
.mobile-nav-links {
  padding: .5rem .75rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.mobile-nav-links a {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem; border-radius: .75rem;
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: background .2s, color .2s, transform .2s;
  border: 1px solid transparent;
}
.mobile-nav-links a:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
  color: #fff; transform: translateX(3px);
}
.mobile-nav-links a .nav-num {
  font-family: var(--mono); font-size: .65rem;
  color: var(--orange); opacity: .8; min-width: 1.25rem;
}
.mobile-nav-divider { height: 1px; margin: .25rem .75rem; background: rgba(255,255,255,.07); }
.mobile-nav-footer { padding: .75rem; border-top: 1px solid rgba(255,255,255,.07); }
.mobile-nav-footer a {
  display: block; text-align: center;
  background: var(--orange); color: #000;
  padding: .75rem; border-radius: .75rem;
  font-size: .875rem; font-weight: 700;
  box-shadow: 0 0 24px -6px rgba(255,107,43,.5);
  transition: filter .2s;
}
.mobile-nav-footer a:hover { filter: brightness(1.1); }

/* Backdrop dimmer */
#mobile-nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#mobile-nav-backdrop.open { display: block; }

/* ── Layout ──────────────────────────────────────────────── */
main { max-width: 72rem; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
section { margin-bottom: 5.5rem; scroll-margin-top: var(--nav-h); }

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid rgba(255,255,255,.05); text-align: center; padding: 2.5rem 1.5rem; }
footer p {
  font-family: var(--mono); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .35em;
  color: rgba(255,255,255,.18);
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden; padding: .75rem 0; margin-bottom: 5rem;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.55); white-space: nowrap; }
.marquee-dot { color: var(--orange); margin-left: .75rem; }

/* ── About section ───────────────────────────────────────── */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 3fr 2fr; align-items: start; } }
#about h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
#about p:not(.label) { color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.about-highlights { display: flex; flex-direction: column; gap: .5rem; }
.highlight-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem; border-radius: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.75);
  transition: border-color .3s, background .3s, transform .2s; gap: .2rem;
  text-decoration: none; cursor: pointer;
}
.highlight-item:hover { border-color: rgba(255,107,43,.35); background: rgba(255,255,255,.07); }
.highlight-arrow { color: var(--orange); flex-shrink: 0; transition: transform .2s; }
.highlight-item:hover .highlight-arrow { transform: translateX(3px); }

/* ── Impact numbers ──────────────────────────────────────── */
.impact-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem; justify-items: center;
}
.impact-card {
  padding: 2rem 1.5rem; text-align: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; width: 100%;
}
.impact-value { font-family: 'Rajdhani', var(--font); font-size: 3rem; font-weight: 700; color: var(--orange); line-height: 1; white-space: nowrap; letter-spacing: .02em; }
.impact-label { font-size: .7rem; color: rgba(255,255,255,.75); margin-top: .75rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .12em; text-align: center; max-width: 12rem; }

/* ── Product Building & Vibe Coding preview (homepage) ───── */
/* Section renamed from AI Product Builder — new preview card layout */
.vibe-preview-list { display: flex; flex-direction: column; gap: 1.25rem; }

/* Horizontal project preview card */
.vibe-preview-card {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.75rem 2rem;
  position: relative; overflow: hidden;
}
/* Orange top accent bar */
.vibe-preview-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), rgba(255,107,43,.2), transparent);
}
.vibe-preview-icon {
  width: 3rem; height: 3rem; border-radius: 1rem;
  background: var(--orange-dim); border: 1px solid rgba(255,107,43,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vibe-preview-icon svg { width: 1.4rem; height: 1.4rem; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vibe-preview-body { flex: 1; min-width: 0; }
.vibe-preview-title { font-size: 1.3rem; font-weight: 800; margin-bottom: .35rem; letter-spacing: -.02em; }
.vibe-preview-desc { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.vibe-preview-badge {
  background: var(--orange-dim); border: 1px solid rgba(255,107,43,.25);
  color: var(--orange); padding: .3rem .9rem; border-radius: 9999px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  white-space: nowrap; flex-shrink: 0; align-self: flex-start;
}

/* CTA row below the preview cards */
.vibe-cta-row {
  display: flex; justify-content: flex-end;
  margin-top: 1.5rem; padding-right: .25rem;
}
.vibe-cta-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9375rem; font-weight: 700; color: var(--orange);
  border-bottom: 1px solid rgba(255,107,43,.35);
  padding-bottom: .15rem;
  transition: gap .25s cubic-bezier(.22,1,.36,1), border-color .2s;
}
.vibe-cta-link:hover { gap: .85rem; border-color: var(--orange); }
.vibe-cta-arrow { font-size: 1.1rem; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.vibe-cta-link:hover .vibe-cta-arrow { transform: translateX(4px); }

/* ── AI tool badges (shared across pages) ────────────────── */
.ai-tool {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; min-width: 6.5rem;
  font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  padding: .2rem .6rem; border-radius: 9999px; white-space: nowrap;
}
.ai-tool-gemini  { background: rgba(66,133,244,.15);  border: 1px solid rgba(66,133,244,.3);  color: #7aaff4; }
.ai-tool-google  { background: rgba(66,186,100,.15);  border: 1px solid rgba(66,186,100,.3);  color: #6dbb85; }
.ai-tool-claude  { background: var(--orange-dim);      border: 1px solid rgba(255,107,43,.25); color: var(--orange); }
.ai-tool-flutter { background: rgba(84,182,252,.15);  border: 1px solid rgba(84,182,252,.3);  color: #54b6fc; }
.ai-tool-firebase{ background: rgba(255,196,0,.12);   border: 1px solid rgba(255,196,0,.3);   color: #ffc400; }
.ai-tool-security{ background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.6); }

/* ── Skills grid ─────────────────────────────────────────── */
.skills-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.skill-card { padding: 1.75rem; }
.skill-icon {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--orange-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
  transition: background .3s;
}
.skill-card:hover .skill-icon { background: rgba(255,107,43,.22); }
.skill-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skill-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.skill-card p { font-size: .8125rem; color: var(--muted); line-height: 1.65; }

/* ── Experience ──────────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: 1rem; }
.exp-card { padding: 2rem; }
.exp-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.exp-company-name { font-size: 1.4rem; font-weight: 800; line-height: 1.05; }
.exp-role { font-size: .875rem; color: var(--orange); font-weight: 500; margin-top: .25rem; }
.exp-period {
  font-family: var(--mono); font-size: .75rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: .375rem .875rem; border-radius: 9999px; white-space: nowrap;
}
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.exp-bullets li { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.65; }
.exp-bullets li::before { content: '→'; color: var(--orange); flex-shrink: 0; margin-top: .05rem; }

/* ── Product highlight cards (homepage) ──────────────────── */
.highlights-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.hl-card {
  position: relative; overflow: hidden; border-radius: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .4s;
}
.hl-card:hover { transform: translateY(-6px); border-color: rgba(255,107,43,.4); box-shadow: 0 28px 56px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,107,43,.15); }
.hl-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange), rgba(255,107,43,.3), transparent); z-index: 2; }
.hl-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(255,107,43,.08) 0%, transparent 70%); z-index: 1; }
.hl-illustration { position: relative; width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; z-index: 2; flex-shrink: 0; }
.hl-illustration svg { width: 100%; height: 100%; }
.hl-illustration::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 48px; background: linear-gradient(to bottom, transparent, rgba(10,10,10,.95)); pointer-events: none; }
.hl-body { position: relative; z-index: 2; padding: 0 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.hl-platform { display: inline-block; align-self: flex-start; background: rgba(255,107,43,.1); border: 1px solid rgba(255,107,43,.25); color: var(--orange); padding: .2rem .65rem; border-radius: 9999px; font-family: var(--font); font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .2rem; }
.hl-title { font-family: var(--font); font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: #fff; }
.hl-desc { font-family: var(--font); font-size: .8125rem; color: rgba(255,255,255,.65); line-height: 1.65; flex: 1; font-weight: 400; }
.hl-role { font-family: var(--font); font-size: .75rem; color: rgba(255,255,255,.55); line-height: 1.5; font-style: italic; font-weight: 400; }
.hl-metric { margin-top: .5rem; padding-top: .625rem; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.hl-metric-value { font-family: 'Rajdhani', var(--font); font-size: 2.25rem; font-weight: 700; color: var(--orange); letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.hl-metric-label { font-family: var(--font); font-size: .65rem; font-weight: 500; color: var(--muted); line-height: 1.6; text-transform: uppercase; letter-spacing: .12em; }

/* ── Skills tags ─────────────────────────────────────────── */
#skills-section {
  border: 1px solid rgba(255,107,43,.15); border-radius: 2.5rem;
  padding: 2.25rem 2.75rem; position: relative; overflow: hidden;
}
#skills-section::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(255,107,43,.08), transparent); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; justify-content: flex-start; align-items: flex-start; }
.tag { padding: .5rem 1rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.5); font-size: .8125rem; font-weight: 500; transition: border-color .3s, color .3s; cursor: none; white-space: nowrap; }
.tag:hover { border-color: rgba(255,107,43,.5); color: var(--orange); }

/* ── Education ───────────────────────────────────────────── */
.edu-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.edu-card { padding: 2rem; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.edu-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange), transparent); }
.edu-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--orange-dim); border: 1px solid rgba(255,107,43,.2); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.edu-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edu-degree { font-size: 1.1rem; margin-bottom: .375rem; line-height: 1.3; min-height: 2.75rem; }
.edu-school { font-size: .8125rem; color: var(--orange); font-weight: 500; margin-bottom: .375rem; }
.edu-type { font-size: .7rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.course-section-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.course-card { padding: 1.75rem; border-radius: 1.5rem; background: rgba(255,107,43,.04); border: 1px solid rgba(255,107,43,.15); transition: border-color .3s, background .3s; }
.course-card:hover { border-color: rgba(255,107,43,.35); background: rgba(255,107,43,.08); }
.course-category { font-family: var(--font); font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--orange); font-weight: 600; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.course-category::before { content: ''; width: 1.25rem; height: 1px; background: var(--orange); }
.course-list { display: flex; flex-direction: column; gap: .875rem; }
.course-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .9375rem; color: rgba(255,255,255,.85); line-height: 1.6; }
.course-item::before { content: '→'; color: var(--orange); font-size: .875rem; flex-shrink: 0; margin-top: .15rem; }

/* ── Contact ─────────────────────────────────────────────── */
#contact { text-align: center; padding: 1.5rem 0 1rem; }
#contact h2 { font-size: clamp(2.75rem, 8vw, 5.5rem); margin-bottom: 2rem; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.4); transition: color .2s; text-underline-offset: 4px; }
.contact-links a:hover { color: var(--orange); text-decoration: underline; }
.contact-email { display: inline-block; background: var(--orange); color: #000; padding: 1rem 2.5rem; border-radius: 9999px; font-size: 1rem; font-weight: 700; box-shadow: 0 0 40px -8px var(--orange-glow); transition: filter .2s, transform .2s; }
.contact-email:hover { filter: brightness(1.1); transform: scale(1.04); }

/* ── Scroll cue ──────────────────────────────────────────── */
.scroll-cue-wrap { display: flex; justify-content: center; padding: 1.25rem 0 0; background: #000; }
.scroll-cue-inner { display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: 0; animation: fadeIn 1s ease 1.6s forwards; }
.scroll-cue-inner span { font-size: .6rem; text-transform: uppercase; letter-spacing: .25em; color: rgba(255,255,255,.3); }
.scroll-line { width: 1px; height: 2.5rem; background: linear-gradient(to bottom, var(--orange), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* ================================================================
   RESPONSIVE — Tablet (max 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   RESPONSIVE — Mobile (max 767px)
   ================================================================ */
@media (max-width: 767px) {
  /* Nav */
  .nav-links { display: none !important; }
  .mobile-nav-right { display: flex !important; }
  .hamburger { display: flex !important; }
  #navbar { padding: .5rem .75rem 0; width: 100%; }
  .nav-inner {
    max-width: 100%; margin: 0; border-radius: 9999px;
    padding: .375rem .375rem .375rem .875rem;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(8,8,8,0.78);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 1px 0 rgba(255,255,255,0.09) inset, 0 8px 28px rgba(0,0,0,0.55);
  }
  .nav-logo { font-size: .8125rem; flex-shrink: 0; gap: .4rem; }
  .nav-logo-img { height: 1.5rem; }

  /* Layout */
  main { padding: 2rem 1rem 1rem; }
  section { margin-bottom: 3rem; scroll-margin-top: 4.5rem; }
  .label { font-size: .75rem; margin-bottom: 1.25rem; }

  /* Buttons */
  .btn-primary, .btn-secondary { padding: .75rem 1.5rem; font-size: .8125rem; width: 100%; text-align: center; }

  /* About */
  #about h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  #about p:not(.label) { font-size: .875rem; }
  .about-grid { gap: 1.75rem; }
  .highlight-item { font-size: .8rem; padding: .75rem 1rem; }
  .impact-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .impact-value { font-size: 2rem; }
  .impact-card { padding: 1rem .75rem; }

  /* Vibe preview cards — stack on mobile */
  .vibe-preview-card { flex-direction: column; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
  .vibe-preview-title { font-size: 1.1rem; }
  .vibe-preview-desc { font-size: .825rem; }
  .vibe-preview-badge { font-size: .6rem; }
  /* CTA centred on mobile */
  .vibe-cta-row { justify-content: center; padding-right: 0; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 1.25rem; }
  .skill-card h3 { font-size: .9375rem; }

  /* Experience */
  .exp-card { padding: 1.25rem; }
  .exp-company-name { font-size: 1.15rem; }
  .exp-role { font-size: .8rem; }
  .exp-header { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: .5rem; }
  .exp-period { font-size: .7rem; padding: .3rem .75rem; }
  .exp-bullets li { font-size: .8rem; }

  /* Highlights */
  .highlights-grid { grid-template-columns: 1fr; }
  .hl-illustration { height: 110px; }
  .hl-body { padding: 0 1rem 1rem; gap: .3rem; }
  .hl-title { font-size: .9375rem; }
  .hl-desc { font-size: .8rem; }
  .hl-metric-value { font-size: 1.875rem; }

  /* Skills tags */
  #skills-section { padding: 1.25rem; border-radius: 1.25rem; }
  .tag { font-size: .7rem; padding: .4rem .8rem; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr; }
  .course-section-grid { grid-template-columns: 1fr; }
  .edu-card { padding: 1.25rem; }
  .edu-degree { font-size: .9375rem; }
  .course-item { font-size: .875rem; }

  /* Contact */
  #contact h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .contact-email { font-size: .8125rem; padding: .875rem 1.5rem; }

  /* Marquee */
  .marquee-wrap { margin-bottom: 3rem; }
  .marquee-item { font-size: .65rem; }

  /* Footer */
  footer p { font-size: .55rem; letter-spacing: .2em; }

  /* ── Mobile overflow containment ─────────────────────────── */
  html, body { overflow-x: hidden; max-width: 100%; }
  h1, h2, h3, h4 {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
  p, li { overflow-wrap: break-word; }
  img, video, iframe, embed { max-width: 100%; }
}

/* ================================================================
   RESPONSIVE — Small phones (max 400px)
   ================================================================ */
@media (max-width: 400px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  main { padding: 1.5rem .75rem 1rem; }
  .ai-tool { min-width: 4.75rem; font-size: .58rem; }
  html, body { overflow-x: hidden; max-width: 100%; }
  h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; max-width: 100%; }
}

/* ================================================================
   BLOG — Card grid (blogs/index.html)
   ================================================================ */
.blog-index-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}

.blog-header { margin-bottom: 3.5rem; }
.blog-header-label {
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--orange);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.blog-header-label::before { content: ''; width: 1.5rem; height: 1px; background: var(--orange); }

.blog-header-h1 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #1A1A1A;
  margin-bottom: 1rem;
}

.blog-header-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  color: rgba(26,26,26,0.6);
  line-height: 1.75;
  max-width: 38rem;
}

.blog-count {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(26,26,26,0.4);
  margin-top: 1.5rem;
}

/* Card grid — 2 columns desktop */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .4s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,93,26,.35);
  box-shadow: 0 20px 48px -12px rgba(0,0,0,.1), 0 0 0 1px rgba(232,93,26,.1);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.blog-card-top { flex: 1; display: flex; flex-direction: column; gap: .625rem; }

.blog-card-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .125rem; }
.blog-tag {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .2rem .6rem;
  border-radius: 9999px;
  background: rgba(232,93,26,.1);
  border: 1px solid rgba(232,93,26,.22);
  color: #E85D1A;
}

.blog-card-title {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #1A1A1A;
}

.blog-card-excerpt {
  font-family: 'Lora', Georgia, serif;
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(26,26,26,.6);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.07);
  font-family: var(--mono);
  font-size: .7rem;
  color: rgba(26,26,26,.45);
}
.blog-card-arrow {
  margin-left: auto;
  color: #E85D1A;
  font-size: .95rem;
  transition: transform .2s;
}
.blog-card:hover .blog-card-arrow { transform: translateX(5px); }

/* Empty state */
.blog-empty-msg {
  grid-column: 1 / -1;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: rgba(26,26,26,.45);
  text-align: center;
  padding: 4rem 0;
}

/* ================================================================
   BLOG — Individual post page
   ================================================================ */
.blog-post-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}
.blog-post-container {
  max-width: 48rem;
  display: flex; flex-direction: column; gap: 2.5rem;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(26,26,26,0.14);
  background: rgba(26,26,26,0.07);
  color: rgba(26,26,26,0.7);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: border-color .2s, color .2s;
}
.blog-back-link svg { width: .875rem; height: .875rem; stroke: currentColor; flex-shrink: 0; }
.blog-back-link:hover { border-color: rgba(232,93,26,.4); color: #1A1A1A; }

.blog-post-header { display: flex; flex-direction: column; gap: 1rem; }

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: rgba(26,26,26,.45);
}

.blog-post-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 5vw, 2.875rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #1A1A1A;
}

.blog-post-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.blog-post-tag {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .7rem;
  border-radius: 9999px;
  background: rgba(232,93,26,.1);
  border: 1px solid rgba(232,93,26,.22);
  color: #E85D1A;
}

.blog-post-cover-wrap { border-radius: 1rem; overflow: hidden; }
.blog-post-cover { width: 100%; height: auto; display: block; }

/* Post content typography */
.blog-post-content {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #1A1A1A;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  font-family: var(--font);
  letter-spacing: -.03em;
  line-height: 1.2;
  color: #1A1A1A;
  margin-top: .75rem;
}
.blog-post-content h1 { font-size: 1.875rem; font-weight: 800; }
.blog-post-content h2 { font-size: 1.5rem;   font-weight: 700; }
.blog-post-content h3 { font-size: 1.25rem;  font-weight: 700; }
.blog-post-content h4 { font-size: 1.0625rem; font-weight: 600; }
.blog-post-content p  { color: rgba(26,26,26,.82); }
.blog-post-content a  { color: #E85D1A; text-underline-offset: 3px; text-decoration: underline; }
.blog-post-content a:hover { opacity: .8; }
.blog-post-content strong { font-weight: 600; color: #1A1A1A; }
.blog-post-content em { font-style: italic; }
.blog-post-content ul,
.blog-post-content ol {
  padding-left: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.blog-post-content li { color: rgba(26,26,26,.82); }
.blog-post-content blockquote {
  border-left: 3px solid #E85D1A;
  padding: .875rem 1.25rem;
  background: rgba(232,93,26,.05);
  border-radius: 0 .5rem .5rem 0;
  font-style: italic;
  color: rgba(26,26,26,.7);
}
.blog-post-content code {
  font-family: var(--mono);
  font-size: .875em;
  background: rgba(0,0,0,.06);
  padding: .15em .4em;
  border-radius: .25rem;
  color: #E85D1A;
}
.blog-post-content pre {
  background: #1A1A1A;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}
.blog-post-content pre code {
  background: none;
  padding: 0;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  line-height: 1.7;
}
.blog-post-content img {
  width: 100%;
  height: auto;
  border-radius: .75rem;
}
.blog-post-content hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,.1);
}

.blog-post-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-post-share {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  color: inherit;
  text-decoration: none;
  font-family: inherit;
}

.blog-share-btn:hover { opacity: .7; }

.blog-share-linkedin { color: #0077B5; border-color: rgba(0,119,181,.25); background: rgba(0,119,181,.06); }

/* Back to Home pill — blog pages */
.blog-back-home {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(26,26,26,0.14);
  background: rgba(26,26,26,0.07);
  color: rgba(26,26,26,0.7);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: border-color .2s, color .2s;
}
.blog-back-home svg { width: .875rem; height: .875rem; stroke: currentColor; flex-shrink: 0; }
.blog-back-home:hover { border-color: rgba(232,93,26,.4); color: #1A1A1A; }

/* ── Blog responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
  .blog-index-main { padding: 7rem 1rem 4rem; }
  .blog-header-h1  { font-size: clamp(2rem, 8vw, 2.75rem); }
  .blog-grid       { grid-template-columns: 1fr; gap: 1rem; }
  .blog-card-link  { padding: 1.25rem; }
  .blog-card-title { font-size: 1.075rem; }
  .blog-post-main  { padding: 7rem 1rem 4rem; }
  .blog-post-container { max-width: 100%; }
  .blog-post-title { font-size: clamp(1.5rem, 7vw, 2.25rem); }
  .blog-post-content { font-size: 1rem; }
}

@media (max-width: 400px) {
  .blog-index-main { padding: 6rem .75rem 3rem; }
  .blog-back-home, .blog-back-link { width: 100%; justify-content: center; }
}
