/* ===== CSS VARIABLES ===== */
:root {
  --bg-deep:        #050914;
  --bg-surface:     #0d1526;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-card-hover:  rgba(255, 255, 255, 0.07);
  --border:         rgba(255, 255, 255, 0.08);
  --border-glow:    rgba(0, 212, 255, 0.3);

  --cyan:           #00d4ff;
  --cyan-dim:       rgba(0, 212, 255, 0.12);
  --cyan-glow:      rgba(0, 212, 255, 0.22);
  --violet:         #8b5cf6;
  --violet-dim:     rgba(139, 92, 246, 0.12);
  --violet-glow:    rgba(139, 92, 246, 0.22);
  --emerald:        #10b981;

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;
  --white:          #ffffff;

  --font-heading:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  --shadow-glow:   0 0 48px rgba(0, 212, 255, 0.1);
  --shadow-violet: 0 0 48px rgba(139, 92, 246, 0.1);

  --nav-bg:        rgba(5, 9, 20, 0.82);
  --nav-bg-open:   rgba(5, 9, 20, 0.98);
  --logo-tile:     #ffffff;

  --ease-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
  --bg-deep:        #eef2f8;
  --bg-surface:     #ffffff;
  --bg-card:        rgba(15, 23, 42, 0.035);
  --bg-card-hover:  rgba(15, 23, 42, 0.06);
  --border:         rgba(15, 23, 42, 0.10);
  --border-glow:    rgba(8, 145, 178, 0.35);

  --cyan:           #0891b2;
  --cyan-dim:       rgba(8, 145, 178, 0.10);
  --cyan-glow:      rgba(8, 145, 178, 0.22);
  --violet:         #7c3aed;
  --violet-dim:     rgba(124, 58, 237, 0.10);
  --violet-glow:    rgba(124, 58, 237, 0.20);
  --emerald:        #059669;

  --text-primary:   #1e293b;
  --text-secondary: #475569;
  --text-muted:     #64748b;
  --white:          #0b1220;   /* high-emphasis text → near-black in light mode */

  --shadow-glow:    0 12px 40px rgba(8, 145, 178, 0.14);
  --shadow-violet:  0 12px 40px rgba(124, 58, 237, 0.14);

  --nav-bg:         rgba(255, 255, 255, 0.85);
  --nav-bg-open:    rgba(255, 255, 255, 0.97);
  --logo-tile:      #ffffff;
}
html[data-theme="light"] body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(8,145,178,0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(124,58,237,0.05), transparent 60%);
  background-attachment: fixed;
}
/* keep grade badges readable in light mode */
html[data-theme="light"] .grade-badge { background: rgba(5,150,105,0.12); }
html[data-theme="light"] .hero-portrait-mask {
  background:
    linear-gradient(to right, var(--bg-deep) 0%, rgba(238,242,248,0.5) 30%, transparent 60%),
    linear-gradient(to top, var(--bg-deep) 0%, transparent 25%);
}
/* Smooth theme transition */
body, .navbar, .card, .edu-card, .admission-card, .project-card,
.teaching-card, .honor-card, .lang-card, .bridge-card, .contact-item {
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; transition: all 0.22s var(--ease-out); }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; display: block; }

/* ===== NEURAL CANVAS ===== */
#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== PAGE TRANSITIONS ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.page-wrapper.page-entered {
  opacity: 1;
  transform: translateY(0);
}
.page-wrapper.page-exit {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* Thesis & Certificates get distinct pill styling */
.nav-page a {
  color: var(--violet) !important;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px !important;
}
.nav-page a:hover, .nav-page a.active {
  background: var(--violet-dim) !important;
  border-color: var(--violet) !important;
  color: var(--violet) !important;
}
.nav-page a .nav-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  opacity: 0.8;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 6px;
}

.nav-cta a {
  background: var(--cyan) !important;
  color: var(--bg-deep) !important;
  font-weight: 700 !important;
  border: none !important;
}
.nav-cta a:hover {
  background: var(--white) !important;
  color: var(--bg-deep) !important;
  box-shadow: 0 6px 20px var(--cyan-glow);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.22s var(--ease-out);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 8px;
}
.hero-title-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--cyan);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.85;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-value span { color: var(--cyan); }
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease-out);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--white);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--cyan-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.22s var(--ease-out);
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

/* ===== CREATIVE PORTRAIT ===== */
.hero-portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-portrait-frame {
  position: relative;
  width: 340px;
  height: 440px;
  border-radius: 4px;
  overflow: hidden;
  transform: perspective(900px) rotateY(-4deg);
  transition: transform 0.7s var(--ease-out);
}
.hero-portrait-frame:hover {
  transform: perspective(900px) rotateY(0deg);
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05) brightness(0.92);
  transition: filter 0.5s var(--ease-out);
  z-index: 1;
}
.hero-portrait-frame:hover .hero-portrait {
  filter: grayscale(5%) contrast(1.1) brightness(1);
}

/* Theme-aware portrait: swap to the light-version image in light mode */
.hero-portrait-light { display: none; }
html[data-theme="light"] .hero-portrait-dark { display: none; }
html[data-theme="light"] .hero-portrait-light { display: block; }
html[data-theme="light"] .hero-portrait {
  filter: grayscale(8%) contrast(1.03) brightness(1.02);
}
html[data-theme="light"] .hero-portrait-frame:hover .hero-portrait {
  filter: grayscale(0%) contrast(1.06) brightness(1.05);
}

/* Gradient mask — left fade into dark bg */
.hero-portrait-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg-deep) 0%, rgba(5,9,20,0.5) 30%, transparent 60%),
    linear-gradient(to top, var(--bg-deep) 0%, transparent 25%);
  z-index: 2;
}

/* Subtle cyan color wash */
.hero-portrait-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.04);
  z-index: 3;
}

/* Scanline texture */
.hero-portrait-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  z-index: 4;
}

/* Moving scan beam */
.hero-portrait-beam {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 45%, transparent 100%);
  z-index: 5;
  opacity: 0;
  animation: scanBeam 5s ease-in-out infinite 1.5s;
}
@keyframes scanBeam {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { top: 100%; opacity: 0; }
}

/* Corner brackets */
.portrait-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 6;
}
.portrait-corner.tl { top: 10px; left: 10px;  border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.portrait-corner.tr { top: 10px; right: 10px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.portrait-corner.bl { bottom: 10px; left: 10px;  border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.portrait-corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

/* ID label */
.portrait-label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 7;
  background: rgba(5, 9, 20, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 6px;
  padding: 7px 13px;
  backdrop-filter: blur(10px);
}
.portrait-label-name {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.portrait-label-role {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 40px;
}
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 14px;
}
.section-title em { color: var(--cyan); font-style: normal; }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 52px;
  line-height: 1.8;
}

/* ===== CARDS (shared) ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.28s var(--ease-out);
  backdrop-filter: blur(12px);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ===== EDUCATION ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all 0.28s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}
.edu-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.edu-degree {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.edu-uni  { font-size: 0.85rem; color: var(--cyan); font-weight: 600; margin-bottom: 10px; }
.edu-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.edu-gpa {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
}
.edu-details { margin-top: 12px; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; }

/* ===== ADMISSIONS ===== */
.admissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.admission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.28s var(--ease-out);
}
.admission-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-violet);
}
.admission-uni  { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.admission-program { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }
.admission-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.badge { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; letter-spacing: 0.03em; }
.badge-funded   { background: rgba(16,185,129,0.12);  color: var(--emerald); border: 1px solid rgba(16,185,129,0.3); }
.badge-partial  { background: rgba(245,158,11,0.1);   color: #f59e0b;        border: 1px solid rgba(245,158,11,0.25); }
.badge-conditional { background: var(--violet-dim);   color: var(--violet);  border: 1px solid rgba(139,92,246,0.25); }
.badge-self     { background: var(--bg-card);          color: var(--text-secondary); border: 1px solid var(--border); }
.badge-phd      { background: var(--cyan-dim);         color: var(--cyan);    border: 1px solid var(--border-glow); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), transparent);
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.timeline-period { font-size: 0.75rem; color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.timeline-role { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.timeline-org  { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; list-style: none; }
.timeline-desc li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.timeline-desc li::before { content: '→'; position: absolute; left: 0; color: var(--cyan); font-size: 0.72rem; }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.28s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}
.project-card:hover::after { opacity: 1; }
.project-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.project-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  transition: all 0.28s var(--ease-out);
}
.project-card:hover .project-icon { background: var(--cyan); color: var(--bg-deep); }
.project-icon svg { width: 20px; height: 20px; }
.project-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--white); }
.project-desc  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.75; flex: 1; }
.project-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.7rem; font-weight: 600;
  color: var(--cyan); background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.18);
  padding: 3px 10px; border-radius: 100px;
}
.tag-violet { color: var(--violet); background: var(--violet-dim); border-color: rgba(139,92,246,0.18); }

/* ===== SKILLS ===== */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.skills-group-title { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 20px; }
/* Proficiency-tier list — qualitative, not numeric */
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.skill-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.skill-row:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--cyan);
  transform: translateX(3px);
}
.skill-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.skill-row-name { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.skill-row-meta { font-size: 0.74rem; color: var(--text-muted); letter-spacing: 0.01em; }

.prof-tag {
  display: inline-flex; align-items: center; gap: 7px;
  flex-shrink: 0;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid transparent;
}
.prof-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.prof-expert   { color: var(--cyan);   background: var(--cyan-dim);   border-color: var(--border-glow); }
.prof-advanced { color: var(--violet); background: var(--violet-dim); border-color: rgba(139,92,246,0.3); }

.skill-tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-out);
}
.skill-tag:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

/* ===== LANG ===== */
.lang-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  transition: all 0.28s var(--ease-out);
  min-width: 190px;
}
.lang-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }
.lang-name  { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.lang-level { font-size: 0.83rem; color: var(--cyan); font-weight: 600; margin-bottom: 8px; }
.lang-scores { font-size: 0.76rem; color: var(--text-muted); line-height: 1.7; }

/* ===== TEACHING ===== */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.teaching-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.28s var(--ease-out);
}
.teaching-card:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-violet);
}
.teaching-logos { display: flex; gap: 8px; margin-bottom: 14px; }
.teaching-role   { font-size: 0.72rem; font-weight: 700; color: var(--violet); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.teaching-course { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.teaching-detail { font-size: 0.8rem; color: var(--text-muted); }

/* ===== HONORS ===== */
.honors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.honor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.28s var(--ease-out);
  display: flex; gap: 14px; align-items: flex-start;
}
.honor-card:hover { border-color: rgba(0,212,255,0.2); background: var(--bg-card-hover); transform: translateY(-3px); }
.honor-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan-dim), var(--violet-dim));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.honor-title  { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.honor-detail { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.55; }

/* ===== COURSES TABLE ===== */
.courses-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.courses-table thead th {
  text-align: left; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.courses-table tbody tr { transition: background 0.18s var(--ease-out); }
.courses-table tbody tr:hover { background: var(--bg-card); }
.courses-table tbody td {
  padding: 11px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.courses-table tbody td:first-child { color: var(--text-primary); }
.grade-badge {
  display: inline-flex; align-items: center;
  background: rgba(16,185,129,0.1); color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.2);
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}

/* ===== CONTACT ===== */
.contact-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-item {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.22s var(--ease-out);
}
.contact-item:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

/* ===== PAGE CTA BRIDGE ===== */
.page-bridge {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bridge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.bridge-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.bridge-card:hover::before { opacity: 1; }
.bridge-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: inherit;
}
.bridge-card.violet-bridge::before {
  background: linear-gradient(135deg, var(--violet-dim) 0%, transparent 60%);
}
.bridge-card.violet-bridge:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: var(--shadow-violet);
}
.bridge-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.bridge-card:hover .bridge-icon { transform: scale(1.1) rotate(-3deg); }
.bridge-icon.cyan-icon { background: var(--cyan-dim); border: 1px solid var(--border-glow); color: var(--cyan); }
.bridge-icon.violet-icon { background: var(--violet-dim); border: 1px solid rgba(139,92,246,0.3); color: var(--violet); }
.bridge-content { flex: 1; min-width: 0; }
.bridge-eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.bridge-eyebrow.cyan  { color: var(--cyan); }
.bridge-eyebrow.violet { color: var(--violet); }
.bridge-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.bridge-desc  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.bridge-arrow { color: var(--text-muted); flex-shrink: 0; transition: transform 0.25s var(--ease-out), color 0.25s; }
.bridge-card:hover .bridge-arrow { transform: translateX(4px); color: var(--cyan); }
.bridge-card.violet-bridge:hover .bridge-arrow { color: var(--violet); }

/* ===== FOOTER ===== */
.footer {
  padding: 36px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer a { color: var(--cyan); }
.footer-socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out);
}
.footer-social:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-3px);
}

/* ===== FADE-UP ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ===== THESIS PAGE ===== */
.thesis-hero {
  padding: 140px 40px 72px;
  max-width: 1200px;
  margin: 0 auto;
}
.thesis-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.thesis-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 18px;
  line-height: 1.15;
}
.thesis-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.thesis-key-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  padding: 26px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: center;
}
.thesis-key-stat { display: flex; flex-direction: column; gap: 3px; }
.thesis-stat-val { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.thesis-stat-val span { color: var(--cyan); }
.thesis-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.thesis-divider { width: 1px; background: var(--border); align-self: stretch; }

.thesis-section { padding: 64px 40px; }
.thesis-section-inner { max-width: 1200px; margin: 0 auto; }

/* Thesis image cards with hover zoom */
.thesis-image-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.thesis-image-card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.thesis-image-card .img-wrap {
  overflow: hidden;
}
.thesis-image-card .img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
  display: block;
}
.thesis-image-card:hover .img-wrap img {
  transform: scale(1.06);
}
.thesis-image-caption { padding: 13px 17px; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

.thesis-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.thesis-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 36px 0;
}
.thesis-featured > img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.thesis-featured > img:hover { transform: scale(1.02); box-shadow: var(--shadow-glow); }

.thesis-content h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.thesis-content p { color: var(--text-secondary); line-height: 1.8; font-size: 0.93rem; margin-bottom: 18px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: var(--text-muted); }

/* ===== CERTIFICATES PAGE ===== */
.certs-hero { padding: 140px 40px 52px; max-width: 1200px; margin: 0 auto; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.3s var(--ease-out);
  display: flex; flex-direction: column; gap: 13px;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: height 0.3s var(--ease-out);
}
.cert-card:hover::before { height: 4px; }

.cert-card.deeplearning::before { background: linear-gradient(90deg, #ff6b6b, #ff9f43); }
.cert-card.google::before       { background: linear-gradient(90deg, #00d4ff, #0099ff); }
.cert-card.buffalo::before      { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }
.cert-card.local::before        { background: linear-gradient(90deg, #10b981, #059669); }

.cert-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.cert-card[data-cat].hidden { display: none; }

.cert-issuer-row { display: flex; align-items: center; gap: 10px; }
.cert-issuer-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.cert-issuer-name { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cert-title { font-family: var(--font-heading); font-size: 0.97rem; font-weight: 700; color: var(--white); line-height: 1.4; }
.cert-date  { font-size: 0.76rem; color: var(--text-muted); }
.cert-verify {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  padding: 6px 13px; border-radius: 100px;
  transition: all 0.2s var(--ease-out);
  align-self: flex-start;
}
.cert-verify:hover { background: var(--cyan); color: var(--bg-deep); }

/* Filter buttons */
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  min-height: 36px;
}
.filter-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.filter-btn.active { background: var(--cyan); color: var(--bg-deep); border-color: var(--cyan); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-portrait-wrap { order: -1; }
  .hero-portrait-frame { width: 280px; height: 360px; transform: none; }
  .skills-layout { grid-template-columns: 1fr; }
  .thesis-featured { grid-template-columns: 1fr; }
  .page-bridge { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--nav-bg-open); padding: 16px;
    border-bottom: 1px solid var(--border); gap: 4px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 11px 14px; }
  .nav-divider { display: none; }
  .nav-hamburger { display: flex; }
  .theme-toggle { margin-left: auto; }
  .hero { padding: 96px 18px 52px; }
  .section { padding: 56px 18px; }
  .thesis-hero, .certs-hero { padding: 104px 18px 40px; }
  .thesis-section { padding: 44px 18px; }
  .certs-grid { padding: 0 18px 72px; }
  .hero-stats { gap: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr; }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
}
.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 17px; height: 17px; transition: opacity 0.25s var(--ease-out), transform 0.4s var(--ease-out); }
.theme-toggle .icon-sun  { position: absolute; }
.theme-toggle .icon-moon { position: absolute; }
/* dark mode (default): show moon, hide sun */
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
/* light mode: show sun, hide moon */
html[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* ===== UNIVERSITY LOGOS ===== */
.uni-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.uni-logo {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--logo-tile);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  overflow: hidden;
}
.uni-logo img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.uni-row .uni-text { min-width: 0; }
.uni-row .edu-degree,
.uni-row .admission-uni { margin-bottom: 2px; }
/* smaller logo chip variant for admission/teaching cards */
.uni-logo.sm { width: 40px; height: 40px; border-radius: 9px; padding: 5px; }

/* ===== FEATURED (highlighted) EDUCATION CARD ===== */
.edu-card.featured {
  border-color: rgba(0,212,255,0.4);
  background:
    linear-gradient(180deg, rgba(0,212,255,0.06), transparent 60%),
    var(--bg-card-hover);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.12), var(--shadow-glow);
}
.edu-card.featured::before { height: 4px; }
.edu-card.featured:hover {
  box-shadow: 0 0 0 1px rgba(0,212,255,0.25), 0 18px 44px rgba(0,212,255,0.18);
  transform: translateY(-5px);
}
.edu-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--bg-deep);
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  padding: 4px 11px; border-radius: 100px;
  margin-bottom: 12px;
}
html[data-theme="light"] .edu-flag { color: #fff; }
.edu-degree .hl {
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(transparent 62%, var(--cyan-dim) 62%);
  padding: 0 2px;
}
.edu-gpa.gpa-strong {
  font-size: 0.82rem;
  background: linear-gradient(90deg, var(--cyan-dim), var(--violet-dim));
  border-color: rgba(0,212,255,0.4);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0,212,255,0.15);
}

/* ===== CLICKABLE GLOW AFFORDANCE ===== */
[data-clickable] { position: relative; }
/* "More info" hint pill */
.more-hint {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px;
  font-size: 0.72rem; font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  padding: 4px 11px; border-radius: 100px;
  opacity: 0.55;
  transform: translateY(2px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), gap 0.25s var(--ease-out);
}
.more-hint svg { width: 12px; height: 12px; }
.violet-bridge .more-hint { color: var(--violet); border-color: rgba(139,92,246,0.3); background: var(--violet-dim); }
/* When scrolled into view, clickable cards breathe with a glow + reveal hint */
[data-clickable].glow-active {
  border-color: rgba(0,212,255,0.42);
  animation: clickableGlow 2.4s ease-in-out infinite;
}
[data-clickable].violet-bridge.glow-active {
  border-color: rgba(139,92,246,0.42);
  animation: clickableGlowViolet 2.4s ease-in-out infinite;
}
[data-clickable].glow-active .more-hint { opacity: 1; transform: translateY(0); }
[data-clickable]:hover .more-hint { gap: 9px; opacity: 1; }
@keyframes clickableGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,212,255,0.10), 0 0 18px rgba(0,212,255,0.10); }
  50%      { box-shadow: 0 0 0 1px rgba(0,212,255,0.30), 0 0 34px rgba(0,212,255,0.28); }
}
@keyframes clickableGlowViolet {
  0%, 100% { box-shadow: 0 0 0 1px rgba(139,92,246,0.10), 0 0 18px rgba(139,92,246,0.10); }
  50%      { box-shadow: 0 0 0 1px rgba(139,92,246,0.30), 0 0 34px rgba(139,92,246,0.28); }
}
/* Corner "click" ping marker */
[data-clickable]::after { pointer-events: none; }
.click-ping {
  position: absolute;
  top: 14px; right: 14px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  z-index: 3;
}
.violet-bridge .click-ping { background: var(--violet); }
[data-clickable].glow-active .click-ping { opacity: 1; animation: pingPulse 2s ease-out infinite; }
@keyframes pingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,212,255,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(0,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
}

/* ===== PARALLAX HELPERS ===== */
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
  .hero-badge-dot, .hero-portrait-beam { animation: none; }
}

/* ===== EXTRA RESPONSIVE TUNING ===== */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }
  .hero-actions { width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero-portrait-frame { width: 240px; height: 312px; }
  .education-grid,
  .admissions-grid,
  .teaching-grid { grid-template-columns: 1fr; }
  .skills-layout { gap: 30px; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .section-subtitle { margin-bottom: 34px; }
  .lang-grid { flex-direction: column; }
  .lang-card { width: 100%; min-width: 0; }
  .contact-grid { flex-direction: column; }
  .contact-item { width: 100%; }
  .research-grid-2 { grid-template-columns: 1fr !important; }
  .timeline { padding-left: 24px; }
  .uni-logo { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
  .nav-logo { font-size: 1.05rem; }
}
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr; }
}
