/* ============================================================
   MH SHUVO PORTFOLIO â€” style.css
   Aesthetic: Neural-Noir â€” dark, technical, editorial
   ============================================================ */

:root {
  --bg: #060912;
  --bg2: #090f1d;
  --surface: #0e1929;
  --surface2: #152437;
  --border: rgba(34, 211, 238, 0.1);
  --border-hover: rgba(34, 211, 238, 0.32);
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --accent4: #fbbf24;
  --accent-rgb: 34, 211, 238;
  --text: #eef6ff;
  --text2: #8fb4cc;
  --muted: #4a647e;
  --font-display: 'Bebas Neue', cursive;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --glow: 0 0 40px rgba(34, 211, 238, 0.22);
  --shadow: 0 24px 60px rgba(0,0,0,0.7);
  /* Dynamic vars set by viewport.js */
  --navbar-h: 70px;
  --topbar-h: 34px;
  --vvh: 100vh;
}

[data-theme="light"] {
  --bg: #f0f4ff;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #e8eeff;
  --border: rgba(79, 70, 229, 0.14);
  --border-hover: rgba(79, 70, 229, 0.38);
  --accent: #4f46e5;
  --accent2: #7c3aed;
  --accent3: #059669;
  --text: #0d1020;
  --text2: #4a5270;
  --muted: #9aa0c0;
  --glow: 0 0 30px rgba(79, 70, 229, 0.2);
}

/* Light mode navbar & topbar overrides */
/* Hide custom cursor in light theme — cyan ring doesn't work on light bg */
[data-theme="light"] .cursor-dot,
[data-theme="light"] .cursor-outline {
  display: none;
}
[data-theme="light"] body {
  cursor: auto;
}
[data-theme="light"] a,
[data-theme="light"] button,
[data-theme="light"] select,
[data-theme="light"] [role="button"],
[data-theme="light"] input[type="submit"],
[data-theme="light"] .nav-link,
[data-theme="light"] .skill-tab,
[data-theme="light"] .proj-filter,
[data-theme="light"] .proj-btn,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .hamburger,
[data-theme="light"] .cert-view-btn,
[data-theme="light"] .modal-close {
  cursor: pointer;
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.15);
}
[data-theme="light"] .nav-brand,
[data-theme="light"] .nav-link,
[data-theme="light"] .brand-text {
  color: #0d1117;
}
[data-theme="light"] .brand-name { color: var(--accent); }

/* ── Light mode interactive element overrides ───────────────── */
/* Fix cyan-tinted backgrounds/borders → indigo tints for light theme */
[data-theme="light"] .hero-socials a:hover {
  background: rgba(79, 70, 229, 0.07);
  border-color: var(--accent);
}
[data-theme="light"] .ic-icon {
  background: rgba(79, 70, 229, 0.08);
}
[data-theme="light"] .skill-tab:hover,
[data-theme="light"] .skill-tab.active {
  background: rgba(79, 70, 229, 0.06);
}
[data-theme="light"] .sc-tag {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.13);
}
[data-theme="light"] .sc-tag:hover {
  background: rgba(79, 70, 229, 0.1);
  border-color: var(--accent);
}
[data-theme="light"] .proj-filter:hover,
[data-theme="light"] .proj-filter.active {
  background: rgba(79, 70, 229, 0.06);
}
[data-theme="light"] .proj-btn.primary {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
}
[data-theme="light"] .proj-btn:hover {
  border-color: var(--accent);
}
[data-theme="light"] .paper-link {
  border-color: rgba(79, 70, 229, 0.2);
}
[data-theme="light"] .paper-link:hover {
  background: rgba(79, 70, 229, 0.1);
}
[data-theme="light"] .acad-card {
  border-color: rgba(79, 70, 229, 0.25);
}
[data-theme="light"] .acad-card:hover {
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.1), 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .acad-card::before {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
}
[data-theme="light"] .acad-icon--ieee {
  background: rgba(79, 70, 229, 0.10);
}
[data-theme="light"] .footer-cta {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
}
[data-theme="light"] .footer-cta:hover {
  background: rgba(79, 70, 229, 0.15);
}
[data-theme="light"] .nav-btn:hover {
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.35);
}
[data-theme="light"] .cta-primary:hover {
  background: #6d5fcc;
  border-color: #6d5fcc;
  color: #fff;
  box-shadow: 0 0 24px rgba(79, 70, 229, 0.4);
}
[data-theme="light"] .cta-resume:hover {
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.35);
}
[data-theme="light"] .proj-avail-badge--demo {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
}
[data-theme="light"] .pab-dot {
  background: var(--accent);
}
[data-theme="light"] .contact-link-item:hover {
  border-color: var(--border-hover);
}
[data-theme="light"] .exp-color-blue {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}
[data-theme="light"] .cert-blue {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}
[data-theme="light"] body a {
  cursor: pointer;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(ellipse 90% 55% at 75% -5%,  rgba(6, 182, 212, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at -5% 85%,  rgba(109, 40, 217, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 110%, rgba(15, 118, 110, 0.06) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  touch-action: pan-y;
  transition: background 0.3s, color 0.3s;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
[data-theme="light"] body, body[data-theme="light"] {
  background:
    radial-gradient(ellipse 80% 50% at 75% -5%,  rgba(8, 145, 178, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at -5% 85%,  rgba(124, 58, 237, 0.04) 0%, transparent 60%),
    var(--bg);
}

body.loading { overflow: hidden; }
body a { cursor: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* Dot-grid overlay */
.noise-overlay {
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 1;
}
[data-theme="light"] .noise-overlay {
  background-image:
    radial-gradient(circle, rgba(8, 145, 178, 0.08) 1px, transparent 1px);
}

/* ── CSS Aurora Background ──────────────────────────────────── */
#bg-orbs {
  position: fixed; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}
.orb-1 {
  width: 700px; height: 700px;
  top: -250px; left: -200px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.17) 0%, transparent 65%);
  animation: orb-drift-1 24s ease-in-out infinite alternate;
}
.orb-2 {
  width: 600px; height: 600px;
  bottom: -200px; right: -200px;
  background: radial-gradient(circle, rgba(167,139,250,0.17) 0%, transparent 65%);
  animation: orb-drift-2 30s ease-in-out infinite alternate;
}
.orb-3 {
  width: 520px; height: 520px;
  top: 38%; left: 45%;
  background: radial-gradient(circle, rgba(52,211,153,0.09) 0%, transparent 65%);
  filter: blur(110px);
  animation: orb-drift-3 36s ease-in-out infinite alternate;
}
@keyframes orb-drift-1 {
  from { transform: translate(0,0)         scale(1);    opacity: 0.85; }
  to   { transform: translate(65px,50px)   scale(1.12); opacity: 1;    }
}
@keyframes orb-drift-2 {
  from { transform: translate(0,0)          scale(1);    opacity: 0.75; }
  to   { transform: translate(-55px,-65px)  scale(1.18); opacity: 1;    }
}
@keyframes orb-drift-3 {
  from { transform: translate(0,0)          scale(1);    opacity: 0.55; }
  to   { transform: translate(-85px,60px)   scale(1.28); opacity: 0.85; }
}
[data-theme="light"] .orb-1 {
  background: radial-gradient(circle, rgba(8,145,178,0.12) 0%, transparent 65%);
}
[data-theme="light"] .orb-2 {
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 65%);
}
[data-theme="light"] .orb-3 {
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 65%);
}

/* â”€â”€ Preloader â”€â”€ */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  color: var(--text);
  letter-spacing: 6px;
  margin-bottom: 8px;
  line-height: 1;
}
.preloader-name span {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.preloader-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 32px;
  opacity: 0.8;
}
.preloader-bar {
  width: 200px; height: 2px;
  background: var(--surface2);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0;
  transition: width 0.1s linear;
}
.preloader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text2);
}

/* â”€â”€ Custom cursor â”€â”€ */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.1s ease;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 999;
  transform: translate(-50%, -50%);
}
.cursor-outline {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(34, 211, 238,0.5);
  border-radius: 50%;
  z-index: 998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.1s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-outline.hovering {
  width: 52px; height: 52px;
  border-color: var(--accent);
  background: rgba(34, 211, 238,0.05);
}

/* â”€â”€ Top Bar (live time/date) â”€â”€ */
#topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h, 34px);
  z-index: 600;
  background: rgba(6, 9, 18,0.97);
  border-bottom: 1px solid rgba(34, 211, 238,0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  backdrop-filter: blur(12px);
  letter-spacing: 0.5px;
  gap: 8px;
}
.topbar-left {
  display: flex; align-items: center; gap: 14px;
  min-width: 0; overflow: hidden;
}
.topbar-greeting {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-date {
  color: rgba(136,146,164,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-right {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.topbar-time {
  color: #10b981;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.topbar-status {
  display: flex; align-items: center; gap: 5px;
  color: rgba(136,146,164,0.7);
  white-space: nowrap;
}
.topbar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: topbar-blink 2s ease-in-out infinite;
}
@keyframes topbar-blink {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
/* Light mode topbar */
[data-theme="light"] #topbar {
  background: rgba(13,17,23,0.97);
  border-bottom-color: rgba(99, 102, 241,0.15);
}
@media (max-width: 900px) {
  #topbar { padding: 0 20px; }
  .topbar-date { display: none; }
}
@media (max-width: 480px) {
  :root { --topbar-h: 38px; }
  .topbar-status { display: none; }
  .topbar-greeting { display: none; }
  .topbar-time { font-size: 14px; letter-spacing: 1.5px; font-weight: 700; }
}

#navbar {
  position: fixed; top: var(--topbar-h, 34px); left: 0; right: 0; z-index: 500;
  padding: 0 60px;
  height: 70px;
  display: flex; align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(6, 9, 18, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  width: 100%; max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-brand:hover { color: var(--accent); }
.brand-dot { color: var(--accent); }
.brand-name { color: var(--accent); }
.nav-menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 1px;
  background: var(--accent);
  transition: left 0.2s, right 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}
.nav-link:hover::after, .nav-link.active::after {
  left: 12px; right: 12px;
}
.nav-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.nav-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 24px rgba(34,211,238,0.35);
}
.nav-btn--unavailable {
  opacity: 0.6;
  cursor: not-allowed !important;
}
.nav-btn--unavailable:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  transform: none;
}
.nav-cv-toast {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  white-space: normal;
  min-width: 260px;
  z-index: 999;
}
.nav-menu li:has(.nav-btn--unavailable) { position: relative; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  cursor: none;
  transition: all 0.2s;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: none; padding: 4px;
  touch-action: manipulation;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}
.nav-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0;
  transition: width 0.1s linear;
}

/* â”€â”€ Container / Layout â”€â”€ */
.container { max-width: 1300px; margin: 0 auto; padding: 0 60px; }
section { padding: 120px 0; position: relative; z-index: 10; }
.dark-section {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}
/* Subtle section divider */
.dark-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238,0.18), transparent);
}

/* â”€â”€ Section header â”€â”€ */
.section-header { margin-bottom: 64px; }
.section-tag { display: none; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text);
}
.section-title span {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  font-size: 16px;
  color: var(--text2);
  margin-top: 16px;
  max-width: 600px;
}

/* â”€â”€ Hero â”€â”€ */
#hero {
  min-height: 100vh;
  min-height: var(--vvh, 100vh);
  display: flex;
  padding: var(--navbar-h, 80px) 60px 40px;
  box-sizing: border-box;
  position: relative; z-index: 10;
}
.hero-container {
  max-width: 1300px; margin: auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: center;
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.eyebrow-line {
  width: 40px; height: 1px;
  background: var(--accent);
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent3);
  border-radius: 50%;
}
.eyebrow-dot.blink { animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 1px;
  line-height: 1.08;
  margin-bottom: 16px;
  overflow: visible;
}
.title-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: slideUp 0.85s cubic-bezier(0.16,1,0.3,1) forwards;
}
.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.38s; }
.title-line:nth-child(3) { animation-delay: 0.56s; }
.accent-line {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 4px;
}
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
  min-height: 24px;
  max-width: 100%;
  word-break: break-word;
}
.type-cursor { animation: blink 0.7s infinite; }
.hero-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--accent2);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--accent2);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cta-primary:hover {
  background: #c4b5fd;
  border-color: #c4b5fd;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.4);
  transform: translateY(-1px);
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.cta-collab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 2px solid rgba(167, 139, 250, 0.4);
  color: var(--accent2);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cta-collab:hover {
  border-color: var(--accent2);
  background: rgba(167, 139, 250, 0.08);
  transform: translateY(-1px);
}
.cta-resume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cta-resume:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}
.cta-resume i {
  font-size: 0.8rem;
}
.cta-resume--unavailable {
  opacity: 0.5;
  cursor: not-allowed !important;
  position: relative;
}
.cta-resume--unavailable:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  border-color: rgba(34,211,238,0.35);
}
.cv-toast {
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid rgba(34,211,238,0.35);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
  max-width: 340px;
  line-height: 1.5;
  animation: cv-toast-in 0.25s ease;
}
.cv-toast a {
  color: var(--accent);
  text-decoration: underline;
}
@keyframes cv-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-socials {
  display: flex; gap: 12px;
}
.hero-socials a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.hero-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238,0.07);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* Hero right */
.hero-visual-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
  overflow: visible;
}
.avatar-frame {
  position: relative;
  width: 260px; height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-img-wrap {
  width: 200px; height: 200px;
  border-radius: 50%;
  position: relative; z-index: 2;
  overflow: hidden;
  /* Safari mobile: border-radius + overflow:hidden clip fix */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  background: linear-gradient(135deg, var(--surface2), var(--surface));
}
.avatar-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 2px solid var(--border);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--accent);
  letter-spacing: 2px;
  position: absolute; inset: 0;
}
.avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative; z-index: 1;
  border-radius: 50%;
}
.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: pulse-ring 3s ease-in-out infinite;
}
.ring-1 { width: 220px; height: 220px; animation-delay: 0s; }
.ring-2 { width: 260px; height: 260px; animation-delay: 1s; opacity: 0.15; }
.ring-3 { width: 300px; height: 300px; animation-delay: 2s; opacity: 0.07; }
@keyframes pulse-ring {
  0%,100%{transform:scale(1);opacity:inherit}
  50%{transform:scale(1.04);opacity:0.5}
}

.stat-chips {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}
.chip:hover { transform: scale(1.05) !important; }
.chip-1 { top: 2%;  right: -12%; }
.chip-2 { bottom: 10%; right: -12%; }
.chip-3 { top: 2%;  left: -12%; }
.chip-4 { bottom: 10%; left: -12%; }
.chip-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.chip-icon {
  display: block;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 4px;
}
.chip-label {
  font-size: 11px;
  color: var(--text2);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.hero-badge {
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 20px;
  padding: 8px 20px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--accent3);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.badge-pulse {
  width: 8px; height: 8px;
  background: var(--accent3);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.4)}
  50%{box-shadow:0 0 0 6px rgba(16,185,129,0)}
}

/* â”€â”€ Mobile-only hero photo â”€â”€ */
.hero-mobile-photo {
  display: none; /* hidden on desktop */
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.mobile-avatar-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
}
.mobile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.mobile-avatar-fallback {
  display: none; /* shown only on img error via JS */
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 900;
  color: var(--accent);
  background: var(--surface);
}
.mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent3);
  background: rgba(16,185,129,0.05);
  max-width: 100%;
  white-space: nowrap;
}
.mobile-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent3);
  animation: pulse-dot 1.5s infinite;
}

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  animation: bounce 2s infinite;
}
.hero-scroll-hint span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.scroll-arrow { color: var(--muted); font-size: 14px; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ About â”€â”€ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text2);
  margin-bottom: 18px;
}
.about-text strong { color: var(--text); }
.about-quote {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
.about-quote i { color: var(--accent); margin-bottom: 10px; display: block; }
.about-quote blockquote {
  font-style: italic;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
}
.about-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 0.25s;
}
.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.ic-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(34, 211, 238,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--accent);
}
.ic-body strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.ic-body span { font-size: 12px; color: var(--text2); line-height: 1.4; }

/* ── Video CV Section ─────────────────────────────────────── */
.video-cv-frame {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 54%; /* ~16:9 */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(34,211,238,0.15);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
  background: #0a0f1a;
}
.video-cv-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
@media (max-width: 640px) {
  .video-cv-frame { border-radius: 8px; }
}

/* â”€â”€ Skills â”€â”€ */
.skill-tabs {
  display: flex; gap: 8px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.skill-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text2);
  cursor: none;
  transition: all 0.2s;
}
.skill-tab:hover, .skill-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238,0.06);
}
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 60px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.skill-card.hidden { display: none; }
.sc-icon {
  font-size: 24px; margin-bottom: 14px;
  color: var(--accent);
}
.sc-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.sc-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(34, 211, 238,0.06);
  border: 1px solid rgba(34, 211, 238,0.13);
  border-radius: 4px;
  color: var(--text2);
  transition: all 0.2s;
}
.sc-tag:hover { color: var(--accent); border-color: var(--accent); background: rgba(34, 211, 238,0.1); }

/* Bars */
.bars-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 28px;
  color: var(--text2);
}
.bars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bar-item { margin-bottom: 4px; }
.bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.bar-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.bar-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.bar-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* â”€â”€ Research â”€â”€ */
/* ── Academic Profiles ───────────────────────────────── */
.acad-profiles { margin-bottom: 56px; }
.acad-profiles-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 2px;
  color: var(--text2);
  margin-bottom: 24px;
}
.acad-profiles-heading span { color: var(--accent); }
.acad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.acad-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #0e1929;
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}
.acad-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,211,238,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.acad-card:hover {
  border-color: rgba(34,211,238,0.6);
  box-shadow: 0 0 20px rgba(34,211,238,0.1), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.acad-card:hover::before { opacity: 1; }
.acad-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.acad-icon svg { width: 24px; height: 24px; }
.acad-icon--rg   { background: rgba(0,204,136,0.12); color: #00cc88; }
.acad-icon--ieee { background: rgba(34,211,238,0.10); color: var(--accent); }
.acad-icon--gs   { background: rgba(66,133,244,0.12); color: #4285f4; }
.acad-icon--orcid{ background: rgba(166,206,57,0.12); color: #a6ce39; }
.acad-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acad-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
}
.acad-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.acad-card:hover .acad-cta { color: #fff; }
@media (max-width: 900px) {
  .acad-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .acad-grid { grid-template-columns: 1fr; }
  .acad-card { padding: 16px 18px; }
}

.research-list { display: flex; flex-direction: column; gap: 20px; }
.paper-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 28px; align-items: center;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.paper-card::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  transform: scaleY(0);
  transition: transform 0.3s;
  transform-origin: top;
}
.paper-card:hover::after { transform: scaleY(1); }
.paper-card:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
  box-shadow: var(--shadow);
}
.paper-idx {
  font-family: var(--font-display);
  font-size: 52px;
  color: rgba(34, 211, 238,0.1);
  line-height: 1;
  text-align: center;
}
.paper-body h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}
.paper-meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.paper-venue {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent2);
}
.paper-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 3px;
  color: var(--accent3);
}
.paper-badge.review {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.25);
  color: var(--accent4);
}
.paper-link {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 18px;
  border: 1px solid rgba(34, 211, 238,0.2);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.paper-link:hover {
  background: rgba(34, 211, 238,0.1);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.paper-link.disabled {
  color: var(--muted);
  border-color: var(--border);
  pointer-events: none;
}

/* ── Under Review / Coming Soon ──────────────────────────────── */
.coming-soon-section { margin-top: 52px; }
.coming-soon-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  letter-spacing: 2px;
  color: var(--text2);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.coming-soon-heading span { color: var(--accent); }

.paper-card--upcoming {
  opacity: 0.8;
  border-style: dashed;
  border-color: rgba(34,211,238,0.18);
  background: rgba(14,25,41,0.6);
}
.paper-card--upcoming:hover {
  opacity: 1;
  border-color: rgba(34,211,238,0.45);
  border-style: dashed;
}
.paper-card--upcoming .paper-idx {
  color: rgba(34,211,238,0.06);
}

/* Animated badge */
.badge-upcoming {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  background: rgba(34,211,238,0.07);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 4px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: cs-badge-pulse 2.4s ease-in-out infinite;
  white-space: nowrap;
}
.badge-upcoming--amber {
  background: rgba(251,191,36,0.07);
  border-color: rgba(251,191,36,0.3);
  color: var(--accent4);
  animation: cs-badge-pulse-amber 2.4s ease-in-out infinite;
}

@keyframes cs-badge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34,211,238,0);
    border-color: rgba(34,211,238,0.3);
  }
  50% {
    box-shadow: 0 0 10px 2px rgba(34,211,238,0.18);
    border-color: rgba(34,211,238,0.65);
  }
}
@keyframes cs-badge-pulse-amber {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(251,191,36,0);
    border-color: rgba(251,191,36,0.3);
  }
  50% {
    box-shadow: 0 0 10px 2px rgba(251,191,36,0.18);
    border-color: rgba(251,191,36,0.65);
  }
}

/* Disabled Coming Soon button */
.coming-soon-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 18px;
  border: 1px dashed rgba(34,211,238,0.15);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
  cursor: default;
}

/* â”€â”€ Projects â”€â”€ */
.project-filters {
  display: flex; gap: 8px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.proj-filter {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text2);
  cursor: none;
  transition: all 0.2s;
}
.proj-filter:hover, .proj-filter.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238,0.06);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: none;
  position: relative;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 32px 60px rgba(0,0,0,0.5);
}
.project-card.hidden { display: none; }
.project-media {
  height: 180px;
  background: var(--surface2);
  position: relative; overflow: hidden;
  cursor: pointer;
}
.project-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover .project-thumb { transform: scale(1.08); }
.project-media-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
}
.project-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-play-btn { opacity: 1; }
.play-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-size: 18px;
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 18,0.9), transparent);
}
.project-cat-chip {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(34, 211, 238,0.15);
  border: 1px solid rgba(34, 211, 238,0.3);
  border-radius: 4px;
  color: var(--accent);
}

/* ── Project availability badges ─────────────────────────────── */
.proj-avail-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
  z-index: 10; pointer-events: none;
  backdrop-filter: blur(4px);
  letter-spacing: 0.4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.project-card:hover .proj-avail-badge {
  opacity: 1;
  transform: translateY(0);
}
.proj-avail-badge--demo {
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.35);
  color: var(--accent);
}
.proj-avail-badge--live {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.35);
  color: #fbbf24;
}
.proj-avail-badge--github {
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--accent2);
}
.pab-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pab-pulse 1.8s ease-in-out infinite;
}
@keyframes pab-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

.project-body { padding: 24px; }
.project-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.project-body p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.project-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.stack-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 3px;
  color: var(--accent2);
}
.project-footer {
  display: flex; gap: 8px;
}
.proj-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 9px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.proj-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.proj-btn.primary {
  background: rgba(34, 211, 238,0.08);
  border-color: rgba(34, 211, 238,0.2);
  color: var(--accent);
}

/* â”€â”€ Education â”€â”€ */
.edu-timeline { position: relative; padding-left: 50px; }
.edu-timeline::before {
  content: '';
  position: absolute; left: 12px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}
.edu-item {
  position: relative;
  margin-bottom: 36px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.edu-item:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
  box-shadow: var(--shadow);
}
.edu-dot {
  position: absolute;
  left: -44px; top: 36px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 211, 238,0.2), 0 0 20px rgba(34, 211, 238,0.3);
}
.edu-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
}
.edu-item h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.edu-institution {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 14px;
}
.edu-gpa {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent3);
  font-weight: 700;
}
.edu-desc {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}
.edu-courses {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.course-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(34, 211, 238,0.06);
  border: 1px solid rgba(34, 211, 238,0.12);
  border-radius: 4px;
  color: var(--text2);
}

/* â”€â”€ Experience â”€â”€ */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.exp-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow), var(--glow);
}
.exp-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.exp-color-blue  { background: rgba(34, 211, 238,0.1);  border: 1px solid rgba(34, 211, 238,0.2);  color: var(--accent); }
.exp-color-purple{ background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); color: var(--accent2);}
.exp-color-green { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--accent3);}
.exp-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.exp-role {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.2;
}
.exp-type {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(34, 211, 238,0.08);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238,0.2);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}
.exp-org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}
.exp-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 5px;
}
.exp-period i { font-size: 10px; }
.exp-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text2);
  margin-bottom: 16px;
  flex: 1;
}
.exp-highlights {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
  padding: 0;
}
.exp-highlights li {
  font-size: 13px;
  color: var(--text2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.exp-highlights li::before {
  content: '\203A';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

/* Mobile hero stats row */
.mobile-stats-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 4px;
}
.ms-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  min-width: 68px;
}
.ms-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.ms-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text2);
  white-space: nowrap;
}

/* â”€â”€ Resume â”€â”€ */
.resume-pdf-container {
  max-width: 100%;
  margin: 0 auto;
}
.resume-pdf-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
}
.resume-pdf-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.resume-actions-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn-dl, .btn-view {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 14px 24px;
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-dl {
  background: var(--accent3);
  color: var(--bg);
  text-decoration: none;
  border: none;
}
.btn-dl:hover { background: #34d399; box-shadow: 0 0 20px rgba(16,185,129,0.3); }
.btn-dl--unavailable {
  opacity: 0.45;
  cursor: not-allowed !important;
  background: var(--accent3) !important;
  color: var(--bg) !important;
  box-shadow: none !important;
}
.btn-dl--unavailable:hover { background: var(--accent3); box-shadow: none; }
.resume-pdf-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: rgba(34,211,238,0.05);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}
.resume-pdf-notice i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.resume-pdf-notice a { color: var(--accent); text-decoration: underline; }
.pdf-toast {
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  animation: cv-toast-in 0.25s ease;
}
.pdf-toast a { color: var(--accent); text-decoration: underline; }
.btn-view {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: none;
}
.btn-view:hover { border-color: var(--accent); color: var(--accent); }

/* Resume document content */
.res-doc { font-size: 13px; color: var(--text); line-height: 1.6; }
.res-name {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 3px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.res-contact {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.res-contact a { color: var(--accent); text-decoration: none; }
.res-divider { height: 1px; background: var(--border); margin: 18px 0; }
.res-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.res-summary { font-size: 13px; color: var(--text2); line-height: 1.75; margin-bottom: 8px; }
.res-role { font-weight: 600; font-size: 14px; color: var(--text); }
.res-org { font-size: 13px; color: var(--accent2); }
.res-date { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.res-item { margin-bottom: 18px; }
.res-item ul { padding-left: 16px; margin-top: 8px; }
.res-item li { font-size: 12px; color: var(--text2); line-height: 1.65; margin-bottom: 5px; }
.res-edu-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; margin-bottom: 14px;
}
.res-edu-degree { font-weight: 600; font-size: 14px; }
.res-edu-school { font-size: 12px; color: var(--text2); }
.res-edu-year { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-align: right; }
.res-edu-gpa { font-family: var(--font-mono); font-size: 12px; color: var(--accent3); text-align: right; }
.res-skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.res-skill-row span:first-child { font-weight: 600; font-size: 12px; color: var(--text); }
.res-skill-row span:last-child { font-size: 12px; color: var(--text2); }


/* -- Certifications -- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--border);
  transition: background 0.3s;
}
.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow), var(--glow);
}
.cert-card:hover::before { background: var(--accent); }
.cert-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.cert-blue   { background: rgba(34,211,238,0.1);  border: 1px solid rgba(34,211,238,0.2);  color: var(--accent); }
.cert-purple { background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); color: var(--accent2); }
.cert-green  { background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.2);  color: var(--accent3); }
.cert-amber  { background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.2);  color: var(--accent4); }
.cert-body { flex: 1; width: 100%; }
.cert-category {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(34,211,238,0.08);
  color: var(--accent);
  border: 1px solid rgba(34,211,238,0.18);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}
.cert-title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.cert-issuer, .cert-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.cert-issuer i, .cert-year i { color: var(--accent); font-size: 11px; }
.cert-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(34,211,238,0.07);
  color: var(--accent);
  border: 1px solid rgba(34,211,238,0.2);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.cert-view-btn:hover {
  background: rgba(34,211,238,0.16);
  border-color: rgba(34,211,238,0.45);
}

/* â”€â”€ Contact â”€â”€ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.contact-link-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.contact-link-item:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}
.cli-icon {
  width: 38px; height: 38px;
  background: rgba(34, 211, 238,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.cli-body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cli-body span { font-family: var(--font-mono); font-size: 11px; color: var(--text2); }
.contact-refs h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ref-cards { display: flex; flex-direction: column; gap: 12px; }
.ref-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ref-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ref-title { font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.ref-org { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.ref-email { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-decoration: none; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text2);
}
.form-field label span { color: var(--accent); }
.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(34, 211, 238,0.4);
  box-shadow: 0 0 0 3px rgba(34, 211, 238,0.08);
}
.form-field input.error,
.form-field textarea.error { border-color: #ef4444; }
.field-err {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ef4444;
  min-height: 16px;
}
.char-count {
  position: absolute; bottom: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.form-submit {
  position: relative;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--accent), #0099cc);
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bg);
  cursor: none;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 10px;
  align-self: flex-start;
  overflow: hidden;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238,0.35);
}
.form-submit:active { transform: translateY(0); }
.btn-loader {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-submit.loading .btn-label { opacity: 0.5; }
.form-submit.loading .btn-loader { display: block; }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  padding: 14px 20px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 8px;
  color: var(--accent3);
  font-size: 14px;
}
.form-success.show { display: flex; }
.form-success i { font-size: 18px; }

/* â”€â”€ Modals â”€â”€ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 9, 18,0.92);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 960px; width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.93);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-resume { max-width: 780px; }
.modal-cert {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow: hidden;
}
.cert-modal-header {
  padding: 24px 60px 16px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cert-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 4px;
}
.cert-modal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
}
.cert-modal-meta i { color: var(--accent); }
.cert-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#certModalFrame {
  flex: 1;
  width: 100%;
  min-height: 580px;
  border: none;
  background: #fff;
}
.cert-modal-img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #fff;
  display: none;
}
.modal-close {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 14px;
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-content { padding: 40px; }

/* Project modal specific */
.pm-media {
  margin: -40px -40px 32px;
  background: var(--surface2);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
  max-height: 500px;
}
.pm-media-img {
  width: 100%; height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.pm-media-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
}
.pm-video-wrap {
  width: 100%; height: 100%;
}
.pm-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pm-video-wrap iframe {
  width: 100%; height: 100%;
  border: none;
}
.pm-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.pm-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.pm-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 24px;
}
.pm-highlights {
  margin-bottom: 24px;
}
.pm-highlights h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pm-highlights ul {
  padding-left: 0; list-style: none;
}
.pm-highlights li {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.pm-highlights li::before {
  content: '\25B8';
  position: absolute; left: 0;
  color: var(--accent);
}
.pm-links { display: flex; gap: 12px; }
.pm-link {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.pm-link.primary {
  background: var(--accent);
  color: var(--bg);
}
.pm-link.primary:hover { background: #67e8f9; }
.pm-link.ghost {
  border: 1px solid var(--border);
  color: var(--text2);
}
.pm-link.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* â”€â”€ Footer â”€â”€ */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 60px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  position: relative; z-index: 10;
}
.footer-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-links-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links-col ul { list-style: none; }
.footer-links-col li { margin-bottom: 10px; }
.footer-links-col a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-newsletter h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-newsletter p { font-size: 13px; color: var(--text2); margin-bottom: 16px; }
.footer-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 20px;
  background: rgba(34, 211, 238,0.08);
  border: 1px solid rgba(34, 211, 238,0.25);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-cta:hover { background: rgba(34, 211, 238,0.15); box-shadow: var(--glow); }
.footer-bottom {
  max-width: 1300px; margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.footer-bottom i { color: #ef4444; margin: 0 3px; }
.footer-bottom .footer-heart { font-style: normal; margin: 0 2px; }

/* â”€â”€ Footer Meta Stats Bar â”€â”€ */
.footer-meta {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 16px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.fm-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text2);
}
.fm-item i { color: var(--accent); font-size: 11px; }
.fm-sep { color: var(--muted); font-size: 10px; }

/* â”€â”€ WPM Typing Indicator â”€â”€ */
.wpm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(148, 163, 184, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: default;
  user-select: none;
}
.wpm-badge.wpm-visible {
  opacity: 0.4;
}
.wpm-badge:hover {
  opacity: 0.85;
  color: var(--accent);
}
.wpm-value {
  font-weight: 700;
}
.wpm-unit { color: var(--muted); }

/* â”€â”€ Copy Button â”€â”€ */
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}
.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238,0.07);
}
.copy-btn.copy-success {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(16,185,129,0.1);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  #navbar { padding: 0 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  #navbar { padding: 0 24px; }
  #hero { padding: var(--navbar-h, 80px) 24px 24px; }
  section { padding: 80px 0; }
  .hero-container {
    gap: 20px;
    text-align: center;
  }
  /* Center eyebrow on mobile */
  .hero-eyebrow { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  /* Hide scroll hint on mobile */
  .hero-scroll-hint { display: none; }
  /* Prevent horizontal overflow */
  #hero { overflow-x: hidden; }
  .hero-container { overflow-x: hidden; }
}

/* ── Tablet: stack hero at 768px ─────────────────────────────── */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 0;
    text-align: center;
  }
  .hero-right { order: -1; justify-content: center; }
  .hero-left  { order: 0; }
  .hero-eyebrow { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .skills-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; }
  .bars-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .paper-card { grid-template-columns: 1fr; gap: 16px; padding: 20px 24px; }
  .paper-idx { display: none; }
  .paper-link { align-self: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  /* Mobile nav dropdown */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: calc(var(--topbar-h, 34px) + var(--navbar-h, 70px));
    left: 0; right: 0;
    background: rgba(6, 9, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    z-index: 499;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    animation: navSlideDown 0.22s cubic-bezier(0.16,1,0.3,1);
  }
  .nav-menu.open li { border-bottom: 1px solid rgba(34, 211, 238,0.06); }
  .nav-menu.open li:last-child { border-bottom: none; }
  .nav-menu.open .nav-link {
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    width: 100%;
  }
  .nav-menu.open .nav-link::after { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #footer { padding: 48px 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .resume-actions-bar { gap: 12px; }
  .modal-content { padding: 24px; }
  .pm-media { height: 200px; margin: -24px -24px 24px; }
  .pm-title { font-size: 28px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  #navbar { padding: 0 16px; }
  #hero { padding: var(--navbar-h, 80px) 16px 16px; }
  section { padding: 64px 0; }

  /* Hero */
  .hero-title { font-size: clamp(44px, 13vw, 80px); }
  .hero-bio { font-size: 15px; }
  .hero-sub { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-primary, .cta-secondary, .cta-resume { width: 100%; justify-content: center; }

  /* Scale down the hero visual card on narrow screens */
  .hero-visual-wrap { padding: 40px; }

  /* WPM badge â€” too wide on small screens */
  .wpm-badge { display: none; }

  /* Experience */
  .exp-grid { grid-template-columns: 1fr; }
  .exp-header { flex-direction: column; align-items: flex-start; gap: 4px; }

  .certs-grid { grid-template-columns: 1fr; }
  /* About */
  .about-cards { grid-template-columns: 1fr; }

  /* Skills */
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .skill-tabs, .project-filters { gap: 6px; }

  /* Section headers */
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(36px, 9vw, 56px); }

  /* Bars */
  .bars-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #footer { padding: 40px 16px 20px; }

  /* Resume */
  .resume-pdf-embed { height: 70vh; min-height: 400px; }

  /* Edu */
  .edu-timeline { padding-left: 32px; }
  .edu-dot { left: -28px; }
  .edu-item { padding: 20px; }
  .edu-item h3 { font-size: 20px; }

  /* Contact */
  .contact-grid { gap: 40px; }
  .form-submit { align-self: stretch; width: 100%; justify-content: center; }

  /* Modals */
  .modal-overlay { padding: 12px; }
  .modal-box { max-height: 95vh; border-radius: 10px; }
  .modal-content { padding: 16px; }
  .pm-media { height: 160px; margin: -16px -16px 16px; border-radius: 10px 10px 0 0; }
  .pm-title { font-size: 22px; }
  .pm-links { flex-wrap: wrap; }
  .pm-link { flex: 1; justify-content: center; }

  /* Preloader */
  .preloader-name { font-size: clamp(22px, 6vw, 36px); letter-spacing: 4px; }

  /* Paper cards */
  .paper-card { padding: 16px; }
  .paper-meta { flex-direction: column; align-items: flex-start; gap: 6px; }

}

@media (max-width: 400px) {
  .hero-title { font-size: clamp(38px, 11vw, 60px); }
  .hero-socials a { width: 36px; height: 36px; }
  .skill-tab, .proj-filter { padding: 7px 14px; font-size: 11px; }
}

/* â”€â”€ Touch / Pointer coarse (phones & tablets) â”€â”€ */
@media (pointer: coarse) {
  body { cursor: auto; overflow-x: hidden; }
  body a { cursor: auto; }
  .cursor-dot, .cursor-outline { display: none !important; }

  /* Restore visible cursors for all interactive elements */
  a, button, .skill-tab, .proj-filter, .theme-toggle,
  .hamburger, .form-submit, .back-top, .modal-close,
  .btn-view, .btn-dl,
  .cta-primary, .cta-secondary, .cta-resume,
  .nav-link, .nav-btn, .proj-btn, .paper-link,
  .contact-link-item, .footer-cta, .footer-socials a,
  .hero-socials a { cursor: pointer; }

  /* Minimum 44px tap targets */
  .nav-link, .nav-btn { min-height: 44px; display: flex; align-items: center; }
  .skill-tab, .proj-filter { min-height: 40px; }
  .hero-socials a { width: 44px; height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .cta-primary, .cta-secondary, .cta-resume { min-height: 48px; }

  /* Disable hover transforms on cards (no hover on touch) */
  .skill-card:hover,
  .info-card:hover,
  .edu-item:hover,
  .project-card:hover,
  .paper-card:hover,
  .contact-link-item:hover { transform: none; }
}

/* â”€â”€ Hamburger â†’ X animation â”€â”€ */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* â”€â”€ Reduced motion â”€â”€ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  /* Ensure title lines are visible when animations are skipped */
  .title-line { opacity: 1 !important; transform: none !important; }
}

/* Static SEO fallback content — visible in initial HTML, cleared by JS on DOMContentLoaded */
/* No special hiding needed: JS render functions call innerHTML='' before injecting dynamic cards */
