@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@100..900&display=swap');

/* ═══════════════════════════════════════════
   CUSTOM PROPERTIES — DARK (default) / LIGHT
   ═══════════════════════════════════════════ */
:root {
  /* Backgrounds — deep navy-black */
  --bg:        #040a18;
  --bg2:       #060d21;
  --bg3:       #0a1428;

  /* Text */
  --tx:        #e8f4ff;
  --tx2:       #6b9dc4;
  --tx3:       #3d5f80;

  /* Accents — electric blue + cyan */
  --a1:        #2563eb;
  --a2:        #22d3ee;
  --a1d:       rgba(37,99,235,.16);
  --a2d:       rgba(34,211,238,.12);

  /* Apple Liquid Glass */
  --glass:     rgba(255,255,255,.055);
  --glass-b:   rgba(255,255,255,.10);
  --glass-sh:  0 8px 32px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.30);
  --glass-hb:  rgba(37,99,235,.50);

  /* Section alt */
  --sec-alt:   rgba(255,255,255,.028);

  /* Nav */
  --nav-bg:    rgba(4,10,24,.88);

  /* Status */
  --s-on:  #22d3ee;
  --s-rv:  #f59e0b;
  --s-dn:  #10b981;

  /* Misc */
  --r:   12px;
  --r-s: 8px;
  --r-l: 18px;
  --tr:  0.3s ease;
  --trs: 0.65s ease;
}

[data-theme="light"] {
  /* Backgrounds — pale ice-white */
  --bg:        #f0f6ff;
  --bg2:       #e8f0fd;
  --bg3:       #dbe8fa;
  --tx:        #0a1628;
  --tx2:       #2d5a8a;
  --tx3:       #5a7fa8;
  --a1:        #1d4ed8;
  --a2:        #0891b2;
  --a1d:       rgba(29,78,216,.12);
  --a2d:       rgba(8,145,178,.10);
  --glass:     rgba(255,255,255,.72);
  --glass-b:   rgba(29,78,216,.10);
  --glass-sh:  0 8px 32px rgba(0,0,0,.10);
  --glass-hb:  rgba(29,78,216,.40);
  --sec-alt:   rgba(228,238,255,.92);
  --nav-bg:    rgba(240,246,255,.92);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: hidden;
  max-width: 100vw;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body::-webkit-scrollbar { display: none; }
body { scrollbar-width: none; -ms-overflow-style: none; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--tx);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  transition: background var(--trs), color var(--tr);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Logos ── */
.logo-img {
  width: auto;
  display: block;
}
.nav-logo .logo-img {
  height: 28px;
  transform-origin: center;
  will-change: transform;
}
.footer-logo .logo-img {
  height: 22px;
}
.loader-logo .logo-img {
  height: 48px;
}

[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ── Apple Liquid Glass card ── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(48px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.06);
  border: 0.5px solid rgba(255,255,255,.12);
  border-top: 0.5px solid rgba(255,255,255,.22);
  border-left: 0.5px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  box-shadow:
    var(--glass-sh),
    inset 0 1.5px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.12);
  transition:
    border-color .35s ease,
    box-shadow .35s ease,
    border-radius .55s cubic-bezier(.34,1.2,.64,1),
    transform .35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}
.glass-card > * { position: relative; z-index: 1; }
.glass-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(37,99,235,.55);
  border-top-color: rgba(255,255,255,.38);
  box-shadow: var(--glass-sh);
}

/* small glass */
.glass-sm {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-b);
  border-radius: var(--r-s);
}

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--a1d);
  color: var(--a1);
  border: 1px solid rgba(37,99,235,.2);
  letter-spacing: .02em;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Frosted Glass Section Containers ── */
.section .container {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-b);
  border-radius: 30px;
  padding: 48px 32px;
}

/* ── Section header (also needs z-index above blobs) ── */
.sec-header { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--a2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, background .18s ease, opacity .3s;
  will-change: left, top;
}
.cursor-dot.expanded {
  width: 10px;
  height: 10px;
  background: var(--a1);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(37,99,235,.50);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .4s cubic-bezier(.34, 1.56, .64, 1),
              height .4s cubic-bezier(.34, 1.56, .64, 1),
              border-color .25s,
              background .25s,
              opacity .3s;
  will-change: left, top;
}
.cursor-ring.expanded {
  width: 58px;
  height: 58px;
  border-color: var(--a2);
  background: rgba(34,211,238,.05);
}
.cursor-ring.clicked {
  width: 20px;
  height: 20px;
  background: rgba(37,99,235,.20);
  transition: width .12s ease, height .12s ease;
}

/* ═══════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease;
}
.loader-inner { text-align: center; position: relative; z-index: 1; }
.loader-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.loader-track {
  width: 160px;
  height: 3px;
  background: var(--glass-b);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  border-radius: 4px;
  animation: fill-bar 1.1s ease forwards;
}
@keyframes fill-bar { to { width: 100%; } }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-b);
  z-index: 1000;
  transition: background var(--trs), border-color var(--tr);
}
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--tx2);
  position: relative;
  transition: color var(--tr);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.nav-link:hover,
.nav-link.active { color: var(--tx); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-cv {
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  color: var(--tx);
  backdrop-filter: blur(10px);
  transition: border-color var(--tr), background var(--tr);
  white-space: nowrap;
}
.btn-cv:hover { border-color: var(--a1); background: var(--a1d); }

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-toggle,
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tx2);
  border: 1px solid var(--glass-b);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: color var(--tr), border-color var(--tr), background var(--tr);
}
.lang-toggle:hover,
.lang-switcher.open .lang-toggle,
.theme-toggle:hover { color: var(--a1); border-color: var(--a1); }

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--tr), transform var(--tr);
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-btn {
  font-size: .8rem;
  font-weight: 600;
  color: var(--tx2);
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
  text-align: left;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--a1d);
  color: var(--a1);
}

[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--tx2);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-b);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mob-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--tx2);
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-b);
  transition: color var(--tr);
}
.mob-link:hover { color: var(--a1); }
.mob-cv {
  margin-top: 8px;
  color: var(--a1);
  border: none;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  z-index: 1;
}
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(37,99,235,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(34,211,238,.08) 0%, transparent 60%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(12px);
  color: var(--tx2);
  margin-bottom: 28px;
}
.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--a2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,211,238,.5); }
  50%      { box-shadow: 0 0 0 7px rgba(34,211,238,0); }
}

.hero-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--tx2);
  margin-bottom: 20px;
  font-weight: 400;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.typed { color: var(--a1); font-weight: 600; }
.caret {
  color: var(--a1);
  animation: blink .85s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  font-size: 1rem;
  color: var(--tx2);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  transition: transform var(--tr), box-shadow var(--tr), opacity var(--tr);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(37,99,235,.55); }

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  color: var(--tx);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover { border-color: var(--a1); background: var(--a1d); }

.btn-ghost {
  color: var(--tx2);
  font-size: .88rem;
  font-weight: 500;
  padding: 12px 8px;
  transition: color var(--tr);
}
.btn-ghost:hover { color: var(--a1); }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-b);
  border-radius: var(--r);
  padding: 18px 32px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-n {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-l {
  font-size: .75rem;
  color: var(--tx3);
  margin-top: 4px;
  white-space: nowrap;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--glass-b);
}

/* Floating tags */
.float-tag {
  position: absolute;
  font-size: .78rem;
  font-weight: 500;
  padding: 8px 14px;
  color: var(--tx2);
  z-index: 2;
  pointer-events: none;
  animation: float var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.f1 { top: 22%; left: 6%;  --dur:5.5s; --delay:0s;   --rot:-3deg; }
.f2 { top: 35%; right: 5%; --dur:7s;   --delay:.8s;  --rot:2deg;  }
.f3 { bottom:28%; left:4%; --dur:6.2s; --delay:1.4s; --rot:-2deg; }
.f4 { bottom:20%; right:6%;--dur:5.8s; --delay:.4s;  --rot:3deg;  }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--tx3);
  font-size: .72rem;
  letter-spacing: .1em;
  z-index: 2;
  animation: float-slow 2.5s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
@keyframes float-slow {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--tx3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--a1);
  border-radius: 4px;
  animation: scroll-w 2s ease-in-out infinite;
}
@keyframes scroll-w {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Hero reveal – triggered by JS on load */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   DECORATIVE BLOBS
   ═══════════════════════════════════════════ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.b1 { width:500px;height:500px;background:radial-gradient(circle,rgba(37,99,235,.18),transparent);top:-5%;left:-10%; }
.b2 { width:400px;height:400px;background:radial-gradient(circle,rgba(34,211,238,.14),transparent);top:10%;right:-8%; }
.b3 { width:450px;height:450px;background:radial-gradient(circle,rgba(37,99,235,.15),transparent);bottom:5%;left:5%; }
.b4 { width:350px;height:350px;background:radial-gradient(circle,rgba(34,211,238,.12),transparent);top:20%;left:-5%; }
.b5 { width:480px;height:480px;background:radial-gradient(circle,rgba(37,99,235,.13),transparent);bottom:0;right:-10%; }
.b6 { width:400px;height:400px;background:radial-gradient(circle,rgba(34,211,238,.15),transparent);top:15%;right:-5%; }
.b7 { width:500px;height:500px;background:radial-gradient(circle,rgba(37,99,235,.20),transparent);top:0;left:50%;transform:translateX(-50%); }

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  position: relative;
  padding: 96px 0;
  background: transparent;
  z-index: 1;
}
.section-alt {
  background: var(--sec-alt);
}
.section > *:not(.blob) { position: relative; z-index: 1; }

/* Section header */
.sec-header {
  text-align: center;
  margin-bottom: 60px;
}
.sec-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a1);
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.sec-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.about-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.portrait-wrap {
  position: relative;
  width: 240px; height: 240px;
}
.portrait-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  animation: spin-ring 8s linear infinite;
  z-index: 0;
}
@keyframes spin-ring {
  0%   { background: linear-gradient(135deg, var(--a1), var(--a2)); }
  50%  { background: linear-gradient(315deg, var(--a2), var(--a1)); }
  100% { background: linear-gradient(135deg, var(--a1), var(--a2)); }
}
.portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 4px solid var(--bg);
}
.portrait-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 60px var(--a1d), 0 0 100px var(--a1d);
  z-index: 0;
}
.p-badge {
  font-size: .8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.b-loc  { background: var(--glass); border: 1px solid var(--glass-b); color: var(--tx2); }
.b-status { background: var(--a1d); border: 1px solid rgba(37,99,235,.2); color: var(--a1); }
.dot-green {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-g 2s infinite;
}
@keyframes pulse-g {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.about-body .glass-card { padding: 36px; }
.about-hi {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-p {
  color: var(--tx2);
  margin-bottom: 14px;
  font-size: .95rem;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.info-ico { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.info-lbl {
  display: block;
  font-size: .72rem;
  color: var(--tx3);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.info-val { font-size: .88rem; color: var(--tx); }
a.link { color: var(--a1); transition: opacity var(--tr); }
a.link:hover { opacity: .75; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.soc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  color: var(--tx);
  transition: border-color var(--tr), background var(--tr), transform var(--tr);
}
.soc-btn:hover { transform: translateY(-2px); }
.soc-li:hover { border-color: #0a66c2; background: rgba(10,102,194,.12); }
.soc-gh:hover { border-color: var(--tx3); background: rgba(148,163,184,.12); }
.soc-or:hover { border-color: #a6ce39; background: rgba(166,206,57,.12); }

/* ═══════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════ */
.erasmus-card {
  padding: 36px;
  margin-bottom: 20px;
}
.erasmus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.era-badge {
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--a1d), var(--a2d));
  border: 1px solid rgba(37,99,235,.2);
  color: var(--a1);
}
.era-period {
  font-size: .82rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
}
.era-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.journey {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.j-stop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 180px;
}
.j-flag { font-size: 2rem; flex-shrink: 0; }
.j-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.j-uni   { font-weight: 600; font-size: .9rem; }
.j-city  { font-size: .8rem; color: var(--tx2); }
.j-dates {
  font-size: .75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--a1);
}
.j-arrow {
  flex-shrink: 0;
  color: var(--tx3);
  margin-top: 10px;
  align-self: center;
}

/* Erasmus route — numbered stops */
.era-route {
  position: relative;
  display: flex;
  gap: 0;
}
.era-route::before {
  content: '';
  position: absolute;
  top: 16px; /* center of the numbered circle (32px / 2) */
  left: calc(100% / 6);   /* approx midpoint of first stop */
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  opacity: 0.35;
  border-radius: 2px;
}
.era-stop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 8px;
}
.era-stop-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 18px rgba(37,99,235,.40), 0 0 40px rgba(37,99,235,.12);
  flex-shrink: 0;
}
.era-stop-flag { font-size: 1.6rem; line-height: 1; }
.era-stop-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.era-stop-deg {
  font-size: .72rem;
  font-weight: 600;
  color: var(--tx);
  line-height: 1.35;
}
.era-stop-uni {
  font-size: .70rem;
  color: var(--a1);
  font-weight: 500;
}
.era-stop-loc {
  font-size: .67rem;
  color: var(--tx2);
}
.era-stop-dates {
  font-size: .65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
}
@media (max-width: 600px) {
  .era-route { flex-direction: column; gap: 24px; }
  .era-route::before { display: none; }
  .era-stop { flex-direction: row; text-align: left; align-items: flex-start; gap: 14px; }
  .era-stop-body { align-items: flex-start; }
}

.edu-card {
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.edu-left { display: flex; align-items: center; gap: 16px; }
.edu-icon { font-size: 2.2rem; }
.edu-deg  { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1.05rem; }
.edu-dist {
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(16,185,129,.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.2);
  margin-top: 4px;
  display: inline-block;
}
.edu-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.edu-uni    { font-size: .88rem; color: var(--tx2); }
.edu-period { font-size: .78rem; font-family: 'JetBrains Mono', monospace; color: var(--tx3); }

/* ═══════════════════════════════════════════
   RESEARCH & PROJECTS (shared grid)
   ═══════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Research card */
.r-card { padding: 28px; }
.r-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.r-status {
  font-size: .72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .05em;
}
.s-ongoing { color: var(--s-on); }
.s-review  { color: var(--s-rv); }
.s-done    { color: var(--s-dn); }
.r-type {
  font-size: .72rem;
  color: var(--tx3);
  background: var(--glass);
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-b);
}
.r-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 14px;
}
.r-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.r-sup, .r-inst {
  font-size: .78rem;
  color: var(--tx2);
}
.r-yr {
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
}

/* ═══════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════ */
.pub-list { display: flex; flex-direction: column; gap: 24px; }
.pub-card { padding: 32px; }
.pub-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pub-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.accepted  { background: rgba(16,185,129,.12); color:#10b981; border:1px solid rgba(16,185,129,.2); }
.published { background: var(--a1d); color: var(--a1); border:1px solid rgba(37,99,235,.2); }
.pub-conf {
  font-size: .72rem;
  font-weight: 700;
  color: var(--tx3);
  background: var(--glass);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-b);
}
.pub-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}
.pub-venue {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: .83rem;
  color: var(--tx2);
  margin-bottom: 12px;
}
.pub-doi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--a2);
  border: 1px solid rgba(34,211,238,.25);
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: background var(--tr);
}
.pub-doi:hover { background: var(--a2d); }

/* ═══════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--a1), var(--a2), transparent);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 32px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px var(--a1d);
  z-index: 1;
}
.tl-card { padding: 28px 32px; }
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tl-role { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.tl-co   { font-weight: 600; color: var(--a1); font-size: .9rem; margin-bottom: 3px; }
.tl-loc  { font-size: .8rem; color: var(--tx2); }
.tl-period {
  font-size: .78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
}
.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.tl-bullets li {
  font-size: .88rem;
  color: var(--tx2);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.tl-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--a1);
}

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.proj-card { padding: 28px; display: flex; flex-direction: column; height: 100%; }
.proj-top  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.proj-ico  { font-size: 1.8rem; }
.proj-period { font-size: .75rem; font-family: 'JetBrains Mono', monospace; color: var(--tx3); }
.proj-title  { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.proj-desc   { font-size: .86rem; color: var(--tx2); line-height: 1.6; flex: 1; margin-bottom: 10px; }
.proj-org    { font-size: .78rem; color: var(--a1); font-weight: 600; margin-bottom: 4px; }

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.sk-cat { padding: 28px; }
.sk-ico  { font-size: 2rem; margin-bottom: 12px; }
.sk-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.sk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-tag {
  font-size: .78rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 5px 13px;
  border-radius: 20px;
}
.t-prog { background: rgba(37,99,235,.13); color: var(--a1); border: 1px solid rgba(37,99,235,.22); }
.t-ml   { background: rgba(34,211,238,.10); color: var(--a2); border: 1px solid rgba(34,211,238,.22); }
.t-data { background: rgba(96,165,250,.10); color: #60a5fa; border: 1px solid rgba(96,165,250,.22); }
.t-dev  { background: rgba(103,232,249,.10); color: #67e8f9; border: 1px solid rgba(103,232,249,.22); }

/* ═══════════════════════════════════════════
   ACHIEVEMENTS
   ═══════════════════════════════════════════ */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ach-card {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ach-ico  { font-size: 2.2rem; flex-shrink: 0; }
.ach-type {
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 4px;
}
.ach-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.ach-org { font-size: .78rem; color: var(--tx2); }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-sub {
  text-align: center;
  color: var(--tx2);
  max-width: 520px;
  margin: -28px auto 48px;
  font-size: .95rem;
  line-height: 1.7;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ct-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.ct-card:hover { transform: translateY(-4px); }
.ct-ico   { font-size: 2rem; }
.ct-lbl   { font-size: .72rem; font-family: 'JetBrains Mono', monospace; color: var(--tx3); text-transform: uppercase; letter-spacing: .08em; }
.ct-val   { font-size: .84rem; color: var(--tx); word-break: break-all; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-b);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-copy { font-size: .8rem; color: var(--tx3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .82rem; color: var(--tx3); transition: color var(--tr); }
.footer-links a:hover { color: var(--a1); }

/* ═══════════════════════════════════════════
   GLOW CARD — hover glow replaces old tilt
   ═══════════════════════════════════════════ */
.tilt-card {
  transform-style: flat;
  will-change: transform;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .float-tag { display: none; }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { align-items: center; }
  .info-grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; }
  .edu-right { align-items: flex-start; }
  .journey { flex-direction: column; }
  .j-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 12px; }
  .hero-stats { padding: 14px 12px; gap: 4px; }
  .stat-item { padding: 0 12px; }
  .stat-sep { height: 28px; }
  .btn-cv { display: none; }
  .timeline::before { left: 14px; }
  .tl-item { padding-left: 44px; }
  .tl-dot { left: 6px; width: 14px; height: 14px; }
  .tl-head { flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .section .container {
    padding: 32px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 14px; }
  .stat-sep { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* scrollbar hidden — replaced by custom scroll-progress bar */

/* ═══════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a1));
  background-size: 200% 100%;
  animation: prog-shimmer 2.8s linear infinite;
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(37,99,235,.85), 0 0 22px rgba(34,211,238,.4);
  transition: width .1s linear;
}
@keyframes prog-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ═══════════════════════════════════════════
   AMBIENT GRID (dark mode)
   ═══════════════════════════════════════════ */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.022) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   ENHANCED LOADER
   ═══════════════════════════════════════════ */
.loader-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
}
.loader-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,.25);
  animation: orbit-spin linear infinite;
}
.loader-orbit-1 {
  width: 140px; height: 140px;
  animation-duration: 2.2s;
}
.loader-orbit-2 {
  width: 180px; height: 180px;
  animation-duration: 3.5s;
  animation-direction: reverse;
  border-color: rgba(34,211,238,.2);
}
.loader-orb-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--a1);
  top: -3.5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--a1), 0 0 20px var(--a1d);
}
.loader-orbit-2 .loader-orb-dot { background: var(--a2); box-shadow: 0 0 10px var(--a2), 0 0 20px var(--a2d); }
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.loader-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.loader-tagline {
  font-size: .7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
  letter-spacing: .14em;
  margin-top: 12px;
  text-transform: uppercase;
  animation: pulse-fade 1.4s ease-in-out infinite;
}
@keyframes pulse-fade {
  0%,100% { opacity: .4; }
  50%      { opacity: 1;  }
}

/* ═══════════════════════════════════════════
   HERO ENHANCEMENTS (base)
   ═══════════════════════════════════════════ */
.sec-title {
  text-shadow: 0 0 60px rgba(37,99,235,.10);
}

/* ═══════════════════════════════════════════
   SYNTH DEPTH — scanline on hero
   ═══════════════════════════════════════════ */

/* Subtle scanline texture on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.025) 3px,
    rgba(0,0,0,.025) 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Glow on card hover (tilt-card class kept for compatibility) */
.tilt-card:hover {
  box-shadow: var(--glass-sh);
}

/* Sec-tag synth pulse */
.sec-tag {
  position: relative;
}
.sec-tag::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 8px var(--a1), 0 0 16px var(--a1d);
  animation: pulse 2s infinite;
}

/* ═══════════════════════════════════════════
   MAGNETIC BUTTON LIFT
   ═══════════════════════════════════════════ */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn-primary:hover::before { left: 120%; }

/* ═══════════════════════════════════════════
   BACK-TO-TOP
   ═══════════════════════════════════════════ */
.back-to-top {
  display: none !important;
}

/* ═══════════════════════════════════════════
   EDUCATION — UNIFIED CARD
   ═══════════════════════════════════════════ */
.edu-unified {
  padding: 36px;
  margin-bottom: 24px;
}
.edu-unified-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.edu-uni-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.edu-uni-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.edu-uni-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
  width: fit-content;
}
.edu-uni-badge.era {
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(34,211,238,.10));
  color: var(--a1);
  border: 1px solid rgba(37,99,235,.22);
}
.edu-uni-badge.bsc {
  background: rgba(16,185,129,.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.22);
}
.edu-uni-degree {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.edu-uni-period {
  font-size: .75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
}

/* Subway-map mobility track */
.edu-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: nowrap;
}
.edu-stop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 140px;
}
.edu-stop-flag {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.edu-stop-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(37,99,235,.6), 0 0 24px rgba(37,99,235,.2);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.edu-stop-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding: 0 4px;
}
.edu-stop-deg {
  font-size: .72rem;
  font-weight: 600;
  color: var(--tx);
  line-height: 1.35;
}
.edu-stop-uni {
  font-size: .70rem;
  color: var(--a1);
  font-weight: 500;
}
.edu-stop-loc {
  font-size: .67rem;
  color: var(--tx2);
}
.edu-stop-dates {
  font-size: .65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
}

.edu-track-seg {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-top: 38px; /* aligns with dot row (flag height + gap) */
  width: 48px;
}
.edu-track-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  opacity: 0.45;
  border-radius: 1px;
}

/* Single institution (bachelor) */
.edu-single {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 4px;
  flex-wrap: wrap;
}
.edu-single-flag {
  font-size: 2rem;
}
.edu-single-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.edu-single-uni {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--tx);
}
.edu-single-loc {
  font-size: .84rem;
  color: var(--tx2);
}
.edu-dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 10px;
  background: rgba(16,185,129,.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.22);
  margin-top: 2px;
  width: fit-content;
}
.edu-single-period {
  font-size: .75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
  margin-left: auto;
  white-space: nowrap;
  align-self: flex-start;
}

/* ═══════════════════════════════════════════
   AMBIENT GRID (dark mode) — blue tint (override)
   ═══════════════════════════════════════════ */
[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(37,99,235,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.018) 1px, transparent 1px);
}

/* ═══════════════════════════════════════════
   FOOTER — snap
   ═══════════════════════════════════════════ */
.footer {
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   LIGHT MODE 3D BACKDROP — warm tint
   ═══════════════════════════════════════════ */
[data-theme="light"] .hero-overlay {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(29,78,216,.10) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(8,145,178,.08) 0%, transparent 60%);
}
[data-theme="light"] .section-alt {
  background: rgba(228,238,255,.94);
}

@media (max-width: 768px) {
  .edu-track { flex-wrap: wrap; gap: 12px; }
  .edu-track-seg { display: none; }
  .edu-stop { flex: 0 0 calc(50% - 6px); }
}

/* ═══════════════════════════════════════════
   LIGHT MODE — opaque liquid glass
   ═══════════════════════════════════════════ */
[data-theme="light"] .glass-card {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(28px) saturate(160%) brightness(1.02);
  -webkit-backdrop-filter: blur(28px) saturate(160%) brightness(1.02);
  border-top-color: rgba(255,255,255,.90);
  border-left-color: rgba(255,255,255,.70);
  box-shadow:
    0 4px 24px rgba(29,78,216,.10),
    0 1px 4px rgba(0,0,0,.06),
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(29,78,216,.05);
}

/* ═══════════════════════════════════════════
   HORIZONTAL GALLERY (Research & Projects)
   ═══════════════════════════════════════════ */
.cards-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 28px;
  cursor: grab;
}
.cards-gallery::-webkit-scrollbar { display: none; }
.cards-gallery.grabbing { cursor: grabbing; }
.cards-gallery > * {
  flex: 0 0 360px;
  scroll-snap-align: start;
  min-height: 300px;
}

/* ═══════════════════════════════════════════
   SCROLL-FOLLOWING 3D ORB
   ═══════════════════════════════════════════ */
.scroll-orb {
  position: fixed;
  right: 22px;
  top: 80px;
  width: 56px;
  height: 56px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 490;
  transition: top 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  opacity: 0.3;
  transform: scale(0.2);
}
.scroll-orb.visible {
  opacity: 1;
  transform: scale(1);
}
.scroll-orb.visible:hover {
  transform: scale(1.15);
  filter: brightness(1.25);
}

.orb-sphere {
  position: absolute;
  width: 38px; height: 38px;
  top: 9px; left: 9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.6) 0%, transparent 42%),
    radial-gradient(circle at 70% 74%, rgba(34,211,238,.7) 0%, transparent 44%),
    linear-gradient(135deg, var(--a1) 0%, var(--a2) 100%);
  box-shadow:
    0 0 18px rgba(37,99,235,.85),
    0 0 38px rgba(37,99,235,.42),
    0 0 58px rgba(34,211,238,.22),
    inset -3px -3px 10px rgba(0,0,0,.28),
    inset 2px 2px 7px rgba(255,255,255,.28);
  animation: orb-breathe 2.8s ease-in-out infinite;
  z-index: 1;
}
@keyframes orb-breathe {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.10); }
}

.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid;
}
.orb-ring.ring-a {
  width: 52px; height: 20px;
  margin: -10px 0 0 -26px;
  border-color: rgba(37,99,235,.55);
  animation: ring-a-spin 4s linear infinite;
}
.orb-ring.ring-b {
  width: 66px; height: 26px;
  margin: -13px 0 0 -33px;
  border-color: rgba(34,211,238,.42);
  animation: ring-b-spin 7s linear infinite reverse;
}
@keyframes ring-a-spin {
  from { transform: rotate(0deg) rotateX(60deg); }
  to   { transform: rotate(360deg) rotateX(60deg); }
}
@keyframes ring-b-spin {
  from { transform: rotate(30deg) rotateX(30deg); }
  to   { transform: rotate(390deg) rotateX(30deg); }
}

@media (max-width: 1100px) { .scroll-orb { display: none; } }

/* ═══════════════════════════════════════════
   BLOB PULSE — geometric
   ═══════════════════════════════════════════ */
.blob { animation: blob-pulse 8s ease-in-out infinite alternate; }
.b1 { animation-delay: 0s; }
.b3 { animation-delay: -2.6s; }
.b5 { animation-delay: -5.2s; }
@keyframes blob-pulse {
  0%   { transform: scale(1);    opacity: 1; }
  50%  { transform: scale(1.12); opacity: .82; }
  100% { transform: scale(.92);  opacity: .92; }
}

/* Extra glow on section titles */
.sec-title {
  transition: text-shadow .4s ease;
}
.section:hover .sec-title {
  text-shadow: 0 0 40px rgba(37,99,235,.18), 0 0 80px rgba(34,211,238,.10);
}

/* ═══════════════════════════════════════════
   CONTACT & ACHIEVEMENT CARDS — lift only
   ═══════════════════════════════════════════ */
.ct-card:hover { transform: translateY(-6px) !important; }
.ach-card:hover { transform: translateY(-5px); }

/* ═══════════════════════════════════════════
   GALLERY WRAP — fade edge + scroll hint
   ═══════════════════════════════════════════ */
.gallery-wrap {
  position: relative;
}
.gallery-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 28px;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--bg) 85%);
  pointer-events: none;
  z-index: 3;
  transition: opacity .4s ease;
}
.gallery-wrap.at-end::after { opacity: 0; }

.gallery-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: .70rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tx3);
  margin-bottom: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  user-select: none;
  transition: opacity .5s ease;
}
.gallery-hint .hint-arrow {
  display: inline-flex;
  gap: 3px;
}
.gallery-hint .hint-arrow span {
  animation: hint-chevron 1.4s ease-in-out infinite;
  opacity: 0;
}
.gallery-hint .hint-arrow span:nth-child(1) { animation-delay: 0s; }
.gallery-hint .hint-arrow span:nth-child(2) { animation-delay: .15s; }
.gallery-hint .hint-arrow span:nth-child(3) { animation-delay: .30s; }
@keyframes hint-chevron {
  0%,100% { opacity: 0; transform: translateX(-4px); }
  50%      { opacity: 1; transform: translateX(0);    }
}

/* ═══════════════════════════════════════════
   SKILL TAG COLOR UPDATE (data/dev)
   ═══════════════════════════════════════════ */
.t-data {
  background: rgba(96,165,250,.10);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,.22);
}
.t-dev {
  background: rgba(103,232,249,.10);
  color: #67e8f9;
  border: 1px solid rgba(103,232,249,.22);
}

/* ═══════════════════════════════════════════
   HERO NAME GLOW — electric blue
   ═══════════════════════════════════════════ */
.hero-name {
  text-shadow: 0 0 80px rgba(37,99,235,.20);
}
.hero-name .gradient-text {
  filter: drop-shadow(0 0 24px rgba(37,99,235,.60)) drop-shadow(0 0 60px rgba(34,211,238,.28));
  animation: name-glow 4s ease-in-out infinite alternate;
}
@keyframes name-glow {
  from { filter: drop-shadow(0 0 20px rgba(37,99,235,.52)) drop-shadow(0 0 50px rgba(34,211,238,.22)); }
  to   { filter: drop-shadow(0 0 38px rgba(37,99,235,.85)) drop-shadow(0 0 80px rgba(34,211,238,.42)); }
}

.bn-name {
  color: #ffffff;
  transition: color var(--tr);
}
[data-theme="light"] .bn-name {
  color: #000000;
}

/* Publication cards in gallery */
.pub-card { min-width: 0; }
.cards-gallery .pub-card { flex: 0 0 480px; }

/* ═══════════════════════════════════════════
   SECTION SCAN LINE — sweeps across on enter
   ═══════════════════════════════════════════ */
.section {
  overflow: hidden;
}
.section::after {
  content: '';
  position: absolute;
  left: -110%;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--a2) 50%, transparent 100%);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.section.scan-active::after {
  animation: scan-sweep 1.4s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes scan-sweep {
  0%   { left: -110%; opacity: 0; }
  8%   { opacity: 0.90; }
  88%  { opacity: 0.55; }
  100% { left: 110%;   opacity: 0; }
}

/* ═══════════════════════════════════════════
   SECTION PARALLAX DRIFT — container shift
   ═══════════════════════════════════════════ */
.section > .container {
  will-change: transform;
}

/* ═══════════════════════════════════════════
   BENGALI FONT OVERRIDE
   ═══════════════════════════════════════════ */
html[lang="bn"],
html[lang="bn"] * {
  font-family: "Plus Jakarta Sans", "Noto Serif Bengali", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
