/* =====================================================================
   Next-Level UI/UX Enhancements
   Additive polish layer — loaded last so it can refine the template.
   Works in both light and prefers-color-scheme: dark.
   ===================================================================== */

:root {
  --brand-1: #667eea;
  --brand-2: #764ba2;
  --brand-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(102,126,234,.12), rgba(118,75,162,.12));
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --shadow-sm: 0 4px 14px rgba(20,20,50,.08);
  --shadow-md: 0 14px 34px rgba(20,20,50,.14);
  --shadow-lg: 0 24px 60px rgba(20,20,50,.20);
}

/* ── Respect reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  /* WOW.js hides .wow elements inline (visibility:hidden) and reveals them via
     a scroll-triggered animation. Zeroing animation duration above can leave
     that reveal from ever completing, so reduced-motion users would see a
     mostly-blank page. Force every WOW/reveal element fully visible. */
  .wow,
  [class*="fadeIn"],
  [class*="flipIn"],
  [class*="zoomIn"],
  [class*="slideIn"] {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ── Scroll progress indicator ──────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand-grad);
  background-size: 200% 100%;
  z-index: 100000;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(102,126,234,.6);
}

/* ── Custom scrollbar ───────────────────────────────────── */
@media (pointer: fine) {
  html { scrollbar-width: thin; scrollbar-color: var(--brand-1) transparent; }
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--brand-grad);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
}

/* ── Hero: animated gradient + gradient title ───────────── */
#hero-area .overlay {
  background: linear-gradient(135deg, rgba(38,30,72,.78), rgba(102,126,234,.55), rgba(20,20,40,.82));
  background-size: 200% 200%;
  animation: heroShift 16s ease infinite;
}

@keyframes heroShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating ambient orbs behind hero content */
#hero-area .container { position: relative; z-index: 2; }
#hero-area::before,
#hero-area::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}
#hero-area::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #667eea, transparent 70%);
  top: 8%; left: -60px;
  animation: float1 14s var(--ease-out) infinite;
}
#hero-area::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #764ba2, transparent 70%);
  bottom: 6%; right: -40px;
  animation: float2 18s var(--ease-out) infinite;
}
@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(40px,30px); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-30px,-40px); }
}

.head-title {
  background: linear-gradient(120deg, #ffffff 0%, #d8d6ff 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

/* ── Hero role rotator caret ────────────────────────────── */
#role-rotator { white-space: nowrap; }
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: currentColor;
  opacity: .85;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ── Scroll-down cue ────────────────────────────────────── */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  animation: cueFloat 2.4s var(--ease-out) infinite;
}
.scroll-cue:hover { color: #fff; text-decoration: none; }
.scroll-cue-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue-wheel {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: currentColor;
  animation: cueWheel 1.6s var(--ease-out) infinite;
}
.scroll-cue-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
@keyframes cueWheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes cueFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}

/* ── Buttons: gradient + shine sweep + lift ─────────────── */
.btn-common {
  background: var(--brand-grad) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  box-shadow: 0 8px 20px rgba(102,126,234,.35);
  z-index: 0;
}
.btn-common::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease-out);
  z-index: -1;
}
.btn-common:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(102,126,234,.5);
}
.btn-common:hover::after { left: 130%; }

.btn-danger {
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(244,67,54,.4);
}

/* ── Section titles: animated underline accent ──────────── */
.section-title {
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  transform: translateX(-50%);
  background: var(--brand-grad);
}

/* ── Social icons: smooth pop ───────────────────────────── */
.social-icon li a {
  transition: transform .3s var(--ease-spring), background .3s ease, color .3s ease;
}
.social-icon li a:hover {
  transform: translateY(-4px) scale(1.12);
}

/* ── Cards: refined motion & glow ───────────────────────── */
.project-card,
.services-item,
.achievement-card,
.content-box,
.hobby-item {
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s ease !important;
  will-change: transform;
}
a.project-card:hover {
  transform: translateY(-10px) !important;
  border-color: var(--brand-1) !important;
  box-shadow: var(--shadow-lg) !important;
}
.services-item:hover,
.content-box:hover,
.achievement-card:hover {
  box-shadow: var(--shadow-md) !important;
}

/* Service icon gets a gradient halo on hover */
.services-item .icon { transition: transform .4s var(--ease-spring); }
.services-item:hover .icon { transform: translateY(-4px) scale(1.08); }

/* Featured project gradient card: subtle glow lift */
.project-highlight {
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.project-highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(102,126,234,.45);
}

/* ── Tags: interactive lift ─────────────────────────────── */
.skill-tag,
.tech-tag,
.project-tech-tag {
  transition: transform .25s var(--ease-spring), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.skill-tag:hover {
  transform: translateY(-2px);
  background: var(--brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 14px rgba(102,126,234,.35);
}
.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── Counter section pop ────────────────────────────────── */
.counterUp {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Back-to-top: smoother ──────────────────────────────── */
.back-to-top i {
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.back-to-top:hover i {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(102,126,234,.5);
}

/* ── Available badge: gentle pulse dot ──────────────────── */
.available-badge::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2e7d32;
  margin-right: 7px;
  vertical-align: middle;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,125,50,.5); }
  50%     { box-shadow: 0 0 0 5px rgba(46,125,50,0); }
}

/* ── Contact inputs: focus glow ─────────────────────────── */
.contact-block form .form-control {
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-block form .form-control:focus {
  border-color: var(--brand-1) !important;
  box-shadow: 0 0 0 4px rgba(102,126,234,.15) !important;
}

/* ── Theme toggle button ────────────────────────────────── */
.theme-toggle {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 99990;
  background: var(--brand-grad);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(102,126,234,.45);
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.theme-toggle:hover {
  transform: translateY(-4px) rotate(-12deg) scale(1.06);
  box-shadow: 0 14px 30px rgba(102,126,234,.6);
}
.theme-toggle:active { transform: scale(.94); }
.theme-toggle i { transition: transform .4s var(--ease-spring); }
.theme-toggle:hover i { transform: rotate(20deg); }

@media (max-width: 575px) {
  .theme-toggle { width: 42px; height: 42px; font-size: 16px; left: 16px; bottom: 16px; }
}

/* Dark theme surface for the toggle (sun icon reads warm) */
:root[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #f6c453, #f08c3a);
  box-shadow: 0 8px 22px rgba(240,140,58,.45);
}
:root[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 14px 30px rgba(240,140,58,.6);
}

@media print { .theme-toggle { display: none !important; } }

/* ── Dark-mode refinements for enhancement layer ─────────── */
:root[data-theme="dark"] {
  .tech-tag:hover { color: #fff !important; }
  #scroll-progress { box-shadow: 0 0 12px rgba(140,160,255,.7); }
  .counterUp {
    background: linear-gradient(135deg, #8ea2ff, #b98ad8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* =====================================================================
   Level-2 CSS Enhancements — appended
   ===================================================================== */

/* ── 1. Glassmorphism navbar on scroll ──────────────────── */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(102, 126, 234, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease,
              backdrop-filter 0.35s ease;
}

:root[data-theme="dark"] .navbar.scrolled {
  background: rgba(20, 20, 40, 0.82) !important;
  border-bottom-color: rgba(102, 126, 234, 0.18);
}

/* ── 2. Profile image animated glow frame ───────────────── */
.img-thumb {
  position: relative;
  z-index: 0;
}

.img-thumb::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  background: var(--brand-grad);
  z-index: -1;
  opacity: 0.4;
  animation: imgGlow 3s ease-in-out infinite;
}

@keyframes imgGlow {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.75; }
}

:root[data-theme="dark"] .img-thumb::after {
  opacity: 0.55;
  animation: imgGlowDark 3s ease-in-out infinite;
}

@keyframes imgGlowDark {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.85; }
}

/* ── 3. Project card "View Project →" hover overlay ────── */
a.project-card {
  position: relative;
  overflow: hidden;
}

/* Gradient top border on hover */
a.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 2;
}

a.project-card:hover::before {
  opacity: 1;
}

/* The bottom-right "View Project →" hover label was removed: it overlapped the
   purple "View Live Demo" overlay on hover. The "View Project" action now lives
   in the project modal popup (see enhancements.js block 50). */

/* ── 4. Dark mode preloader fix ─────────────────────────── */
:root[data-theme="dark"] #preloader {
  background: #1a1a2e;
}

:root[data-theme="dark"] #loader-1 {
  border-color: #2d3561;
  border-top-color: #667eea;
}

/* ── 5. Skill category glassmorphism cards ──────────────── */
.skill-category {
  background: rgba(102, 126, 234, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.skill-category:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.35);
  box-shadow: var(--shadow-md);
}

:root[data-theme="dark"] .skill-category {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.22);
}

/* ── 6. Counter item card styling ───────────────────────── */
.counter {
  border: 1px solid rgba(102, 126, 234, 0.18);
  border-radius: 14px;
  padding: 28px 20px;
  background: rgba(102, 126, 234, 0.04);
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.counter:hover {
  transform: translateY(-5px);
  border-color: var(--brand-1);
  box-shadow: var(--shadow-md);
}

:root[data-theme="dark"] .counter {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(80, 60, 140, 0.45);
}

/* ── 7. Cursor glow element ─────────────────────────────── */
@media (hover: hover) {
  #cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.09) 0%, transparent 70%);
    will-change: transform;
    transition: opacity 0.3s ease;
  }
}

/* ── 8. Hobby item card upgrade ─────────────────────────── */
.hobby-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.3s ease !important;
}

.hobby-item:hover {
  transform: scale(1.04) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(102, 126, 234, 0.25) !important;
}

:root[data-theme="dark"] .hobby-item {
  background: rgba(22, 33, 62, 0.8);
  border-color: rgba(45, 53, 97, 0.5);
}

/* ── 9. Hobby bounce micro-interaction ──────────────────── */
.hobby-bounce {
  animation: hobbyBounce 0.4s var(--ease-spring) !important;
}
@keyframes hobbyBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.10); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* ── 10. Hero "Open to Work" badge ─────────────────────── */
.hero-badge-wrap { margin-bottom: 22px; }
.hero-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.95);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.badge-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite; /* reuse existing pulseDot keyframe from main CSS */
}

/* ── 11. Hero outline "View Projects" secondary button ─── */
.btn-outline-hero {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.55) !important;
  color: rgba(255,255,255,0.92) !important;
  margin-left: 10px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-spring), color 0.3s ease !important;
}
.btn-outline-hero:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.85) !important;
  color: #fff !important;
  transform: translateY(-3px);
}

/* ── 12. "LIVE" badge on project cards ──────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-left: 7px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.live-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  flex-shrink: 0;
  animation: pulseDot 1.5s ease-in-out infinite;
}

/* ── 13. Services icon gradient circle backgrounds ──────── */
.services-item .icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--brand-grad-soft);
  border: 2px solid rgba(102,126,234,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.services-item .icon i {
  font-size: 30px;
  color: var(--brand-1);
  /* main.css makes this a 48x48 block with text-align:center, which centres the
     glyph horizontally but parks it at the top of the block. Flex-center the
     glyph so it sits dead-centre in the squircle, both axes. */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 1;
}
/* Hover: gradient fill */
.services-item:hover .icon {
  background: var(--brand-grad);
  border-color: transparent;
}
.services-item:hover .icon i {
  color: #fff;
}

/* ── 14. Wave SVG divider ───────────────────────────────── */
.wave-divider {
  overflow: hidden;
  line-height: 0;
  display: block;
  margin: 0;
  padding: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}
:root[data-theme="dark"] .wave-divider .wave-fill-light { fill: #16213e; }
:root[data-theme="dark"] .wave-divider .wave-fill-dark  { fill: #1a1a2e; }

/* ── 15. Active nav indicator (gradient underline) ──────── */
/* Active nav item gets a gradient underline */
.navbar .onepage-nev .nav-item.active > .nav-link,
.navbar .onepage-nev .nav-item > .nav-link.active {
  position: relative;
}
.navbar .onepage-nev .nav-item.active > .nav-link::after,
.navbar .onepage-nev .nav-item > .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 17px;
  right: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
  animation: navUnderlineIn 0.3s var(--ease-out) forwards;
}
@keyframes navUnderlineIn {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── 16. Service cards 3D tilt (CSS vars set by JS) ─────── */
.services-item {
  transform-style: preserve-3d;
  perspective: 600px;
}
/* JS sets --rx and --ry CSS variables for tilt */
.services-item.tilt-active {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px) !important;
  box-shadow: var(--shadow-md) !important;
  transition: transform 0.08s linear, box-shadow 0.3s ease !important;
}
.services-item:not(.tilt-active) {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out) !important;
}

/* ── Dark mode adjustments for new elements ─────────────── */
:root[data-theme="dark"] .services-item .icon {
  background: rgba(102,126,234,0.14);
  border-color: rgba(102,126,234,0.28);
}
:root[data-theme="dark"] .services-item:hover .icon {
  background: var(--brand-grad);
  border-color: transparent;
}

/* ── 17. Floating section nav dots ─────────────────────────── */
.section-nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.section-nav-dots li { list-style: none; margin: 0; padding: 0; }
.nav-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(102,126,234,0.28);
  border: 2px solid rgba(102,126,234,0.45);
  position: relative;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, border-color 0.3s ease;
}
.nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,20,40,0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(6px);
}
.nav-dot:hover::before { opacity: 1; }
.nav-dot:hover {
  transform: scale(1.35);
  background: var(--brand-1);
  border-color: var(--brand-1);
}
.nav-dot.active {
  background: var(--brand-1);
  border-color: var(--brand-1);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(102,126,234,0.6);
}
/* Hide on small screens — they have hamburger nav */
@media (max-width: 991px) { .section-nav-dots { display: none; } }

/* ── 18. Circular back-to-top progress ring ─────────────── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  text-decoration: none;
}
.progress-ring { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.progress-ring-track {
  fill: none;
  stroke: rgba(102,126,234,0.18);
  stroke-width: 2.5;
}
.progress-ring-fill {
  fill: none;
  stroke: url(#ring-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0.1s linear;
}
.back-to-top i {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--brand-1);
  transition: transform 0.3s var(--ease-spring);
}
.back-to-top:hover i { transform: translateY(-3px); }
/* background circle behind the icon */
.back-to-top::before {
  content: "";
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-grad-soft);
  border: 1px solid rgba(102,126,234,0.25);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.back-to-top:hover::before {
  background: var(--brand-grad);
  border-color: transparent;
}
.back-to-top:hover i { color: #fff; }

/* ── 19. About section metrics chips ────────────────────── */
.about-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}
.metric-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--brand-grad-soft);
  border: 1px solid rgba(102,126,234,0.2);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 72px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}
.metric-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-1);
}
.metric-num {
  font-size: 22px;
  font-weight: 700;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.metric-label {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 2px;
}
:root[data-theme="dark"] .metric-chip {
  background: rgba(102,126,234,0.1);
  border-color: rgba(102,126,234,0.25);
}
:root[data-theme="dark"] .metric-label { color: #aaa; }

/* ── 20. Contact response time badge ────────────────────── */
.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 20px;
}
.response-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2e7d32;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}
:root[data-theme="dark"] .response-badge {
  background: #1b3a2d;
  border-color: #2e5c3e;
  color: #81c784;
}

/* ── 21. Footer wave + enhanced styling ─────────────────── */
.footer-wave {
  overflow: hidden;
  line-height: 0;
  display: block;
  margin-bottom: -2px;
}
.footer-wave svg { display: block; width: 100%; height: 50px; }

.footer-area {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}
.footer-area .footer-text p,
.footer-area .footer-text p a { color: rgba(255,255,255,0.65) !important; }
.footer-area .footer-text p a:hover { color: rgba(255,255,255,0.9) !important; }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-bottom: 4px;
}
.footer-built-with {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.footer-heart { color: #f06292; animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14%     { transform: scale(1.3); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.2); }
}
/* Social icons in dark footer stay visible */
.footer-area .social-icon li a {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.8) !important;
}
.footer-area .social-icon li a:hover {
  background: var(--brand-1) !important;
  color: #fff !important;
}

/* Light mode footer: use dark gradient */
:root[data-theme="dark"] .footer-area {
  background: linear-gradient(135deg, #0d0d1a 0%, #111827 100%) !important;
}

/* ── 22. Section decorative background number ────────────── */
.section-title[data-num]::before {
  content: attr(data-num);
  position: absolute;
  right: 0;
  top: -28px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(102,126,234,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
}
/* .section-title already has position:relative from earlier rule — we just add ::before */

/* ── 23. Branded preloader ───────────────────────────────── */
#preloader {
  flex-direction: column;
  gap: 20px;
  background: #fff;
}
:root[data-theme="dark"] #preloader { background: #1a1a2e; }

.preloader-inner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-ring {
  position: absolute;
  top: 0; left: 0;
  transform: rotate(-90deg);
}
.preloader-track {
  fill: none;
  stroke: rgba(102,126,234,0.15);
  stroke-width: 3;
}
.preloader-spin {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  animation: plDraw 1.4s ease-in-out infinite;
}
@keyframes plDraw {
  0%   { stroke-dashoffset: 201; opacity: 0.4; }
  50%  { stroke-dashoffset: 0;   opacity: 1;   }
  100% { stroke-dashoffset:-201; opacity: 0.4; }
}
.preloader-monogram {
  font-size: 22px;
  font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
}
.preloader-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(102,126,234,0.55);
  margin: 0;
}

/* ── 24. Project card colour accents ────────────────────── */
a.project-card { border-top: 3px solid #e0e0e0 !important; }
a.project-card[data-accent="blue"]   { border-top-color: #2196F3 !important; }
a.project-card[data-accent="red"]    { border-top-color: #F44336 !important; }
a.project-card[data-accent="purple"] { border-top-color: #9C27B0 !important; }
a.project-card[data-accent="teal"]   { border-top-color: #00BCD4 !important; }
a.project-card[data-accent="amber"]  { border-top-color: #FF9800 !important; }
a.project-card[data-accent="green"]  { border-top-color: #4CAF50 !important; }

/* icon color matches accent on hover */
a.project-card[data-accent="blue"]:hover   .icon-lg { color: #2196F3 !important; }
a.project-card[data-accent="red"]:hover    .icon-lg { color: #F44336 !important; }
a.project-card[data-accent="purple"]:hover .icon-lg { color: #9C27B0 !important; }
a.project-card[data-accent="teal"]:hover   .icon-lg { color: #00BCD4 !important; }
a.project-card[data-accent="amber"]:hover  .icon-lg { color: #FF9800 !important; }
a.project-card[data-accent="green"]:hover  .icon-lg { color: #4CAF50 !important; }

:root[data-theme="dark"] a.project-card { border-top-width: 3px !important; }

/* ── 25. Smooth theme transition ────────────────────────── */
body,
.navbar,
.services-item,
.achievement-card,
.content-box,
.skill-category,
.hobby-item,
.counter,
.timeline li .content-text,
.contact-form-area,
.footer-area {
  transition: background-color 0.45s ease, border-color 0.35s ease, color 0.3s ease !important;
}
/* Don't let theme transition fight hover transitions on cards — re-declare hover to override */
a.project-card:hover,
.services-item:hover,
.hobby-item:hover,
.counter:hover,
.skill-category:hover {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease !important;
}

/* ── 26. Profile image parallax vars ────────────────────── */
.img-thumb img {
  transition: transform 0.15s ease !important;
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.01);
}
.img-thumb:not(:hover) img {
  transform: translate(0, 0) scale(1);
  transition: transform 0.6s var(--ease-out) !important;
}

/* ── 27. Featured project action buttons ─────────────────── */
.project-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-project-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.45);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-spring);
  backdrop-filter: blur(8px);
}
.btn-project-github:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none !important;
}

/* ── 28. Keyboard shortcut toast ────────────────────────── */
#shortcut-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(20,20,40,0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-spring);
  z-index: 99999;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
#shortcut-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 29. Timeline "CURRENT" job badge ───────────────────────────────── */
.current-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
  position: relative;
  top: -1px;
}
.current-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  flex-shrink: 0;
  animation: pulseDot 1.5s ease-in-out infinite;
}

.gsoc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 8px;
  position: relative;
  top: -1px;
}

/* ── 30. Timeline date pill styling ─────────────────────────────────── */
.timeline .content-text span {
  display: inline-block !important;
  background: var(--brand-grad-soft);
  border: 1px solid rgba(102,126,234,0.2);
  color: var(--brand-1) !important;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  margin-bottom: 10px !important;
  margin-top: 6px !important;
}
:root[data-theme="dark"] .timeline .content-text span {
  background: rgba(102,126,234,0.12) !important;
  border-color: rgba(102,126,234,0.28) !important;
  color: #9ab0f9 !important;
}

/* ── 31. Contact form char counter ──────────────────────────────────── */
.char-counter {
  text-align: right;
  font-size: 11px;
  color: #aaa;
  margin-top: -8px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.char-counter.warn { color: #ff9800; }
.char-counter.limit { color: #f44336; }
#charCount { font-weight: 700; }

/* ── 32. Contact form submit loading state ───────────────────────────── */
#contactForm.submitting button[type="submit"] {
  opacity: 0.75;
  pointer-events: none;
  position: relative;
}
#contactForm.submitting button[type="submit"]::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

/* ── 33. Footer quick navigation ────────────────────────────────────── */
.footer-quick-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-quick-nav a {
  color: rgba(255,255,255,0.5) !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease !important;
  letter-spacing: 0.3px;
}
.footer-quick-nav a:hover {
  color: rgba(255,255,255,0.9) !important;
  border-color: rgba(102,126,234,0.45);
  background: rgba(102,126,234,0.12);
  text-decoration: none !important;
}
.footer-built-credit {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-top: 6px;
}
.footer-built-credit a {
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none !important;
}
.footer-built-credit a:hover {
  color: rgba(255,255,255,0.75) !important;
}

/* ── 34. Hero parallax background ───────────────────────────────────── */
.hero-area-bg {
  will-change: background-position;
  background-attachment: local; /* JS updates backgroundPositionY */
}

/* ── 35. Timeline connector line highlight on active item ─────────────── */
.timeline > li:first-child + li .content-text {
  border-left: 3px solid var(--brand-1);
  padding-left: 12px;
  border-radius: 0 4px 4px 0;
}

/* ── 36. Project filter tabs ────────────────────────────── */
.project-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  background: transparent;
  border: 2px solid rgba(102,126,234,0.25);
  color: #666;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 24px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.25s var(--ease-spring), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 22px;
}
.filter-btn:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.filter-btn.active {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(102,126,234,0.4);
}
.filter-count {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: middle;
}
.filter-btn:not(.active) .filter-count {
  background: rgba(102,126,234,0.12);
  color: var(--brand-1);
}
:root[data-theme="dark"] .filter-btn {
  color: #bbb;
  border-color: rgba(102,126,234,0.3);
}
:root[data-theme="dark"] .filter-btn:hover { color: #d8d8ff; }

/* ── 37. Project card filter transitions ────────────────── */
.project-card-wrap {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-card-wrap.card-hiding {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}
.project-card-wrap.card-hidden {
  display: none;
}
.project-card-wrap.card-showing {
  animation: cardReveal 0.35s var(--ease-spring) both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
/* No-results message */
.no-projects-msg {
  text-align: center;
  color: #aaa;
  padding: 40px 0;
  font-size: 15px;
  width: 100%;
  display: none;
}
.no-projects-msg.visible { display: block; }

/* ── 38. Skill proficiency tier label ───────────────────── */
.skill-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.skill-category-header h3 { margin-bottom: 0; }
.proficiency-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.proficiency-badge.expert {
  background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
  color: var(--brand-1);
  border: 1px solid rgba(102,126,234,0.25);
}
.proficiency-badge.proficient {
  background: rgba(76,175,80,0.1);
  color: #2e7d32;
  border: 1px solid rgba(76,175,80,0.2);
}
.proficiency-badge.learning {
  background: rgba(255,152,0,0.1);
  color: #e65100;
  border: 1px solid rgba(255,152,0,0.2);
}
:root[data-theme="dark"] .proficiency-badge.expert  { background: rgba(102,126,234,0.18); color: #9ab0f9; }
:root[data-theme="dark"] .proficiency-badge.proficient { background: rgba(76,175,80,0.15); color: #81c784; border-color: rgba(76,175,80,0.3); }
:root[data-theme="dark"] .proficiency-badge.learning  { background: rgba(255,152,0,0.12); color: #ffb74d; border-color: rgba(255,152,0,0.3); }

/* ── 39. Currently Exploring strip ──────────────────────── */
.currently-exploring {
  margin-top: 32px;
  padding: 18px 24px;
  background: var(--brand-grad-soft);
  border: 1px solid rgba(102,126,234,0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.exploring-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-1);
  white-space: nowrap;
}
.exploring-label i { margin-right: 5px; }
.exploring-tag {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(102,126,234,0.2);
  color: #555;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  display: inline-block;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.exploring-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .currently-exploring {
  background: rgba(102,126,234,0.08);
  border-color: rgba(102,126,234,0.22);
}
:root[data-theme="dark"] .exploring-tag {
  background: rgba(255,255,255,0.06);
  border-color: rgba(102,126,234,0.25);
  color: #ccc;
}

/* ── 40. About professional tagline ─────────────────────── */
.about-tagline {
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--brand-1);
  margin-bottom: 16px !important;
  line-height: 1.5;
}
:root[data-theme="dark"] .about-tagline { color: #9ab0f9; }

/* ── 41. Timeline section titles gradient text ───────────── */
.timelin-title {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
:root[data-theme="dark"] .timelin-title {
  background: linear-gradient(135deg, #8ea2ff, #c4a0e8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 42. Section heading animated underline ─────────────────────────── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 3px;
  background: var(--brand-grad);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.5s var(--ease-spring);
}
.section-title.heading-visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── 43. Counter count-up highlight ─────────────────────── */
.counter-num {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  display: inline-block;
  /* Gradient-clipped text needs headroom or the glyph bottoms get cut off */
  line-height: 1.25;
  padding-bottom: 0.12em;
  transition: transform 0.3s var(--ease-spring);
}
.counter-num.counting {
  transform: scale(1.08);
}

/* ── 44. Project card hover overlay ─────────────────────── */
a.project-card {
  overflow: hidden;
}
.project-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-spring);
  letter-spacing: 0.5px;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}
.project-card-overlay i { margin-right: 5px; }
/* Use :focus-visible (keyboard focus) rather than :focus so the overlay does not
   stay stuck on the card after the project modal closes and returns focus to it
   via mouse — while still revealing it for keyboard users tabbing through. */
a.project-card:hover .project-card-overlay,
a.project-card:focus-visible .project-card-overlay {
  transform: translateY(0);
}

/* ── 45. Hamburger → X animation ────────────────────────── */
.navbar-toggler {
  position: relative;
  border: none !important;
  background: transparent !important;
  padding: 6px 4px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: transform 0.3s ease;
}
.navbar-toggler .icon-menu {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-1);
  border-radius: 2px;
  margin: 5px 0;
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.2s ease;
}
.navbar-toggler .navbar-toggler-icon { display: none; }
.navbar-toggler.open .icon-menu:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.open .icon-menu:nth-child(3) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-toggler.open .icon-menu:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}
:root[data-theme="dark"] .navbar-toggler .icon-menu { background: #9ab0f9; }

/* ── 46. Service card icon bounce ────────────────────────── */
.services-item:hover .icon-wrap i,
.services-item:hover .services-icon {
  animation: iconBounce 0.5s var(--ease-spring);
}
@keyframes iconBounce {
  0%  { transform: scale(1); }
  40% { transform: scale(1.3); }
  70% { transform: scale(0.9); }
  100%{ transform: scale(1); }
}

/* ── 47. Hero name gradient shimmer ─────────────────────── */
.hero-name {
  background: linear-gradient(
    110deg,
    #fff 0%,
    #fff 30%,
    var(--brand-1) 45%,
    #c4b5fd 55%,
    #fff 70%,
    #fff 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nameShimmer 4s ease-in-out infinite;
  animation-delay: 1.8s;
}
@keyframes nameShimmer {
  0%   { background-position: 200% center; }
  60%  { background-position: -50% center; }
  100% { background-position: -50% center; }
}
:root[data-theme="dark"] .hero-name {
  background-image: linear-gradient(
    110deg,
    #e2e8ff 0%,
    #e2e8ff 30%,
    #a5b4fc 45%,
    #c4b5fd 55%,
    #e2e8ff 70%,
    #e2e8ff 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── 48. Achievement card hover spotlight ───────────────── */
.achievement-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease !important;
}
.achievement-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(102,126,234,0.14) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}
.achievement-card:hover::before { opacity: 1; }
.achievement-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-lg) !important;
}
.achievement-card > * { position: relative; z-index: 1; }
:root[data-theme="dark"] .achievement-card::before {
  background: radial-gradient(circle, rgba(165,180,252,0.12) 0%, transparent 70%);
}

/* ── 49. Social icon brand colour hover ─────────────────── */
.social-icon li a {
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icon li a.github:hover  {
  background: #24292e !important;
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 8px 20px rgba(36,41,46,0.35);
}
.social-icon li a.linkedin:hover {
  background: #0077b5 !important;
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 8px 20px rgba(0,119,181,0.35);
}
.social-icon li a.stackoverflow:hover {
  background: #f48024 !important;
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 8px 20px rgba(244,128,36,0.35);
}
.social-icon li a:hover i { color: #fff !important; }

/* ── 50. Contact section decorative accent ──────────────── */
#contact {
  position: relative;
  overflow: hidden;
}
#contact::before,
#contact::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
#contact::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(102,126,234,0.07) 0%, transparent 70%);
  top: -80px; right: -80px;
}
#contact::after {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(118,75,162,0.06) 0%, transparent 70%);
  bottom: -40px; left: -40px;
}
#contact .container { position: relative; z-index: 1; }
.contact-block h2,
.footer-right-area h2 {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 20px;
}

/* ── 51. Theme toggle icon animated swap ────────────────── */
.theme-toggle {
  position: relative;
  overflow: hidden;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon-toggle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}
.theme-toggle .icon-moon-toggle {
  opacity: 1;
}
.theme-toggle .icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}
:root[data-theme="dark"] .theme-toggle .icon-moon-toggle {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* ── 52. Skill tag glow hover ────────────────────────────── */
.skill-tag {
  transition: background 0.25s ease, color 0.25s ease,
              transform 0.25s var(--ease-spring), box-shadow 0.25s ease !important;
}
.skill-tag:hover {
  background: var(--brand-grad) !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(102,126,234,0.35);
}

/* ── 53. Timeline entry stagger reveal ──────────────────── */
ul.timeline li .content-text {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-spring);
}
ul.timeline li .content-text.tl-visible {
  opacity: 1;
  transform: translateX(0);
}
/* Education col slides from left, Experience col from right */
.experience ul.timeline li .content-text {
  transform: translateX(28px);
}
.experience ul.timeline li .content-text.tl-visible {
  transform: translateX(0);
}
/* Timeline vertical connector pulse on load */
ul.timeline::before {
  transition: background 0.5s ease;
}

/* ── 54. Hobby card glass upgrade ───────────────────────── */
.hobby-item {
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(102,126,234,0.12);
  border-radius: 16px;
  padding: 28px 20px 24px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.hobby-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-spring);
}
.hobby-item:hover::before { transform: scaleX(1); }
.hobby-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(102,126,234,0.3);
}
.hobby-item .hobby-icon {
  transition: transform 0.4s var(--ease-spring);
}
.hobby-item:hover .hobby-icon {
  transform: scale(1.15) rotate(-5deg);
}
.hobby-item h4 {
  margin: 12px 0 8px;
  font-weight: 700;
}
.hobby-item p { font-size: 14px; color: #666; margin: 0; }
:root[data-theme="dark"] .hobby-item {
  background: rgba(30,30,60,0.7) !important;
  border-color: rgba(102,126,234,0.2);
}
:root[data-theme="dark"] .hobby-item p { color: #aaa; }

/* ── 55. Contact form success animation ─────────────────── */
.form-success-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  gap: 14px;
  animation: fadeInScale 0.5s var(--ease-spring) both;
}
.form-success-wrap.visible { display: flex; }
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.checkmark-svg circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #4caf50;
  fill: none;
  animation: strokeIn 0.6s var(--ease-out) forwards;
}
.checkmark-svg path {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #4caf50;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  animation: strokeIn 0.4s var(--ease-out) 0.5s forwards;
}
@keyframes strokeIn { to { stroke-dashoffset: 0; } }
.form-success-msg {
  font-size: 16px;
  font-weight: 600;
  color: #2e7d32;
}
:root[data-theme="dark"] .form-success-msg { color: #81c784; }

/* ── 56. Hero stats strip ────────────────────────────────── */
.hero-stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.5px;
  margin-top: 3px;
  text-transform: uppercase;
}
@media (max-width: 576px) {
  .hero-stat { padding: 6px 14px; }
  .hero-stat-num { font-size: 18px; }
}

/* ── 57. Form input focus glow ───────────────────────────── */
#contactForm .form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
#contactForm .form-control:focus {
  border-color: var(--brand-1) !important;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.18) !important;
  outline: none !important;
}
:root[data-theme="dark"] #contactForm .form-control:focus {
  box-shadow: 0 0 0 3px rgba(102,126,234,0.28) !important;
}

/* ── 58. Hero floating terminal window ──────────────────────── */
.hero-terminal {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  width: 310px;
  background: rgba(15, 15, 25, 0.88);
  border: 1px solid rgba(102,126,234,0.3);
  border-radius: 12px;
  padding: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(102,126,234,0.15);
  z-index: 3;
  animation: terminalFloat 6s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-terminal.visible { opacity: 1; }
@keyframes terminalFloat {
  0%,100% { transform: translateY(-50%) translateY(0); }
  50%      { transform: translateY(-50%) translateY(-8px); }
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #28ca41; }
.terminal-title {
  font-family: monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 6px;
}
.terminal-body {
  padding: 14px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #a8b4e0;
  min-height: 180px;
  white-space: pre;
  overflow: hidden;
}
.terminal-body .t-cmd  { color: #7ee787; }
.terminal-body .t-key  { color: #79c0ff; }
.terminal-body .t-str  { color: #a5d6ff; }
.terminal-body .t-bool { color: #ff7b72; }
.terminal-body .t-comment { color: rgba(255,255,255,0.28); }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #7ee787;
  vertical-align: text-bottom;
  animation: termCursor 1s steps(1) infinite;
}
@keyframes termCursor { 50% { opacity: 0; } }
/* Hide on tablet/mobile — hero is single column there */
@media (max-width: 1100px) { .hero-terminal { display: none; } }
/* Shift center content left to make room on large screens */
@media (min-width: 1101px) {
  .hero-area-bg .contents { margin-right: 340px; }
}

/* ── 59. Counter section visual upgrade ─────────────────── */
.counter-section {
  position: relative;
  background: linear-gradient(135deg, rgba(102,126,234,0.06) 0%, rgba(118,75,162,0.06) 100%) !important;
  overflow: hidden;
}
.counter-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(102,126,234,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(118,75,162,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.counter-section .container { position: relative; z-index: 1; }
.counter .icon {
  background: var(--brand-grad-soft);
  border: 1px solid rgba(102,126,234,0.18);
  border-radius: 50%;
  width: 72px; height: 72px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.counter:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(102,126,234,0.25);
}
.counter .icon i { font-size: 22px; color: var(--brand-1); }
.work-counter-widget p {
  font-size: 13px;
  letter-spacing: 0.3px;
  color: #888;
  margin-top: 6px;
}
:root[data-theme="dark"] .counter .icon {
  background: rgba(102,126,234,0.12);
  border-color: rgba(102,126,234,0.25);
}

/* ── 60. Nav dot active pulse ring ──────────────────────── */
.section-nav-dots .nav-dot {
  position: relative;
}
.section-nav-dots .nav-dot.active::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--brand-1);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0.8;
  animation: dotPulseRing 1.8s ease-out infinite;
}
@keyframes dotPulseRing {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

/* ── 61. Timeline date span enhancement ─────────────────── */
.content-text > span:first-of-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  border: 1px solid rgba(102,126,234,0.18);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
:root[data-theme="dark"] .content-text > span:first-of-type {
  background: rgba(102,126,234,0.1);
  border-color: rgba(102,126,234,0.25);
  color: #9ab0f9;
}

/* ── 62. Mobile layout polish ────────────────────────────── */
@media (max-width: 768px) {
  .project-filter-tabs { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 6px 14px; }
  .hero-stats-strip { gap: 0; margin-top: 18px; }
  .hero-stat { padding: 4px 12px; }
  .hero-stat-num { font-size: 18px; }
  .about-metrics { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .metric-chip { min-width: 70px; }
  .currently-exploring { flex-direction: column; align-items: flex-start; gap: 8px; }
  a.project-card { margin-bottom: 16px; }
}
@media (max-width: 480px) {
  .section-nav-dots { display: none; }
  .hero-badge-wrap { margin-bottom: 8px; }
}

/* ── 63. Services card gradient icon + colour accent ─────── */
.services-item {
  border-top: 3px solid transparent;
  border-radius: 0 0 12px 12px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease !important;
  position: relative;
  overflow: visible;
}
/* Numbered corner badge */
.services-item .svc-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(102,126,234,0.3);
  letter-spacing: 1px;
  font-family: monospace;
}
/* Icon container gradient pill */
.services-item .icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.services-item:hover .icon {
  transform: translateY(-4px) scale(1.1);
}
/* Per-card accent colours — nth-child on the column wrapper */
#services .row > div:nth-child(1) .services-item { border-top-color: #2196F3; }
#services .row > div:nth-child(1) .services-item .icon {
  background: linear-gradient(135deg, rgba(33,150,243,0.15), rgba(33,150,243,0.06));
  box-shadow: 0 4px 16px rgba(33,150,243,0.18);
}
#services .row > div:nth-child(1) .services-item:hover .icon { box-shadow: 0 8px 24px rgba(33,150,243,0.3); }

#services .row > div:nth-child(2) .services-item { border-top-color: #9c27b0; }
#services .row > div:nth-child(2) .services-item .icon {
  background: linear-gradient(135deg, rgba(156,39,176,0.15), rgba(156,39,176,0.06));
  box-shadow: 0 4px 16px rgba(156,39,176,0.18);
}
#services .row > div:nth-child(2) .services-item:hover .icon { box-shadow: 0 8px 24px rgba(156,39,176,0.3); }

#services .row > div:nth-child(3) .services-item { border-top-color: #ff9800; }
#services .row > div:nth-child(3) .services-item .icon {
  background: linear-gradient(135deg, rgba(255,152,0,0.15), rgba(255,152,0,0.06));
  box-shadow: 0 4px 16px rgba(255,152,0,0.18);
}
#services .row > div:nth-child(3) .services-item:hover .icon { box-shadow: 0 8px 24px rgba(255,152,0,0.3); }

#services .row > div:nth-child(4) .services-item { border-top-color: #4caf50; }
#services .row > div:nth-child(4) .services-item .icon {
  background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.06));
  box-shadow: 0 4px 16px rgba(76,175,80,0.18);
}
#services .row > div:nth-child(4) .services-item:hover .icon { box-shadow: 0 8px 24px rgba(76,175,80,0.3); }

/* ── 64. Achievement confetti canvas ────────────────────── */
#achievement-confetti {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  /* Behind the section content so falling confetti can't cover/clip the title
     badge or cards — it stays a background sparkle. */
  z-index: 0;
}
#achievements { position: relative; }
#achievements .container { position: relative; z-index: 1; }

/* ── 65. Keyboard shortcuts overlay ─────────────────────── */
#kbd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.75);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#kbd-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.kbd-overlay-panel {
  background: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  min-width: 340px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-spring);
}
#kbd-overlay.visible .kbd-overlay-panel { transform: scale(1); }
.kbd-overlay-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kbd-overlay-panel h3 span { font-size: 12px; color: #aaa; font-weight: 400; }
.kbd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.kbd-row:last-child { border-bottom: none; }
.kbd-desc { font-size: 13px; color: #555; }
.kbd-key {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  background: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 3px 10px;
  color: #333;
  box-shadow: 0 2px 0 #ccc;
}
:root[data-theme="dark"] .kbd-overlay-panel {
  background: #1a1a2e;
  border: 1px solid rgba(102,126,234,0.2);
}
:root[data-theme="dark"] .kbd-overlay-panel h3 { color: #e2e8ff; }
:root[data-theme="dark"] .kbd-desc { color: #aaa; }
:root[data-theme="dark"] .kbd-key {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #ddd;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
/* Hint tooltip */
.kbd-hint-tip {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.4);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 50;
  white-space: nowrap;
}
.kbd-hint-tip.show { opacity: 1; }

/* ── 66. Download resume button ─────────────────────────── */
a[download].btn-common {
  position: relative;
}
a[download].btn-common i {
  display: inline-block;
  transition: transform 0.35s var(--ease-spring);
}
a[download].btn-common:hover i {
  transform: translateY(3px);
  animation: downloadBounce 0.6s var(--ease-spring) infinite alternate;
}
@keyframes downloadBounce {
  from { transform: translateY(0); }
  to   { transform: translateY(5px); }
}

/* ── 67. Brand text selection color ─────────────────────── */
::selection {
  background: rgba(102,126,234,0.22);
  color: inherit;
}
::-moz-selection {
  background: rgba(102,126,234,0.22);
  color: inherit;
}

/* ── 68. Services checklist stagger ─────────────────────── */
.services-checklist li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}
.services-checklist.cl-visible li:nth-child(1) { transition-delay: 0.05s; }
.services-checklist.cl-visible li:nth-child(2) { transition-delay: 0.15s; }
.services-checklist.cl-visible li:nth-child(3) { transition-delay: 0.25s; }
.services-checklist.cl-visible li {
  opacity: 1;
  transform: translateX(0);
}

/* ── 69. Back-to-top % readout ───────────────────────────── */
.back-to-top {
  position: relative;
  overflow: visible;
}
.btt-pct {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-1);
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(102,126,234,0.2);
  border-radius: 8px;
  padding: 1px 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(4px);
  box-shadow: var(--shadow-sm);
}
.back-to-top:hover .btt-pct,
.back-to-top:focus .btt-pct {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
:root[data-theme="dark"] .btt-pct {
  background: rgba(30,30,60,0.95);
  border-color: rgba(102,126,234,0.3);
  color: #9ab0f9;
}

/* ── 70. Hero click ripple ───────────────────────────────── */
.hero-click-ripple {
  position: absolute;
  border-radius: 50%;
  width: 0;
  height: 0;
  border: 2px solid rgba(165,180,252,0.7);
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
  animation: heroClickRipple 0.75s ease-out forwards;
}
.hero-click-ripple.ring2 {
  animation-delay: 0.12s;
  border-color: rgba(165,180,252,0.4);
}
@keyframes heroClickRipple {
  from { width: 0; height: 0; opacity: 1; }
  to   { width: 240px; height: 240px; opacity: 0; }
}

/* ── 71. Welcome availability toast ─────────────────────── */
#welcome-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #fff;
  border: 1px solid rgba(102,126,234,0.18);
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 14px 20px 14px 16px;
  box-shadow: var(--shadow-md);
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 310px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
  pointer-events: none;
}
#welcome-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.toast-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: pulseDot 1.5s ease-in-out infinite;
}
.toast-text { font-size: 13px; line-height: 1.5; }
.toast-text strong { display: block; font-size: 14px; font-weight: 700; color: #111; }
.toast-text span { color: #666; font-size: 12px; }
.toast-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 14px;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s ease;
}
.toast-close:hover { color: #555; }
:root[data-theme="dark"] #welcome-toast {
  background: #1a1a2e;
  border-color: rgba(102,126,234,0.25);
  border-left-color: #10b981;
}
:root[data-theme="dark"] .toast-text strong { color: #e2e8ff; }

/* ── 72. Custom precision cursor — DISABLED, native cursor restored ──────── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: auto !important; }
  a, button, [role="button"], .filter-btn, .nav-dot, label { cursor: pointer !important; }

  #cursor-dot {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--brand-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
    will-change: left, top;
  }
  #cursor-ring {
    position: fixed;
    width: 32px; height: 32px;
    border: 2px solid rgba(102,126,234,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease, top 0.12s ease,
                width 0.3s var(--ease-spring), height 0.3s var(--ease-spring),
                border-color 0.3s ease, opacity 0.3s ease;
    will-change: left, top;
  }
  /* Hover state — ring expands, dot shrinks */
  body.cursor-hover #cursor-ring {
    width: 48px; height: 48px;
    border-color: rgba(102,126,234,0.7);
    background: rgba(102,126,234,0.06);
  }
  body.cursor-hover #cursor-dot {
    width: 4px; height: 4px;
    background: var(--brand-2);
  }
  /* Click state */
  body.cursor-click #cursor-ring {
    width: 20px; height: 20px;
    border-color: var(--brand-1);
  }
  /* Hide when leaving window */
  #cursor-dot.hidden, #cursor-ring.hidden { opacity: 0; }
}

/* ── 73. Floating label inputs ───────────────────────────── */
.form-float-group {
  position: relative;
  padding-top: 14px;
  margin-bottom: 4px;
}
.float-label {
  position: absolute;
  left: 14px;
  top: 26px;
  font-size: 14px;
  /* #6b6f76 = 5:1 on white (was #999 / 2.85:1, below WCAG AA). The floated and
     valid states keep their own (higher-specificity) colors; dark mode restores
     a lighter resting tone just below. */
  color: #6b6f76;
  pointer-events: none;
  transition: top 0.22s ease, font-size 0.22s ease, color 0.22s ease, background 0.22s ease;
  padding: 0 4px;
  margin: 0;
  font-weight: 400;
  z-index: 2;
  background: transparent;
  line-height: 1;
}
/* Dark mode: lighter resting label (the darkened light-mode value would be too
   dim on the dark input). #b6b6b6 ≈ 7:1 on the dark field. */
:root[data-theme="dark"] .float-label {
  color: #b6b6b6;
}
/* Float up on focus or when value exists */
.form-control:focus ~ .float-label,
.form-control:not(:placeholder-shown) ~ .float-label {
  top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-1);
  background: #fff;
}
:root[data-theme="dark"] .form-control:focus ~ .float-label,
:root[data-theme="dark"] .form-control:not(:placeholder-shown) ~ .float-label {
  background: #1a1a2e;
}
/* Remove native placeholder while floating label is active */
.form-float-group .form-control::placeholder {
  color: transparent;
}
.form-float-group .form-control:focus::placeholder {
  color: transparent;
}
/* Valid state green accent */
.form-float-group .form-control:valid:not(:placeholder-shown) ~ .float-label {
  color: #10b981;
}

/* ── 74. Navbar scroll direction hide/reveal ─────────────── */
.navbar {
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease !important;
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
/* Always show at very top of page */
.navbar.at-top { transform: translateY(0) !important; }

/* ── 75. Achievement list item stagger ──────────────────── */
.achievement-card .list-item {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}
.achievement-card.items-visible .list-item:nth-child(1)  { transition-delay: 0.05s; }
.achievement-card.items-visible .list-item:nth-child(2)  { transition-delay: 0.12s; }
.achievement-card.items-visible .list-item:nth-child(3)  { transition-delay: 0.19s; }
.achievement-card.items-visible .list-item:nth-child(4)  { transition-delay: 0.26s; }
.achievement-card.items-visible .list-item:nth-child(5)  { transition-delay: 0.33s; }
.achievement-card.items-visible .list-item:nth-child(6)  { transition-delay: 0.40s; }
.achievement-card.items-visible .list-item {
  opacity: 1;
  transform: translateX(0);
}

/* ── 76. About identity code block ──────────────────────── */
.about-code-block {
  background: #0f1117;
  border: 1px solid rgba(102,126,234,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  margin: 18px 0;
  position: relative;
  overflow: hidden;
}
.about-code-block::before {
  content: "about.js";
  position: absolute;
  top: 8px; right: 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  font-family: monospace;
}
.code-kw   { color: #ff7b72; }
.code-var  { color: #79c0ff; }
.code-str  { color: #a5d6ff; }
.code-num  { color: #f2cc60; }
.code-fn   { color: #d2a8ff; }
.code-cmt  { color: rgba(255,255,255,0.3); font-style: italic; }
:root[data-theme="dark"] .toast-text span  { color: #888; }

/* ── 77. Project modal lightbox ──────────────────────────── */
#project-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 20, 0.82);
  backdrop-filter: blur(14px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  /* visibility:hidden also removes the dialog's buttons/links from the tab
     order while closed; delayed so the fade-out still animates. */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
#project-modal.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.35s var(--ease-spring);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  position: relative;
}
#project-modal.open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-header-bar {
  height: 6px;
  width: 100%;
  border-radius: 20px 20px 0 0;
}
.modal-body { padding: 28px 32px 32px; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.modal-close:hover { background: rgba(0,0,0,0.15); transform: rotate(90deg); }
.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px;
  padding-right: 36px;
  line-height: 1.3;
}
.modal-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}
.modal-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.modal-tech-tag {
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  border: 1px solid rgba(102,126,234,0.2);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-btn-live {
  background: var(--brand-grad);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal-btn-live:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,0.4); color: #fff; text-decoration: none; }
.modal-btn-gh {
  background: transparent;
  color: #333;
  border: 2px solid rgba(0,0,0,0.15);
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal-btn-gh:hover { border-color: var(--brand-1); color: var(--brand-1); text-decoration: none; }
/* Explanatory note shown in the modal for private projects (no public link) */
.modal-private-note {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b6b80;
  background: rgba(102,126,234,0.07);
  border: 1px solid rgba(102,126,234,0.16);
  border-radius: 8px;
  padding: 12px 14px;
}
.modal-private-note i { margin-top: 2px; color: var(--brand-1); }
/* Dark mode */
:root[data-theme="dark"] .modal-card { background: #1a1a2e; }
:root[data-theme="dark"] .modal-title { color: #e2e8ff; }
:root[data-theme="dark"] .modal-desc  { color: #aaa; }
:root[data-theme="dark"] .modal-close { background: rgba(255,255,255,0.08); color: #aaa; }
:root[data-theme="dark"] .modal-btn-gh { color: #ccc; border-color: rgba(255,255,255,0.2); }
:root[data-theme="dark"] .modal-private-note { color: #b9b9cc; background: rgba(102,126,234,0.12); border-color: rgba(102,126,234,0.25); }
:root[data-theme="dark"] .modal-btn-gh:hover { color: #9ab0f9; border-color: #9ab0f9; }
@media (max-width: 480px) {
  .modal-body { padding: 20px; }
  .modal-title { font-size: 18px; }
}

/* ── 78. CTA collaboration strip ────────────────────────── */
.cta-strip {
  background: var(--brand-grad);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-strip .container { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}
.cta-highlight {
  position: relative;
  display: inline-block;
}
.cta-highlight::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
}
.cta-sub {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  margin-bottom: 32px;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-cta-primary {
  background: #fff;
  color: var(--brand-1);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  color: var(--brand-1);
  text-decoration: none;
}
.btn-cta-outline {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ── 79. Focus-visible accessibility ring ───────────────── */
:focus-visible {
  outline: 2px solid var(--brand-1) !important;
  outline-offset: 3px !important;
  border-radius: 4px !important;
}
/* Override for elements that look better without the outline */
.btn-common:focus-visible,
.btn-cta-primary:focus-visible,
a.project-card:focus-visible {
  outline-offset: 4px !important;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.35) !important;
}

/* ── 80. About image smooth reveal ──────────────────────── */
.img-thumb img {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.img-thumb img.img-loaded {
  opacity: 1;
}
.img-thumb {
  position: relative;
}
.img-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
  border-radius: inherit;
  z-index: 0;
  transition: opacity 0.6s ease;
}
.img-thumb.img-wrap-loaded::before {
  opacity: 0;
}

/* ── 81. Skills radar chart ──────────────────────────────── */
.skills-radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 36px 0 8px;
}
.skills-radar-wrap p {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
  letter-spacing: 0.3px;
}
#skills-radar {
  max-width: 100%;
  display: block;
}
:root[data-theme="dark"] #skills-radar { filter: brightness(1.15); }

/* ── 82. "My Process" stepper ────────────────────────────── */
.process-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  padding: 32px 24px 28px;
  background: var(--brand-grad-soft);
  border-radius: 16px;
  border: 1px solid rgba(102,126,234,0.12);
  flex-wrap: wrap;
  row-gap: 24px;
}
.process-step {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  text-align: center;
  position: relative;
  padding: 0 10px;
}
.step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-1);
  letter-spacing: 1px;
  font-family: monospace;
  margin-bottom: 8px;
}
.step-icon {
  width: 48px; height: 48px;
  background: #fff;
  border: 2px solid rgba(102,126,234,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  color: var(--brand-1);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
}
.process-step:hover .step-icon {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 20px rgba(102,126,234,0.22);
  border-color: var(--brand-1);
}
.step-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}
.step-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}
.process-arrow {
  display: flex;
  align-items: center;
  padding-top: 20px;
  font-size: 18px;
  color: rgba(102,126,234,0.4);
  flex-shrink: 0;
}
:root[data-theme="dark"] .step-icon {
  background: rgba(30,30,60,0.8);
  border-color: rgba(102,126,234,0.3);
}
:root[data-theme="dark"] .step-title { color: #e2e8ff; }
:root[data-theme="dark"] .step-desc  { color: #888; }
@media (max-width: 576px) {
  .process-arrow { display: none; }
  .process-step  { min-width: 45%; }
}

/* ── 83. Hero grain texture ──────────────────────────────── */
#hero-area::after {
  /* Preserve existing float2 animation AND add grain via SVG filter */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  /* Keep the existing radial gradient too */
}
/* Separate grain element injected by JS */
#hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='ng'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23ng)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ── 84. Skip nav + section dot patterns ────────────────── */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  z-index: 999999;
  transition: top 0.2s ease;
}
.skip-nav:focus {
  top: 16px;
  color: #fff;
  text-decoration: none;
}
/* Dot-grid pattern on alternating sections */
#about::after,
#skills::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(102,126,234,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
#about,
#skills {
  position: relative;
}
#about .container,
#skills .container {
  position: relative;
  z-index: 1;
}

/* ── 85. Scroll progress bar ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-grad);
  z-index: 9999999;
  transition: width 0.05s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(102,126,234,0.6);
}

/* ── 87. Project card 3D tilt ────────────────────────────── */
.project-card-wrap {
  perspective: 900px;
}
.project-card-wrap .col-lg-4,
.project-card-wrap .col-md-4,
.project-card-wrap [class*="col-"] {
  transform-style: preserve-3d;
}
.card-tilt {
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  will-change: transform;
  transform-style: preserve-3d;
}
.card-tilt:hover {
  box-shadow: 0 20px 40px rgba(102,126,234,0.18);
}
/* Shine overlay for tilt */
.card-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-tilt:hover::before { opacity: 1; }

/* ── 88. Hero role typewriter ────────────────────────────── */
#hero-role-type {
  display: inline;
  font-weight: 700;
  color: #fff;
}
.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: rgba(255,255,255,0.8);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.9s ease-in-out infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── 89. Bug fixes: dark-mode form, mobile overflow, hobby card ── */

/* Fix 1: Contact form inputs in dark mode — base state was missing */
:root[data-theme="dark"] .contact-block .form-control,
:root[data-theme="dark"] #contactForm .form-control {
  background-color: rgba(255,255,255,0.06) !important;
  border-color: rgba(165,180,252,0.25) !important;
  color: #e2e8ff !important;
}
:root[data-theme="dark"] .contact-block .form-control:focus,
:root[data-theme="dark"] #contactForm .form-control:focus {
  background-color: rgba(255,255,255,0.09) !important;
  border-color: var(--brand-1) !important;
  color: #e2e8ff !important;
}
:root[data-theme="dark"] .contact-block .form-control::placeholder,
:root[data-theme="dark"] #contactForm .form-control::placeholder {
  color: rgba(165,180,252,0.45) !important;
}

/* Fix 2: About code block — prevent overflow on small screens */
.about-code-block {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.about-code-block .code-str,
.about-code-block .pro-detail {
  word-break: break-word;
}

/* Fix 3: Hobbies section — ensure all hobby cards render consistently */
.hobbies-item {
  opacity: 1 !important;
  visibility: visible !important;
}
:root[data-theme="dark"] .hobby-title {
  color: #e2e8ff !important;
  opacity: 1 !important;
}

/* ── 90. Navbar resume CTA button ───────────────────────── */
.nav-cta-item {
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.btn-nav-resume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-grad);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, opacity 0.2s ease;
  box-shadow: 0 4px 14px rgba(102,126,234,0.35);
  white-space: nowrap;
}
.btn-nav-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102,126,234,0.5);
  color: #fff !important;
  text-decoration: none !important;
}
.btn-nav-resume i { font-size: 13px; }
/* Keep button visible in both scrolled/unscrolled states */
.navbar.scrolled .btn-nav-resume { opacity: 1; }
@media (max-width: 991px) {
  .nav-cta-item { margin: 12px 0 8px; }
  .btn-nav-resume { font-size: 14px; padding: 9px 22px; }
}

/* ── 91. Featured project image zoom + overlay ───────────── */
.project-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.project-img-wrap img {
  transition: transform 0.65s var(--ease-out);
  display: block;
}
.project-img-wrap:hover img {
  transform: scale(1.06);
}
.project-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102,126,234,0.28), rgba(118,75,162,0.28));
  opacity: 0;
  transition: opacity 0.45s ease;
  border-radius: 12px;
  pointer-events: none;
}
.project-img-wrap:hover::after {
  opacity: 1;
}
/* Zoom icon appears on hover */
.project-img-wrap::before {
  content: "\e080"; /* icon-magnifier from simple-line-icons */
  font-family: 'Simple-Line-Icons';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: #fff;
  font-size: 36px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.project-img-wrap:hover::before {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
}

/* ── 92. Section number background text entrance ─────────── */
.section-title[data-num]::before {
  transition: opacity 0.9s ease 0.15s, transform 0.9s var(--ease-out) 0.15s;
  opacity: 0;
  transform: translateX(30px) scaleX(1.08);
}
.section-title.heading-visible[data-num]::before {
  opacity: 0.06;
  transform: translateX(0) scaleX(1);
}
:root[data-theme="dark"] .section-title.heading-visible[data-num]::before {
  opacity: 0.05;
}

/* ── 93. About code block reveal on scroll ───────────────── */
.about-code-block {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-spring);
}
.about-code-block.code-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Typing cursor in the code block */
.about-code-block .code-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #79c0ff;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caretBlink 1s steps(1) infinite;
}

/* ── 94. Hero scroll cue improvement — branded arrow ────── */
.scroll-cue {
  opacity: 0.9;
}
.scroll-cue:hover {
  opacity: 1;
  transform: translateY(3px);
}

/* ── 95. Contact icon hover lift ─────────────────────────── */
.single-contact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-spring);
}
.single-contact:hover {
  transform: translateX(4px);
}
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-grad-soft);
  border: 1px solid rgba(102,126,234,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.single-contact:hover .contact-icon {
  background: var(--brand-grad);
  border-color: transparent;
  transform: scale(1.05);
}
.contact-icon i {
  color: var(--brand-1);
  font-size: 15px;
  transition: color 0.3s ease;
}
.single-contact:hover .contact-icon i {
  color: #fff;
}
:root[data-theme="dark"] .contact-icon {
  background: rgba(102,126,234,0.1);
  border-color: rgba(102,126,234,0.25);
}

/* ── 96. GitHub profile CTA strip ───────────────────────── */
.github-cta-strip {
  margin-top: 48px;
  background: rgba(36,41,46,0.04);
  border: 1px solid rgba(36,41,46,0.12);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.github-cta-strip:hover {
  border-color: rgba(36,41,46,0.28);
  box-shadow: var(--shadow-sm);
}
.github-cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.github-cta-icon {
  width: 52px; height: 52px;
  background: #24292e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.github-cta-strip:hover .github-cta-icon {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.github-cta-icon i { font-size: 24px; color: #fff; }
.github-cta-text { flex: 1; min-width: 160px; }
.github-cta-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}
.github-cta-text span { font-size: 13px; color: #666; }
.btn-github-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #24292e;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-github-cta:hover {
  background: #0d1117;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-decoration: none !important;
}
:root[data-theme="dark"] .github-cta-strip {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
:root[data-theme="dark"] .github-cta-strip:hover {
  border-color: rgba(255,255,255,0.2);
}
:root[data-theme="dark"] .github-cta-text strong { color: #e2e8ff; }
:root[data-theme="dark"] .github-cta-text span { color: #aaa; }
@media (max-width: 576px) {
  .github-cta-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .btn-github-cta { width: 100%; justify-content: center; }
}

/* ── 97. Experience timeline company color coding ────────── */
/* Superseded by the --tl-accent system (block 203 below + enhancements.js
   block 120). The old :nth-child border/title colours are removed because the
   injected year-label <li>s shifted the indices and mis-coloured entries.
   Accent now lives on each <li> as --tl-accent and drives the card accent bar
   and node dot; titles are a single consistent colour for a calmer hierarchy. */

/* ── 98. Skill tag stagger entrance ──────────────────────── */
.skill-tags .skill-tag {
  opacity: 0;
  transform: scale(0.8) translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
}
.skill-category.tags-visible .skill-tags .skill-tag {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── 99. Project section title gradient ──────────────────── */
#portfolio-highlights .section-title {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
/* Restore the ::after underline that gradient text breaks */
#portfolio-highlights .section-title::after {
  background: var(--brand-grad);
}

/* ── 100. Skills section gradient heading ───────────────── */
#skills .section-title {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
#skills .section-title::after { background: var(--brand-grad); }

/* ── 101. Services section gradient heading ─────────────── */
#services .section-title {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
#services .section-title::after { background: var(--brand-grad); }

/* ── 102. Improved active nav indicator ─────────────────── */
.navbar .onepage-nev .nav-item.active > .nav-link {
  font-weight: 700;
}
/* Brighter active dot pulse */
.navbar .onepage-nev .nav-item.active > .nav-link::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-1);
  animation: navDotPulse 1.5s ease-in-out infinite;
}
@keyframes navDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102,126,234,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(102,126,234,0); }
}
.navbar .onepage-nev .nav-link { position: relative; }

/* ── 103. Experience content-text padding for color borders ─ */
.experience ul.timeline > li .content-text {
  border-radius: 0 6px 6px 0;
}

/* ── 104. Skills live-search input ──────────────────────── */
.skill-search-wrap {
  max-width: 440px;
  margin: 0 auto 32px;
}
.skill-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.skill-search-icon {
  position: absolute;
  left: 15px;
  color: var(--brand-1);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}
.skill-search-input {
  width: 100%;
  border: 2px solid rgba(102,126,234,0.22);
  border-radius: 30px;
  padding: 10px 52px 10px 42px;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-search-input:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
.skill-search-input::placeholder { color: #aaa; }
.skill-search-kbd {
  position: absolute;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  background: rgba(102,126,234,0.1);
  border: 1px solid rgba(102,126,234,0.25);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--brand-1);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.skill-search-input:focus ~ .skill-search-kbd { opacity: 0; }
:root[data-theme="dark"] .skill-search-input {
  border-color: rgba(102,126,234,0.3);
  color: #e2e8ff;
}
:root[data-theme="dark"] .skill-search-input::placeholder { color: #666; }
/* Skill tag highlight state for search */
.skill-tag.search-match {
  background: var(--brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: scale(1.05);
}
.skill-tag.search-hidden {
  opacity: 0.2;
  transform: scale(0.92);
  pointer-events: none;
}
/* Empty category dim */
.skill-category.search-empty {
  opacity: 0.3;
}

/* ── 105. About tech chips strip ─────────────────────────── */
.about-tech-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}
.about-tech-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.about-tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(102,126,234,0.08);
  border: 1px solid rgba(102,126,234,0.18);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 16px;
  transition: transform 0.25s var(--ease-spring), background 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.about-tech-chip:hover {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.about-tech-chip i { font-size: 13px; }
:root[data-theme="dark"] .about-tech-chip {
  background: rgba(102,126,234,0.12);
  border-color: rgba(102,126,234,0.25);
  color: #9ab0f9;
}
:root[data-theme="dark"] .about-tech-label { color: #666; }

/* ── 106. Achievement section trophy sparkle ─────────────── */
.achievement-card .icon-center {
  position: relative;
  display: inline-block;
}
.achievement-card .icon-center::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.achievement-card:hover .icon-center::after { opacity: 1; }
/* Trophy icon bounce on card hover */
.achievement-card:hover .icon-center i {
  animation: trophyPop 0.5s var(--ease-spring) forwards;
}
@keyframes trophyPop {
  0%  { transform: scale(1); }
  40% { transform: scale(1.3) rotate(-8deg); }
  70% { transform: scale(0.92) rotate(4deg); }
  100%{ transform: scale(1) rotate(0deg); }
}

/* ── 107. Section description visual accent ───────────────── */
.section-desc {
  position: relative;
  padding-bottom: 4px;
}
.section-desc::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
  margin: 10px auto 0;
  opacity: 0.6;
}

/* ── 108. Skill search no-results message ────────────────── */
.skill-no-results {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  padding: 24px 0 8px;
  display: none;
  width: 100%;
  grid-column: 1 / -1;
}
.skill-no-results.visible { display: block; }

/* ── 109. Active nav dot — ensure link has relative ──────── */
.navbar .onepage-nev .nav-item > .nav-link {
  position: relative;
}

/* ── 110. Project card accent-color glow on hover ────────── */
.project-card {
  --card-glow: rgba(102,126,234,0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.project-card:hover {
  box-shadow: 0 12px 40px var(--card-glow), 0 2px 8px rgba(0,0,0,0.12) !important;
}
/* Accent color map — set via JS dataset */
.project-card[data-accent="blue"]   { --card-glow: rgba(66,133,244,0.45); }
.project-card[data-accent="red"]    { --card-glow: rgba(234,67,53,0.38); }
.project-card[data-accent="purple"] { --card-glow: rgba(156,39,176,0.40); }
.project-card[data-accent="teal"]   { --card-glow: rgba(0,150,136,0.40); }
.project-card[data-accent="amber"]  { --card-glow: rgba(251,140,0,0.38); }
.project-card[data-accent="green"]  { --card-glow: rgba(56,142,60,0.40); }

/* ── 111. Service card icon bounce on hover ──────────────── */
.services-item:hover .icon i {
  animation: serviceIconBounce 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes serviceIconBounce {
  0%  { transform: translateY(0) scale(1); }
  40% { transform: translateY(-10px) scale(1.15); }
  70% { transform: translateY(-3px) scale(0.95); }
  100%{ transform: translateY(0) scale(1); }
}
/* Icon gradient circle on hover */
.services-item:hover .icon {
  background: var(--brand-grad);
  box-shadow: 0 8px 24px rgba(102,126,234,0.3);
}
.services-item:hover .icon i { color: #fff !important; }

/* ── 112. Contact submit button send states ───────────────── */
.btn-submit-contact { position: relative; overflow: hidden; min-width: 160px; }
.btn-submit-contact .submit-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinnerSpin 0.7s linear infinite;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
@keyframes spinnerSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.btn-submit-contact.is-sending .submit-text { opacity: 0; }
.btn-submit-contact.is-sending .submit-spinner { display: block; }
.btn-submit-contact.is-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: transparent !important;
  pointer-events: none;
}
.btn-submit-contact.is-error {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border-color: transparent !important;
}

/* ── 113. Experience timeline dot ripple on entry ─────────── */
.experience ul.timeline > li::before {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.experience ul.timeline > li.dot-visible::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 6px rgba(102,126,234,0.15);
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(102,126,234,0.5); transform: scale(1); }
  50%  { box-shadow: 0 0 0 8px rgba(102,126,234,0);   transform: scale(1.25); }
  100% { box-shadow: 0 0 0 0   rgba(102,126,234,0);   transform: scale(1); }
}
.experience ul.timeline > li.dot-visible::before {
  animation: dotPulse 0.7s ease forwards;
}

/* ── 114. About metric chip count-up styles ──────────────── */
.metric-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.metric-chip { transition: transform 0.2s var(--ease-spring); }
.metric-chip:hover { transform: translateY(-3px) scale(1.06); }

/* ── 115. Button shimmer sweep on hover ──────────────────── */
.btn-common,
.btn-cta-primary,
.btn-outline-hero,
.btn-nav-resume,
.btn-github-cta {
  position: relative;
  overflow: hidden;
}
.btn-common::after,
.btn-cta-primary::after,
.btn-outline-hero::after,
.btn-nav-resume::after,
.btn-github-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.28) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0s;
}
.btn-common:hover::after,
.btn-cta-primary:hover::after,
.btn-outline-hero:hover::after,
.btn-nav-resume:hover::after,
.btn-github-cta:hover::after {
  left: 130%;
  transition: left 0.55s ease;
}
@media (prefers-reduced-motion: reduce) {
  .btn-common::after,
  .btn-cta-primary::after,
  .btn-outline-hero::after,
  .btn-nav-resume::after,
  .btn-github-cta::after { display: none; }
}

/* ── 116. Social icon branded hover glow ─────────────────── */
.social-icon li a {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icon li a.github:hover {
  background: #24292e;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(36,41,46,0.45);
  transform: translateY(-4px) scale(1.15);
}
.social-icon li a.linkedin:hover {
  background: #0077b5;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,119,181,0.5);
  transform: translateY(-4px) scale(1.15);
}
.social-icon li a.stackoverflow:hover {
  background: #f48024;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(244,128,36,0.5);
  transform: translateY(-4px) scale(1.15);
}

/* ── 117. Theme toggle icon spin animation ───────────────── */
.theme-toggle.icon-spinning i {
  animation: toggleSpin 0.42s cubic-bezier(0.4,0,0.6,1) forwards;
}
@keyframes toggleSpin {
  0%   { transform: scale(1) rotate(0deg); opacity: 1; }
  45%  { transform: scale(0) rotate(180deg); opacity: 0; }
  55%  { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ── 118. About profile list row hover highlight ─────────── */
.admin-profile li {
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0 -8px;
  transition: background 0.2s ease;
}
.admin-profile li:hover {
  background: rgba(102,126,234,0.07);
}
:root[data-theme="dark"] .admin-profile li:hover {
  background: rgba(102,126,234,0.12);
}

/* ── 119. Filter stagger — per-card animation-delay via JS ── */
.card-showing {
  animation: cardStaggerIn 0.38s var(--ease-spring) both;
}
@keyframes cardStaggerIn {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── 120. Skill category header icon styling ─────────────── */
.skill-category h4 i {
  margin-right: 6px;
  font-size: 14px;
  opacity: 0.75;
}

/* ── 121. Live badge glow pulse ──────────────────────────── */
.live-badge {
  animation: liveBadgePulse 2s ease-in-out infinite;
}
@keyframes liveBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(16,185,129,0.5); }
  50%       { box-shadow: 0 0 8px 3px rgba(16,185,129,0.3); }
}

/* ── 122. Timeline date spans → chip style ───────────────── */
.content-text > span {
  display: inline-block;
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  border: 1px solid rgba(102,126,234,0.22);
  color: var(--brand-1);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
:root[data-theme="dark"] .content-text > span {
  background: rgba(102,126,234,0.12);
  border-color: rgba(102,126,234,0.28);
  color: #9ab0f9;
}

/* ── 123. CTA strip animated flowing gradient ────────────── */
.cta-strip {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #667eea 80%, #764ba2 100%) !important;
  background-size: 300% auto !important;
  animation: ctaGradientFlow 8s linear infinite;
}
@keyframes ctaGradientFlow {
  0%   { background-position: 0%   center; }
  100% { background-position: 300% center; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-strip { animation: none !important; }
}

/* ── 124. Footer quick-nav link underline fill ───────────── */
.footer-quick-nav a {
  position: relative !important;
}
.footer-quick-nav a::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 10px; right: 10px;
  height: 1px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.footer-quick-nav a:hover::after { transform: scaleX(1); }

/* ── 125. Skill proficiency mini-bar ─────────────────────── */
.proficiency-bar {
  height: 3px;
  background: rgba(102,126,234,0.12);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.proficiency-fill {
  height: 100%;
  background: var(--brand-grad);
  border-radius: 2px;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
:root[data-theme="dark"] .proficiency-bar {
  background: rgba(102,126,234,0.18);
}

/* ── 126. Project card top accent border ─────────────────── */
.project-card { border-top: 2px solid transparent; }
.project-card[data-accent="blue"]   { border-top-color: #4285F4; }
.project-card[data-accent="red"]    { border-top-color: #ea4335; }
.project-card[data-accent="purple"] { border-top-color: #9C27B0; }
.project-card[data-accent="teal"]   { border-top-color: #00897B; }
.project-card[data-accent="amber"]  { border-top-color: #FB8C00; }
.project-card[data-accent="green"]  { border-top-color: #388E3C; }

/* ── 127. Hobby card color-tint hover ────────────────────── */
.hobby-item { transition: background 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.3s ease; }
.hobby-item:has(.hobby-icon--purple):hover { background: rgba(102,126,234,0.06) !important; box-shadow: 0 8px 28px rgba(102,126,234,0.15); }
.hobby-item:has(.hobby-icon--red):hover    { background: rgba(244,67,54,0.05)  !important; box-shadow: 0 8px 28px rgba(244,67,54,0.12); }
.hobby-item:has(.hobby-icon--green):hover  { background: rgba(76,175,80,0.05)  !important; box-shadow: 0 8px 28px rgba(76,175,80,0.12); }
.hobby-item:has(.hobby-icon--orange):hover { background: rgba(255,152,0,0.05)  !important; box-shadow: 0 8px 28px rgba(255,152,0,0.12); }
:root[data-theme="dark"] .hobby-item:has(.hobby-icon--purple):hover { background: rgba(102,126,234,0.1) !important; }
:root[data-theme="dark"] .hobby-item:has(.hobby-icon--red):hover    { background: rgba(244,67,54,0.08) !important; }
:root[data-theme="dark"] .hobby-item:has(.hobby-icon--green):hover  { background: rgba(76,175,80,0.08) !important; }
:root[data-theme="dark"] .hobby-item:has(.hobby-icon--orange):hover { background: rgba(255,152,0,0.08) !important; }

/* ── 128. Hero stat numbers — gradient text ──────────────── */
.hero-stat-num {
  background: linear-gradient(135deg, #fff 30%, rgba(178,190,255,0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 129. Counter widget icon glow on hover ──────────────── */
.work-counter-widget:hover .icon {
  background: rgba(102,126,234,0.12);
  box-shadow: 0 0 20px rgba(102,126,234,0.25);
  border-radius: 50%;
}
.work-counter-widget .icon {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ── 130. Currently exploring tags stagger entrance ─────── */
.exploring-tag {
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}
.exploring-section-visible .exploring-tag {
  opacity: 1;
  transform: none;
}

/* ── 136. Contact form live validation states ────────────── */
.form-float-group.field-valid .form-control {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12) !important;
}
.form-float-group.field-invalid .form-control {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
.form-float-group .field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.form-float-group textarea ~ .field-icon {
  top: 18px;
  transform: none;
}
.form-float-group.field-valid .field-icon,
.form-float-group.field-invalid .field-icon { opacity: 1; }
.form-float-group.field-valid .field-icon { color: #10b981; }
.form-float-group.field-invalid .field-icon { color: #ef4444; }

/* ── 137. Proficiency badge hover tooltip ────────────────── */
.proficiency-badge {
  position: relative;
  cursor: default;
}
.proficiency-badge .pct-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #2d2d3e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.proficiency-badge .pct-tip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #2d2d3e;
}
.proficiency-badge:hover .pct-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 138. Hero overlay slow gradient pulse ───────────────── */
#hero-area .overlay {
  animation: heroGradientPulse 12s ease-in-out infinite alternate;
}
@keyframes heroGradientPulse {
  0%   { opacity: 0.80; }
  50%  { opacity: 0.70; }
  100% { opacity: 0.82; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-area .overlay { animation: none; }
}

/* ── 139. Keyboard shortcuts panel ───────────────────────── */
.kbd-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: rgba(25,25,40,0.95);
  border: 1px solid rgba(102,126,234,0.3);
  border-radius: 12px;
  padding: 16px 18px;
  z-index: 9000;
  min-width: 210px;
  color: #e2e8ff;
  font-size: 12px;
  backdrop-filter: blur(12px);
  transform: translateY(12px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-spring);
}
.kbd-panel.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.kbd-panel h6 {
  font-size: 11px;
  font-weight: 800;
  color: #9ab0f9;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 10px;
}
.kbd-panel table { width: 100%; border-collapse: collapse; }
.kbd-panel td { padding: 4px 0; }
.kbd-panel td:last-child { text-align: right; color: #aaa; }
.kbd-panel kbd {
  background: rgba(102,126,234,0.15);
  border: 1px solid rgba(102,126,234,0.3);
  color: #9ab0f9;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.kbd-trigger {
  position: fixed;
  bottom: 52px;
  right: 24px;
  width: 28px; height: 28px;
  background: rgba(25,25,40,0.85);
  border: 1px solid rgba(102,126,234,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #9ab0f9;
  cursor: pointer;
  z-index: 8999;
  transition: background 0.2s ease, transform 0.2s var(--ease-spring);
  font-family: monospace;
  backdrop-filter: blur(8px);
}
.kbd-trigger:hover {
  background: rgba(102,126,234,0.15);
  transform: scale(1.1);
}

/* ── 140. Tech tag hover pop ─────────────────────────────── */
.tech-tag {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}
.tech-tag:hover {
  background: var(--brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 3px 10px rgba(102,126,234,0.3);
}

/* ── 131. Hero ambient glow orbs ────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  will-change: transform;
  z-index: 1;
}
.hero-orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(102,126,234,0.22) 0%, transparent 70%);
  top: -60px; left: -80px;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(118,75,162,0.18) 0%, transparent 70%);
  bottom: 0; right: -60px;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(102,234,180,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbDrift3 14s ease-in-out infinite alternate;
}
@keyframes orbDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes orbDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes orbDrift3 {
  from { transform: translate(-50%, -50%) scale(0.9); }
  to   { transform: translate(-46%, -54%) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

/* ── 132. Skill tag click-to-copy tooltip ────────────────── */
.skill-tag {
  position: relative;
  cursor: pointer;
}
.skill-tag .copy-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #2d2d3e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.skill-tag .copy-tip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #2d2d3e;
}
.skill-tag.copied .copy-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.skill-tag.copied {
  background: var(--brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ── 133. Achievement list items stagger state ───────────── */
.achievement-card .list-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
}
.achievement-card.list-visible .list-item {
  opacity: 1;
  transform: none;
}

/* ── 134. Focus-visible brand ring ───────────────────────── */
*:focus-visible {
  outline: 2px solid var(--brand-1) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible {
  border-radius: 6px;
}

/* ── 135. Navbar active link slide-in indicator ──────────── */
.onepage-nev .nav-link.active-section {
  color: var(--brand-1) !important;
}
.onepage-nev .nav-link.active-section::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
  animation: navActiveSlide 0.35s ease forwards;
}
@keyframes navActiveSlide {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── 141. Services card decorative background number ─────── */
#services .container > .row { counter-reset: svc; }
.services-item {
  position: relative;
  overflow: hidden;
}
.services-item::before {
  counter-increment: svc;
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  bottom: 6px; right: 14px;
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transition: opacity 0.3s ease;
}
.services-item:hover::before { opacity: 0.13; }
:root[data-theme="dark"] .services-item::before { opacity: 0.1; }
:root[data-theme="dark"] .services-item:hover::before { opacity: 0.18; }

/* ── 142. Project card "Open →" hover strip ──────────────── */
.project-card { position: relative; }
.project-card .card-open-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-spring);
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}
.project-card:hover .card-open-strip { transform: translateY(0); }

/* ── 143. Timeline year group label ──────────────────────── */
li.timeline-year-item {
  list-style: none;
  padding: 0 !important;
  margin-bottom: 0 !important;
}
li.timeline-year-item::before { display: none !important; }
/* Selector is intentionally more specific than `.timeline li span` (main.css),
   which would otherwise win and force display:block with `padding: 9px 0` —
   leaving the year text flush against the left edge of the bar (bad UX). */
li.timeline-year-item .timeline-year-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 18px;
  background: rgba(102,126,234,0.08);
  border-radius: 12px;
  display: block;
  margin: 8px 0 4px 24px;
  border: 1px solid rgba(102,126,234,0.18);
}
:root[data-theme="dark"] .timeline-year-label {
  background: rgba(102,126,234,0.14);
  color: #9ab0f9;
}

/* ── 144. About photo 3D tilt container ──────────────────── */
.img-thumb {
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── 145. Hero badge extra glow ring ─────────────────────── */
.hero-open-badge {
  position: relative;
}
.hero-open-badge::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 30px;
  background: transparent;
  border: 1px solid rgba(74,222,128,0.4);
  animation: badgeRingPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgeRingPulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%       { transform: scale(1.04); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-open-badge::before { animation: none; }
}

/* ── 146. Global dark mode smooth transition ─────────────── */
html {
  transition: background-color 0.35s ease, color 0.35s ease;
}
body,
section,
.navbar,
.footer-area,
.services-item,
.content-box,
.hobby-item,
.project-card,
.skill-category,
.about-code-block,
.contact-block,
.footer-right-area,
.cta-strip {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important;
}
/* Don't override motion-sensitive transitions */
.project-card,
.services-item {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
              transform 0.3s var(--ease-spring), box-shadow 0.3s ease !important;
}

/* ── 147. Mobile slicknav panel polish ───────────────────── */
/* slicknav.css gives the open menu bare left-aligned links with no edge —
   it reads as page text bleeding into the hero. Make it a proper panel:
   comfortable tap targets, item dividers, a shadowed bottom edge, and a
   visually distinct resume-download row (mobile counterpart of the navbar
   pill, which only renders on desktop). */
.slicknav_nav {
  padding-bottom: 6px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 28px rgba(20, 20, 44, 0.16);
  /* slicknav.css caps the panel at 350px with visible overflow, which paints
     items past the cap over the hero with no background. Size to content;
     scroll only if taller than the viewport. */
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.slicknav_nav a {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.slicknav_nav li {
  border-top: 1px solid rgba(102, 126, 234, 0.10);
}
.slicknav_nav li:first-child { border-top: none; }
.slicknav_nav .mobile-resume-item a {
  color: var(--brand-1);
  font-weight: 700;
}
.slicknav_nav .mobile-resume-item .icon-paper-clip { margin-right: 6px; }
:root[data-theme="dark"] .slicknav_nav {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}
:root[data-theme="dark"] .slicknav_nav .mobile-resume-item a {
  color: #aab8ff !important;
}

/* ── 147b. Contact form inline error messages ────────────── */
/* Border/icon states come from block 136 (.field-valid / .field-invalid);
   this only adds the per-field error text shown under invalid fields. */
.form-float-group .field-error {
  display: none;
  margin: 6px 2px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #ef4444;
}
.form-float-group.field-invalid .field-error { display: block; }
:root[data-theme="dark"] .form-float-group .field-error { color: #ff9494; }

/* ── 148. About profile info copy-to-clipboard ───────────── */
/* Eval fix #2: the copy affordance on email/phone was a faint 0.4-opacity
   glyph that read as invisible, with near-invisible "copied" feedback. Make it
   an always-visible copy icon button + a clear "Copied!" pill on success. */
.pro-detail.copyable {
  cursor: pointer;
  position: relative;
  border-radius: 5px;
  padding: 1px 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.pro-detail.copyable:hover {
  background: rgba(102,126,234,0.1);
  color: var(--brand-1);
}
.pro-detail.copyable::after {
  content: "\f0c5"; /* Font Awesome copy icon */
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  font-size: 11px;
  margin-left: 7px;
  opacity: 0.85;
  color: var(--brand-1);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.pro-detail.copyable:hover::after { opacity: 1; transform: scale(1.15); }
.pro-detail.copyable.just-copied {
  background: rgba(16,185,129,0.14) !important;
  color: #10b981 !important;
}
.pro-detail.copyable.just-copied::after {
  content: "\f00c"; /* check icon */
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  color: #10b981;
  opacity: 1;
}
/* Clear "Copied!" pill on success */
.pro-detail.copyable.just-copied::before {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}

/* ── 149. Services checklist item hover ──────────────────── */
.services-checklist li {
  transition: transform 0.2s var(--ease-spring), color 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -4px;
}
.services-checklist li:hover {
  transform: translateX(4px);
  color: var(--brand-1);
}
.services-checklist li:hover .icon-green { color: #059669; }

/* ── 150. Smooth scroll behavior ─────────────────────────── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── 151. Custom brand scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2, #667eea);
}
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: #667eea transparent; }

/* ── 152. Text selection brand color ─────────────────────── */
::selection {
  background: rgba(102,126,234,0.25);
  color: inherit;
}
::-moz-selection {
  background: rgba(102,126,234,0.25);
  color: inherit;
}

/* ── 153. Education timeline color coding ────────────────── */
/* Superseded by the --tl-accent system (block 203 below + enhancements.js
   block 120). Old :nth-child rules removed: the injected year-label <li>s
   shifted the indices, so the colours landed on the wrong entries. */

/* ── 154. Mobile touch active feedback ───────────────────── */
@media (hover: none) {
  .btn-common:active,
  .btn-cta-primary:active,
  .btn-outline-hero:active {
    transform: scale(0.97) !important;
    opacity: 0.9;
  }
  .project-card:active { transform: scale(0.98) !important; }
  .skill-tag:active { transform: scale(0.94) !important; }
  .nav-link:active { opacity: 0.7; }
}

/* ── 155. Section padding improvement — tighter on mobile ── */
@media (max-width: 576px) {
  .section-padding { padding: 50px 0 !important; }
  .section-title   { font-size: clamp(22px, 6vw, 32px); }
  .skill-category  { margin-bottom: 20px; }
  .services-item   { margin-bottom: 20px; }
}

/* ── 158. Tech tag technology color system ───────────────── */
.tech-tag[data-tech="react"]       { --ttc: #61DAFB; --ttc-dark: #0d8eb5; }
.tech-tag[data-tech="typescript"]  { --ttc: #3178C6; --ttc-dark: #3178C6; }
.tech-tag[data-tech="nextjs"]      { --ttc: #000000; --ttc-dark: #ffffff; }
.tech-tag[data-tech="angular"]     { --ttc: #DD0031; --ttc-dark: #DD0031; }
.tech-tag[data-tech="python"]      { --ttc: #3776AB; --ttc-dark: #4b9cd3; }
.tech-tag[data-tech="nodejs"]      { --ttc: #339933; --ttc-dark: #44bb44; }
.tech-tag[data-tech="aws"]         { --ttc: #FF9900; --ttc-dark: #FF9900; }
.tech-tag[data-tech="docker"]      { --ttc: #2496ED; --ttc-dark: #2496ED; }
.tech-tag[data-tech="fastapi"]     { --ttc: #009688; --ttc-dark: #26a69a; }
.tech-tag[data-tech="django"]      { --ttc: #092E20; --ttc-dark: #44b78b; }
.tech-tag[data-tech="springboot"]  { --ttc: #6DB33F; --ttc-dark: #6DB33F; }
.tech-tag[data-tech="pytorch"]     { --ttc: #EE4C2C; --ttc-dark: #EE4C2C; }
.tech-tag[data-tech="tailwind"]    { --ttc: #06B6D4; --ttc-dark: #06B6D4; }
.tech-tag[data-tech="postgresql"]  { --ttc: #336791; --ttc-dark: #4f87c8; }
.tech-tag[data-tech="bert"]        { --ttc: #FF6F00; --ttc-dark: #FF8F00; }
.tech-tag[data-tech="esp32"]       { --ttc: #E7352C; --ttc-dark: #f05c53; }
.tech-tag[data-tech="azure"]       { --ttc: #0078D4; --ttc-dark: #0091FB; }

/* Eval fix #7d: a lone 2px left border read as an odd stray "line" on each
   chip. Replace it with a full subtle brand-tinted border + faint background
   wash so each tech chip looks intentionally branded, with a colored left
   accent that's clearly part of a cohesive pill. */
[data-tech] {
  border: 1px solid color-mix(in srgb, var(--ttc, #888) 38%, transparent) !important;
  border-left: 3px solid var(--ttc, transparent) !important;
  background: color-mix(in srgb, var(--ttc, #888) 8%, transparent) !important;
}
:root[data-theme="dark"] [data-tech] {
  border-color: color-mix(in srgb, var(--ttc-dark, var(--ttc, #888)) 42%, transparent) !important;
  border-left-color: var(--ttc-dark, var(--ttc, transparent)) !important;
  background: color-mix(in srgb, var(--ttc-dark, var(--ttc, #888)) 12%, transparent) !important;
}

/* ── 159. Process stepper sequential entrance ────────────── */
.process-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}
.process-step.step-visible {
  opacity: 1;
  transform: none;
}
.process-arrow {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.process-arrow.step-visible { opacity: 1; }

/* ── 160. Achievements count badge in section title ──────── */
.achievements-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 12px;
  margin-left: 12px;
  vertical-align: middle;
  position: relative;
  top: -4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  /* The parent .section-title is gradient-clipped text; opt the badge out so
     its label isn't blanked/clipped by -webkit-text-fill-color: transparent. */
  -webkit-text-fill-color: #fff;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

/* ── 157. Skill count badge on category headers ─────────── */
.skill-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  background: rgba(102,126,234,0.12);
  border: 1px solid rgba(102,126,234,0.2);
  color: var(--brand-1);
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: middle;
}
:root[data-theme="dark"] .skill-count-badge {
  background: rgba(102,126,234,0.18);
  color: #9ab0f9;
}

/* ── 156. Improved card shadow depth system ──────────────── */
.project-card,
.services-item,
.content-box,
.hobby-item {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .services-item,
:root[data-theme="dark"] .content-box,
:root[data-theme="dark"] .hobby-item {
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
}

/* ── 161. Skills category filter pill tabs ───────────────── */
.skill-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.skill-filter-btn {
  background: transparent;
  border: 1.5px solid rgba(102,126,234,0.25);
  color: #777;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s var(--ease-spring);
}
.skill-filter-btn:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
  transform: translateY(-1px);
}
.skill-filter-btn.active {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(102,126,234,0.3);
}
:root[data-theme="dark"] .skill-filter-btn { color: #aaa; }
:root[data-theme="dark"] .skill-filter-btn:hover { color: #9ab0f9; }
/* Category hide/show */
.skill-cat-col.cat-hidden {
  display: none !important;
}
.skill-cat-col.cat-entering {
  animation: catReveal 0.35s var(--ease-spring) both;
}
@keyframes catReveal {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ── 162. Timeline current-role glow treatment ───────────── */
.experience-current .content-text {
  background: rgba(16,185,129,0.04);
  position: relative;
}
/* The animated green glow bar replaces the static accent bar for the current
   role (the .content-text::before bar is hidden for this card in block 203). */
.experience-current .content-text::after {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #10b981, #059669);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
  animation: currentGlow 2.5s ease-in-out infinite;
}
@keyframes currentGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(16,185,129,0.4); }
  50%       { box-shadow: 0 0 14px rgba(16,185,129,0.7); }
}
:root[data-theme="dark"] .experience-current .content-text {
  background: rgba(16,185,129,0.06);
}

/* ── 163. Section alternating subtle background tints ─────── */
#about, #achievements, #hobbies { background-color: transparent; }
#services, #skills, #portfolio-highlights {
  background: rgba(102,126,234,0.018);
}
:root[data-theme="dark"] #services,
:root[data-theme="dark"] #skills,
:root[data-theme="dark"] #portfolio-highlights {
  background: rgba(102,126,234,0.04);
}

/* ── 164. Resume section: print/download button ──────────── */
.resume-cta-wrap {
  text-align: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(102,126,234,0.12);
}
.btn-resume-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--brand-1);
  color: var(--brand-1);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.btn-resume-print:hover {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.35);
  text-decoration: none;
}
:root[data-theme="dark"] .resume-cta-wrap {
  border-top-color: rgba(102,126,234,0.2);
}

/* ── 165. Counter widget per-stat color accents ──────────── */
.work-counter-widget:nth-child(1) .counter .icon { background: rgba(33,150,243,0.1);  border-color: rgba(33,150,243,0.2);  }
.work-counter-widget:nth-child(1) .counter .icon i { color: #2196F3; }
.work-counter-widget:nth-child(1) .counter:hover .icon { box-shadow: 0 8px 20px rgba(33,150,243,0.3); }

.work-counter-widget:nth-child(2) .counter .icon { background: rgba(76,175,80,0.1);   border-color: rgba(76,175,80,0.2);   }
.work-counter-widget:nth-child(2) .counter .icon i { color: #4CAF50; }
.work-counter-widget:nth-child(2) .counter:hover .icon { box-shadow: 0 8px 20px rgba(76,175,80,0.3); }

.work-counter-widget:nth-child(3) .counter .icon { background: rgba(255,193,7,0.1);   border-color: rgba(255,193,7,0.2);   }
.work-counter-widget:nth-child(3) .counter .icon i { color: #F59E0B; }
.work-counter-widget:nth-child(3) .counter:hover .icon { box-shadow: 0 8px 20px rgba(255,193,7,0.3); }

.work-counter-widget:nth-child(4) .counter .icon { background: rgba(156,39,176,0.1);  border-color: rgba(156,39,176,0.2);  }
.work-counter-widget:nth-child(4) .counter .icon i { color: #9C27B0; }
.work-counter-widget:nth-child(4) .counter:hover .icon { box-shadow: 0 8px 20px rgba(156,39,176,0.3); }

/* Per-stat gradient text on the numbers.
   Use background-image (not the `background` shorthand, which would reset
   background-clip back to border-box) so the gradient stays clipped to the
   text via .counterUp's background-clip:text — otherwise the number renders as
   a solid colored square with invisible (transparent-filled) text. */
.work-counter-widget:nth-child(1) .counter-num {
  background-image: linear-gradient(135deg, #2196F3, #64B5F6) !important;
}
.work-counter-widget:nth-child(2) .counter-num {
  background-image: linear-gradient(135deg, #4CAF50, #81C784) !important;
}
.work-counter-widget:nth-child(3) .counter-num {
  background-image: linear-gradient(135deg, #F59E0B, #FBBF24) !important;
}
.work-counter-widget:nth-child(4) .counter-num {
  background-image: linear-gradient(135deg, #9C27B0, #CE93D8) !important;
}

/* ── 166. Hero CTA magnetic button effect ────────────────── */
.btn-magnetic {
  transition: transform 0.25s var(--ease-spring) !important;
  display: inline-block;
}

/* ── 167. Persistent floating "Hire Me" CTA ──────────────── */
.hire-me-float {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 8000;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(16,185,129,0.4);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}
.hire-me-float.visible {
  opacity: 1;
  transform: translateX(0);
}
.hire-me-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(16,185,129,0.5);
  color: #fff;
  text-decoration: none;
}
.hire-me-float .hm-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@media (max-width: 768px) {
  .hire-me-float { bottom: 80px; left: 12px; font-size: 11px; padding: 8px 14px; }
}

/* ── 168. About photo blur-up lazy load ──────────────────── */
.img-thumb img {
  transition: filter 0.6s ease, opacity 0.6s ease;
}
.img-thumb img.img-loading {
  filter: blur(8px) saturate(0.5);
  opacity: 0.7;
}
.img-thumb img.img-loaded {
  filter: none;
  opacity: 1;
}

/* ── 170. Skill "hot / trending" badge ───────────────────── */
.skill-tag { position: relative; }
/* Clips click ripples to the chip's rounded shape without clipping the
   overflowing .skill-hot badge (see enhancements.js block 12). */
.skill-ripple-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.skill-hot {
  position: absolute;
  top: -10px; right: -6px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  border-radius: 999px;
  /* Border in the section background colour so the pill reads as a distinct,
     fully-contained chip instead of an orange "fold" bleeding into the corner.
     Light section bg by default; overridden for dark mode below. */
  border: 1.5px solid #ffffff;
  padding: 3px 8px;
  font-weight: 800;
  pointer-events: none;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(255,107,53,0.45);
}
.skill-hot i { font-size: 9px; }
:root[data-theme="dark"] .skill-hot { border-color: #1a1a2e; }
@keyframes hotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* ── 171. Services checklist items stagger entrance ──────── */
.services-item .services-checklist li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
}
.services-item.checklist-visible .services-checklist li {
  opacity: 1;
  transform: none;
}

/* ── 172. Hobby card per-type colored top border ─────────── */
.hobby-item:has(.hobby-icon--purple)::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.hobby-item:has(.hobby-icon--red)::before    { background: linear-gradient(90deg, #F44336, #E91E63); }
.hobby-item:has(.hobby-icon--green)::before  { background: linear-gradient(90deg, #4CAF50, #8BC34A); }
.hobby-item:has(.hobby-icon--orange)::before { background: linear-gradient(90deg, #FF9800, #FF5722); }

/* ── 173. "Available" badge subtle glow treatment ────────── */
.available-badge {
  animation: availGlow 3s ease-in-out infinite;
}
@keyframes availGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  50%       { box-shadow: 0 0 10px 2px rgba(16,185,129,0.2); }
}

/* ── 174. Project card: private repo dimming ─────────────── */
a.project-card:has(.private-repo-note) {
  opacity: 0.88;
}
a.project-card:has(.private-repo-note):hover {
  opacity: 1;
}

/* ── 169. Footer: improved social icon sizing ────────────── */
.footer-area .social-icon li a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.footer-area .social-icon li a:hover {
  border-color: transparent;
  transform: translateY(-4px) scale(1.15);
}

/* ── 175. Hero cursor spotlight ──────────────────────────── */
#hero-area { isolation: isolate; }
.hero-spotlight {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  z-index: 3;
  mix-blend-mode: screen;
}
@media (hover: none) { .hero-spotlight { display: none; } }

/* ── 176. Experience duration badge ─────────────────────── */
.exp-duration {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  background: rgba(102,126,234,0.07);
  border: 1px solid rgba(102,126,234,0.15);
  border-radius: 10px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.2px;
}
:root[data-theme="dark"] .exp-duration {
  background: rgba(102,126,234,0.12);
  color: #9ab0f9;
  border-color: rgba(102,126,234,0.25);
}

/* ── 177. Dark mode gradient card borders ────────────────── */
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .services-item,
:root[data-theme="dark"] .content-box,
:root[data-theme="dark"] .skill-category {
  border: 1px solid rgba(102,126,234,0.22) !important;
}
:root[data-theme="dark"] .project-card:hover,
:root[data-theme="dark"] .services-item:hover {
  border-color: rgba(102,126,234,0.45) !important;
}

/* ── 178. Achievement card confetti particles ────────────── */
.confetti-particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  pointer-events: none;
  animation: confettiFly 0.7s ease forwards;
  z-index: 10;
}
@keyframes confettiFly {
  0%   { transform: translate(0,0)       scale(1);   opacity: 1; }
  100% { transform: translate(var(--cx), var(--cy)) scale(0); opacity: 0; }
}

/* ── 179. Skill tag hover info tooltip ───────────────────── */
.skill-tag-info {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(20,20,36,0.96);
  color: #e2e8ff;
  font-size: 10px;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  border: 1px solid rgba(102,126,234,0.3);
  min-width: 110px;
  text-align: center;
}
.skill-tag-info::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(20,20,36,0.96);
}
.skill-tag-info .sti-category {
  display: block;
  color: #9ab0f9;
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.skill-tag:hover .skill-tag-info {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 180. Nav link ripple ────────────────────────────────── */
.navbar-nav .nav-link { overflow: hidden; }
.nav-ripple {
  position: absolute;
  border-radius: 50%;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background: rgba(102,126,234,0.25);
  transform: scale(0);
  animation: navRipple 0.55s ease forwards;
  pointer-events: none;
}
@keyframes navRipple {
  to { transform: scale(3); opacity: 0; }
}

/* ── 181. Print resume button ────────────────────────────── */
.btn-print-resume {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-1);
  border: 2px solid var(--brand-1);
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  text-decoration: none !important;
}
.btn-print-resume:hover {
  background: var(--brand-grad);
  color: #fff;
  transform: translateY(-2px);
  border-color: transparent;
}
:root[data-theme="dark"] .btn-print-resume {
  color: #9ab0f9;
  border-color: #9ab0f9;
}
:root[data-theme="dark"] .btn-print-resume:hover {
  color: #fff;
  border-color: transparent;
}
@media print {
  body > *:not(#resume) { display: none !important; }
  #resume { display: block !important; padding: 0 !important; }
  .btn-print-resume, .hire-me-float, .scroll-progress-bar,
  .back-to-top-btn, #dot-grid-bg { display: none !important; }

  /* Force a clean, legible printout:
     1. WOW.js leaves .wow elements at visibility:hidden until scrolled into
        view, so a user who prints without scrolling to the resume would get a
        blank page — force the resume content visible.
     2. Dark-mode users shouldn't print dark backgrounds (ink waste), and the
        gradient-clipped section heading would otherwise print invisible
        (transparent text-fill + browsers skip backgrounds). Force solid ink. */
  :root, :root[data-theme="dark"] { color-scheme: light !important; }
  #resume, #resume * {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    background: transparent !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    box-shadow: none !important;
    border-color: #999 !important;
  }
  #resume a { text-decoration: underline; }
}

/* ── 182. Project "top pick" star badge ──────────────────── */
.card-top-pick-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #5a3900;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(253,160,133,0.4);
  pointer-events: none;
  z-index: 5;
}

/* ── 183. Skills section: total count badge ──────────────── */
.skills-count-badge {
  display: inline-block;
  background: var(--brand-grad);
  color: #fff;
  /* The badge sits inside the gradient .section-title h2, which sets
     -webkit-text-fill-color:transparent (inherited) — that would make this
     white text invisible. Reset the fill so the label renders on the pill. */
  -webkit-text-fill-color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── 184. Footer: built-with icon row ────────────────────── */
.footer-built-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.footer-built-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  font-weight: 500;
}
.footer-built-icon i { font-size: 13px; }
.fbi-html  { color: #e44d26; }
.fbi-css   { color: #264de4; }
.fbi-js    { color: #f0db4f; }
.fbi-vercel { color: #999; }
:root[data-theme="dark"] .footer-built-icon { color: #aaa; }
:root[data-theme="dark"] .fbi-vercel { color: #ccc; }

/* ── 185. Hero name gradient shimmer ─────────────────────── */
.hero-name {
  background: linear-gradient(90deg, #fff 0%, #c3cfff 25%, #fff 50%, #c3cfff 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroShimmer 6s linear infinite;
}
@keyframes heroShimmer {
  to { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-name { animation: none; }
}

/* ── 186. Live badge pulsing dot ─────────────────────────── */
.live-badge .ldb-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 4px;
  vertical-align: middle;
  animation: ldbPulse 1.6s ease-in-out infinite;
}
@keyframes ldbPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .live-badge .ldb-dot { animation: none; }
}

/* ── 187. Timeline entry hover highlight ─────────────────── */
#resume .content-text {
  border-radius: 8px;
  padding: 4px 10px;
  margin-left: -10px;
  transition: background 0.3s ease, transform 0.3s ease;
}
#resume .content-text:hover {
  background: rgba(102,126,234,0.06);
  transform: translateX(4px);
}
:root[data-theme="dark"] #resume .content-text:hover {
  background: rgba(102,126,234,0.12);
}

/* ── 188. Project tech-count chip ────────────────────────── */
.project-tech-count {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-1);
  background: rgba(102,126,234,0.08);
  border-radius: 8px;
  padding: 1px 7px;
  margin-top: 6px;
}
:root[data-theme="dark"] .project-tech-count {
  color: #9ab0f9;
  background: rgba(102,126,234,0.15);
}

/* ── 189. Social icon hover label tooltip ────────────────── */
.social-icon li a { position: relative; }
.social-label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(20,20,36,0.96);
  color: #e2e8ff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
  letter-spacing: 0.3px;
}
.social-label::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(20,20,36,0.96);
}
.social-icon li a:hover .social-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 190. Section title copy-anchor link ─────────────────── */
.section-anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  margin-left: 10px;
  border-radius: 50%;
  color: var(--brand-1);
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  vertical-align: middle;
  border: none;
  background: transparent;
}
.section-title:hover .section-anchor-link {
  opacity: 0.65;
  transform: scale(1);
}
.section-anchor-link:hover {
  opacity: 1 !important;
  background: rgba(102,126,234,0.12);
}
:root[data-theme="dark"] .section-anchor-link { color: #9ab0f9; }

/* ── 191. Skill category header count ────────────────────── */
.skill-category-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  margin-left: 6px;
}
:root[data-theme="dark"] .skill-category-count { color: #888; }

/* ── 192. Hero stat hover micro-interaction ──────────────── */
.hero-stat {
  border-radius: 8px;
  transition: transform 0.25s var(--ease-spring, ease), background 0.25s ease;
  cursor: default;
}
.hero-stat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}
.hero-stat-num { transition: transform 0.25s ease, color 0.25s ease; }
.hero-stat:hover .hero-stat-num {
  transform: scale(1.12);
  color: #c3cfff;
}
.hero-stat:hover .hero-stat-label { color: rgba(255,255,255,0.95); }
@media (prefers-reduced-motion: reduce) {
  .hero-stat, .hero-stat:hover, .hero-stat-num { transform: none; }
}

/* ── 193. Project card external-link hint ────────────────── */
a.project-card { /* ensure positioned for hint */ }
/* .project-ext-hint (the "↗" circle) was removed — together with the old
   "View Project →" label it overlapped the purple "View Live Demo" overlay on
   hover. The external-link affordance now lives in the project modal popup. */

/* ── 194. Project card icon hover bounce ─────────────────── */
.card-icon-wrap {
  transition: transform 0.3s var(--ease-spring, ease);
}
a.project-card:hover .card-icon-wrap {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
}
@media (prefers-reduced-motion: reduce) {
  a.project-card:hover .card-icon-wrap { transform: none; }
}

/* ── 195. Anchor scroll offset for fixed navbar ──────────── */
/* Fixes in-page anchor jumps landing under the fixed/blurred navbar. */
#about, #services, #resume, #skills,
#achievements, #portfolio-highlights, #contact {
  scroll-margin-top: 90px;
}
@media (max-width: 768px) {
  #about, #services, #resume, #skills,
  #achievements, #portfolio-highlights, #contact {
    scroll-margin-top: 72px;
  }
}

/* ── 196. Native color-scheme per theme ──────────────────── */
/* Aligns UA form controls, scrollbars and default UI with the theme. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* ── 197. Deep-link target highlight ─────────────────────── */
/* Draws the eye to a section when arriving via a shared #anchor link. */
.section-title.deep-link-flash {
  animation: deepLinkFlash 1.6s ease;
}
@keyframes deepLinkFlash {
  0%   { text-shadow: 0 0 0 rgba(102,126,234,0); }
  20%  { text-shadow: 0 0 22px rgba(102,126,234,0.65); }
  100% { text-shadow: 0 0 0 rgba(102,126,234,0); }
}
.deep-link-target-glow {
  position: relative;
}
.deep-link-target-glow::before {
  content: "";
  position: absolute;
  inset: -8px -16px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(102,126,234,0.14), transparent 70%);
  opacity: 0;
  animation: deepLinkGlow 1.8s ease;
  pointer-events: none;
  z-index: -1;
}
@keyframes deepLinkGlow {
  0%   { opacity: 0; }
  25%  { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section-title.deep-link-flash { animation: none; }
  .deep-link-target-glow::before { animation: none; }
}

/* ── 198. Dark mode: scrolled navbar link contrast ───────── */
/* The base template colours nav links #333, which is unreadable on the dark
   scrolled navbar (rgba(20,20,40,.82)). Lift them to a light tone in dark mode
   once the navbar gains its solid scrolled background. */
:root[data-theme="dark"] .navbar.scrolled .onepage-nev .nav-link,
:root[data-theme="dark"] .navbar.top-nav-collapse .onepage-nev .nav-link {
  color: #d6deff !important;
}
:root[data-theme="dark"] .navbar.scrolled .onepage-nev .nav-link:hover,
:root[data-theme="dark"] .navbar.top-nav-collapse .onepage-nev .nav-link:hover {
  color: #ffffff !important;
}

/* ── 199. Dark mode: mobile slicknav menu panel ──────────── */
/* slicknav.css hardcodes a white panel (.slicknav_menu ul { background:#fff })
   with #666 links — a jarring white sheet over the dark theme. Theme it dark. */
:root[data-theme="dark"] .slicknav_menu ul,
:root[data-theme="dark"] .slicknav_nav,
:root[data-theme="dark"] .slicknav_nav ul {
  background: #14142c !important;
}
:root[data-theme="dark"] .slicknav_nav a,
:root[data-theme="dark"] .slicknav_nav .slicknav_item {
  color: #d6deff !important;
}
:root[data-theme="dark"] .slicknav_nav a:hover {
  background: rgba(102, 126, 234, 0.18) !important;
  color: #ffffff !important;
}
:root[data-theme="dark"] .slicknav_nav li {
  border-top: 1px solid rgba(102, 126, 234, 0.12);
}
:root[data-theme="dark"] .slicknav_nav li:first-child {
  border-top: none;
}
:root[data-theme="dark"] .slicknav_btn {
  background: rgba(102, 126, 234, 0.15) !important;
}
:root[data-theme="dark"] .slicknav_nav .slicknav_arrow {
  background: transparent none !important;
  color: #d6deff !important;
}

/* ── 200. Touch target: enlarge Services title links ─────── */
/* The service card title links were ~20px tall — below the 24px touch-target
   minimum (WCAG 2.5.8). Pad the tap area without shifting the layout. */
.services-item .services-content h3 a {
  display: inline-block;
  padding: 5px 6px;
  margin: -5px 0;
}

/* ── 201. Equal-height cards: Achievements & Hobbies ─────── */
/* Bootstrap rows are flex, so the columns already stretch to equal height, but
   the inner cards don't fill them — leaving uneven bottoms when one card has
   more content (e.g. the Chess card's FIDE badge, the longer award list).
   Make the inner cards fill their column so every row aligns. */
#achievements .content-box {
  height: 100%;
}
.hobby-item {
  height: 100%;
}

/* ── 202. Light-mode contrast: timeline body text ────────── */
/* The experience/education descriptions were #888 on white (3.17:1 — below the
   WCAG AA 4.5:1 minimum for body text). Darken them in light mode only; dark
   mode already renders them in a light tone, so it's left untouched. */
:root:not([data-theme="dark"]) .timeline li .line-text {
  color: #5f6b75;
}

/* ── 203. Timeline "next level" cohesive card system ──────────
   Consolidates the resume timeline into one polished glass-card design and
   drives all accent colour from the per-<li> --tl-accent var (set in
   enhancements.js block 120), replacing the fragile :nth-child colour-coding.
   Higher specificity (#resume + .timeline) deliberately overrides the older,
   scattered card rules (main.css padding/bg, block 187 tight padding + the
   translateX hover, custom.css dark #16213e). */

/* Card shell */
#resume .timeline .content-text {
  position: relative;
  background: #f7f8ff;
  border: 1px solid rgba(102,126,234,0.14);
  border-radius: 14px;
  padding: 15px 18px 15px 20px;
  margin-left: 0;
  box-shadow: 0 1px 2px rgba(20,20,50,0.04);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s ease,
              border-color 0.3s ease, background 0.3s ease;
}
#resume .timeline .content-text:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(102,126,234,0.16);
  border-color: rgba(102,126,234,0.32);
  background: #fff;
}
:root[data-theme="dark"] #resume .timeline .content-text {
  background: rgba(124,142,255,0.05) !important;
  border-color: rgba(124,142,255,0.16);
  box-shadow: none;
}
:root[data-theme="dark"] #resume .timeline .content-text:hover {
  background: rgba(124,142,255,0.10) !important;
  border-color: rgba(124,142,255,0.34);
  box-shadow: 0 12px 28px rgba(0,0,0,0.38);
}

/* Rounded accent bar inside the card (colour from --tl-accent) */
#resume .timeline .content-text::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--tl-accent, var(--brand-1));
  opacity: 0.9;
}
/* Current role uses the animated green glow bar (::after) instead */
.experience-current .content-text::before { display: none; }

/* Neutral, consistent title colour (accent now lives on the bar + dot) */
#resume .timeline .line-title { color: #1f2740; }
:root[data-theme="dark"] #resume .timeline .line-title { color: #e7ecff !important; }

/* Node dots: recoloured to the entry accent, larger, with a soft ring */
#resume .timeline > li::before {
  width: 12px !important; height: 12px !important;
  border: 2px solid var(--tl-accent, var(--brand-1)) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(102,126,234,0.10);
  margin-left: -37px;
  margin-top: 20px;
}
:root[data-theme="dark"] #resume .timeline > li::before {
  background: #161a2e !important;
}
/* Header li (the one with the Education/Experience icon) has no entry dot —
   re-hide it after the rule above re-introduced one over main.css's reset. */
#resume .timeline > li:first-child::before { display: none !important; }

/* Brand-tinted rail */
#resume .timeline li { border-left-color: rgba(102,126,234,0.22); }
:root[data-theme="dark"] #resume .timeline li { border-left-color: rgba(124,142,255,0.20) !important; }

/* Lighter, less heavy year markers */
#resume .timeline-year-label {
  padding: 6px 16px;
  font-size: 10px;
  background: rgba(102,126,234,0.06);
  border-color: rgba(102,126,234,0.14);
}

/* Section header spacing inside the resume section */
#resume .section-title { margin-bottom: 8px; }
#resume .section-desc { margin-bottom: 48px; }

/* ── 204. Hero readability: darker overlay + text drop-shadows ─────────
   The shared hero photo is bright on the left/centre where the headline sits,
   so the white name + role line washed out (failed contrast). Darken the
   overlay and add a focused vignette behind the text, plus drop-shadows on the
   hero text so it stays legible regardless of what's behind it. */
#hero-area .overlay {
  background:
    radial-gradient(120% 95% at 40% 44%, rgba(6,5,18,0.74) 0%, rgba(6,5,18,0) 60%),
    linear-gradient(135deg, rgba(17,14,40,0.96), rgba(48,38,98,0.88), rgba(7,7,20,0.97));
}
/* Push the opacity pulse (block 138) higher so the floor stays dark */
@keyframes heroGradientPulse {
  0%   { opacity: 0.90; }
  50%  { opacity: 0.85; }
  100% { opacity: 0.93; }
}
.hero-name {
  filter: drop-shadow(0 3px 16px rgba(0,0,0,0.55));
}
#hero-area .contents p,
#hero-area .contents .script-font {
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
#hero-area .hero-open-badge { text-shadow: none; }
/* Name shimmer disabled (novelty); static white-weighted gradient stays legible */
.hero-name { animation: none !important; background-position: 0% center !important; }

/* ── 212. Featured project: compact award line (de-emphasize the trophy wall) */
.featured-awards-line {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}
.featured-awards-line .icon-mr { color: #fbbf24; }

/* ── 205. Achievements: colored top accent per card (matches each icon) ──
   Ties the three cards together like the Services cards and lifts them from
   plain panels to cohesive accent cards. Equal-height is handled by block 201. */
#achievements .row > div:nth-child(1) .achievement-card { border-top: 3px solid #f59e0b; }
#achievements .row > div:nth-child(2) .achievement-card { border-top: 3px solid #10b981; }
#achievements .row > div:nth-child(3) .achievement-card { border-top: 3px solid #2196f3; }
#achievements .achievement-card {
  border-radius: 12px;
  overflow: hidden;
}

/* ── 206. Projects: anchor tech tags to the card bottom ──────────
   Cards are already equal-height per row, but shorter-content cards (e.g.
   "Safe RL") left the tech tags floating mid-card with a gap beneath. The card
   is a flex column, so push the tag row (and the tech-count chip after it) to
   the bottom for a clean aligned grid. */
a.project-card .text-center { margin-top: auto; }
a.project-card .card-desc-center { margin-bottom: 14px; }

/* ── 207. About photo: reframe the white cutout ─────────────────
   The headshot is a cutout on white with an 8px solid-white border that glares
   against the dark theme. Round it, swap the mat to a theme-aware tone (dark in
   dark mode), and deepen the shadow so it reads as a framed portrait. */
#about .img-thumb img {
  border: 6px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.40);
}
:root[data-theme="dark"] #about .img-thumb img {
  border-color: #20203a;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
/* Match the animated gradient glow frame to the new radius */
.img-thumb::after { border-radius: 22px; }

/* ── 208. Services process stepper: hover lift on each step ──────
   (All connector arrows already render via the staggered reveal in block 90.) */
.process-step {
  transition: transform 0.3s var(--ease-spring), opacity 0.4s ease;
}
.process-step:hover {
  transform: translateY(-4px);
}
.process-step:hover .step-icon {
  color: var(--brand-1);
  transform: scale(1.08);
}
.process-step .step-icon {
  transition: transform 0.3s var(--ease-spring), color 0.3s ease;
}

/* ── 209. Contact: social links to balance the address column ────── */
.contact-social {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(102,126,234,0.14);
}
.contact-social-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: 12px;
}
.contact-social .social-icon { margin: 0; padding: 0; }
:root[data-theme="dark"] .contact-social { border-top-color: rgba(124,142,255,0.18); }

/* ── 210. Footer brand block + email ────────────────────────────── */
.footer-brand { margin-bottom: 22px; }
.footer-brand-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
}
.footer-brand-tag {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.footer-email { margin: 14px 0 2px; }
.footer-email a {
  color: var(--brand-1) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: color 0.25s ease;
}
.footer-email a:hover { color: #9ab0f9 !important; }

/* ── 211. Hero value-prop: smaller name, clean role line, impact tagline ──
   Recruiter 8-second test: lead with role + proof, not a giant legal name. */
#hero-area .contents .head-title.hero-name {
  font-size: 54px;
  letter-spacing: 6px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero-role-line {
  font-size: 22px !important;
  font-weight: 700;
  color: #dbe3ff !important;
  letter-spacing: 1px;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.75);
}
.hero-tagline {
  max-width: 640px;
  margin: 0 auto 8px !important;
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.55 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}
/* Tighten the oversized hero padding so the CTAs sit above the fold */
#hero-area .contents { padding: 120px 0 90px !important; }
@media (max-width: 768px) {
  #hero-area .contents .head-title.hero-name { font-size: 32px; letter-spacing: 3px; }
  .hero-role-line { font-size: 18px !important; }
  .hero-tagline { font-size: 15px !important; }
  #hero-area .contents { padding: 90px 0 70px !important; }
}

/* ── 213. Counter labels: readable in light mode ──────────────────────────
   .counter-section .counter p is hardcoded #fff (fine on the dark section in
   dark mode) but invisible on the light gradient in light mode. */
:root:not([data-theme="dark"]) .counter-section .counter p {
  color: #44506a;
}
