/* ==========================================================================
   DR. ABU NASER CHOWDHURY - PERSONAL WEBSITE DESIGN SYSTEM
   Modern, Premium, Responsive, Glassmorphic HTML5/CSS3 Framework
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme Gradient Colors */
  --bg-gradient-dark: linear-gradient(135deg, #050811 0%, #0d172a 35%, #0a1120 70%, #04070e 100%);
  --bg-surface: #0f172a;

  /* Glassmorphic Gradients */
  --glass-gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-gradient-hover: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(255, 255, 255, 0.05) 100%);
  --glass-gradient-accent: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(147, 197, 253, 0.08) 100%);
  --glass-gradient-gold: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(255, 255, 255, 0.03) 100%);

  --border-color: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(96, 165, 250, 0.55);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #6b7280;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.32);
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(59, 130, 246, 0.32);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-gradient-dark: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 40%, #f8fafc 100%);
  --bg-surface: #ffffff;

  --glass-gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(241, 245, 249, 0.75) 100%);
  --glass-gradient-hover: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(224, 242, 254, 0.85) 100%);
  --border-color: rgba(203, 213, 225, 0.85);
  --border-hover: rgba(37, 99, 235, 0.45);

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-light: #475569;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.18);

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient-dark);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  transition: background var(--transition-normal), color var(--transition-normal);
  animation: pageFadeIn 0.35s ease-out forwards;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  word-break: break-word;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Container Utility - Proportional & Fluid */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

/* Responsive Grid Helper Classes */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stacked-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   3. STICKY SOLID HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: var(--bg-surface);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 0.75rem;
}

/* Brand Logo Layout */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.logo-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.logo-text {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo-text h2, .logo-text .logo-name {
  font-size: clamp(0.92rem, 2.2vw, 1.1rem);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: clamp(0.68rem, 1.5vw, 0.75rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--glass-gradient-card);
  border: 1px solid var(--border-color);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid var(--border-hover);
  font-weight: 600;
}

/* Action Controls (Theme Toggle & Mobile Menu) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-toggle {
  display: none;
  background: var(--glass-gradient-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   4. HERO SECTIONS WITH BACKGROUND IMAGES & GLASS OVERLAYS
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: clamp(80px, 9vw, 110px);
  padding-bottom: clamp(60px, 8vw, 85px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark Glass Backdrop Overlay over Hero Background Photos */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.88) 0%, rgba(15, 23, 42, 0.8) 60%, rgba(8, 12, 20, 0.92) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1;
}

[data-theme="light"] .hero-section::after {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(224, 242, 254, 0.85) 60%, rgba(248, 250, 252, 0.92) 100%);
}

/* Hero Background Image Mapping */
.hero-index { background-image: url('../images/VIP_2099.JPG'); }
.hero-about { background-image: url('../images/WhatsAppImage2021-09-30at12.41.49PM.jpeg'); }
.hero-academic { background-image: url('../images/WhatsAppImage2021-12-01at7.53.46PM.jpeg'); }
.hero-professional { background-image: url('../images/IMG_2090.jpg'); }
.hero-publication { background-image: url('../images/IMG_2117.jpg'); }
.hero-referee { background-image: url('../images/IMG_2090.jpg'); }
.hero-personal { background-image: url('../images/Zrich.jpg'); }
.hero-memories { background-image: url('../images/191.jpg'); }

/* Motion Graphics Overlay Layer */
.hero-motion-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Rotating conic-gradient sweep for a dynamic glow */
.hero-motion-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  padding-bottom: 160%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(59, 130, 246, 0.12) 60deg, transparent 140deg, rgba(139, 92, 246, 0.1) 220deg, transparent 300deg, transparent 360deg);
  animation: sweepRotate 30s linear infinite;
  mix-blend-mode: screen;
}

@keyframes sweepRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating particle field */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.8);
  box-shadow: 0 0 8px 2px rgba(96, 165, 250, 0.5);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-140px) translateX(20px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section, .hero-motion-bg::before, .motion-orb, .motion-vector-grid, .hero-particles span {
    animation: none !important;
  }
}

.motion-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.motion-orb-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, rgba(37, 99, 235, 0.2) 70%);
}

.motion-orb-2 {
  bottom: -20%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(6, 182, 212, 0.15) 70%);
  animation-delay: -7s;
}

.motion-orb-3 {
  top: 40%;
  left: 45%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(245, 158, 11, 0.12) 70%);
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
  animation-delay: -4s;
  opacity: 0.28;
}

.motion-vector-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  animation: gridMeshWave 20s linear infinite;
}

@keyframes orbFloat {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-30px) scale(1.08) rotate(180deg); }
  100% { transform: translateY(20px) scale(0.95) rotate(360deg); }
}

@keyframes gridMeshWave {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: var(--glass-gradient-accent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 680px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: clamp(0.65rem, 1.8vw, 0.8rem) clamp(1.2rem, 3vw, 1.6rem);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Stats Counter Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-card {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-color);
  padding: clamp(0.85rem, 2vw, 1.25rem);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--glass-gradient-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.82rem);
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Profile Card */
.hero-profile-card {
  position: relative;
  background: var(--glass-gradient-card);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.hero-profile-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.hero-profile-img {
  width: clamp(160px, 20vw, 220px);
  height: clamp(160px, 20vw, 220px);
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.hero-card-name {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-card-role {
  font-size: clamp(0.82rem, 1.6vw, 0.88rem);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--glass-gradient-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. SECTIONS & IOS GLASSMORPHIC GRADIENT CARDS
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(50px, 8vw, 80px) 0;
  position: relative;
}

.section-alt {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .section-alt {
  background: rgba(241, 245, 249, 0.6);
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
}

/* iOS Style Glassmorphic Card Base Component */
.card {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  word-break: break-word;
  isolation: isolate;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(96, 165, 250, 0.6) 50%, transparent 70%);
  background-size: 250% 250%;
  background-position: -100% -100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
  animation: cardSheen 1.6s ease forwards;
}

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

.card:hover {
  border-color: var(--border-hover);
  background: var(--glass-gradient-hover);
  box-shadow: var(--shadow-md), 0 0 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

/* Flagship Project Infographic Cards */
.project-infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-infographic-card {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-infographic-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(59, 130, 246, 0.15);
}

.project-stat-circle {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--stat-color) 15%, transparent);
  border: 2px solid var(--stat-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--stat-color) 35%, transparent);
}

.project-stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--stat-color);
  line-height: 1;
}

.project-stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: center;
}

.project-infographic-body { flex: 1; min-width: 0; }

.project-infographic-title {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.project-infographic-loc {
  font-size: 0.78rem;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
}

.project-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.project-metric-chip {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
}

.project-budget-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.project-budget-fill {
  height: 100%;
  border-radius: var(--radius-full);
  animation: fillBar 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fillBar {
  from { width: 0 !important; }
}

.project-infographic-photo {
  flex-direction: column;
}

.project-infographic-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  border: 1px solid var(--border-color);
}

.project-infographic-photo .project-infographic-body { width: 100%; }

@media (max-width: 480px) {
  .project-infographic-card { flex-direction: column; }
  .project-stat-circle { margin: 0 auto; }
}

/* Visitor Insights Card (Homepage) — compact bar */
.visitor-insights-card {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.visitor-stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.visitor-stat-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visitor-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visitor-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.visitor-stat-divider {
  width: 1px;
  height: 22px;
  align-self: center;
  background: var(--border-color);
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: liveDotPulse 1.8s ease-out infinite;
}

@keyframes liveDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 640px) {
  .visitor-stat-divider { display: none; }
  .visitor-insights-card { flex-direction: column; padding: 1rem 1.25rem; }
  .visitor-stat { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* Sensitive Data Reveal Panels (Personal page privacy control) */
.sensitive-panel {
  position: relative;
}

.sensitive-panel .sensitive-content {
  filter: blur(9px);
  user-select: none;
  transition: filter 0.4s ease;
  pointer-events: none;
}

.sensitive-panel.revealed .sensitive-content {
  filter: none;
  user-select: auto;
  pointer-events: auto;
}

.sensitive-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(10, 14, 24, 0.35);
  border-radius: inherit;
  backdrop-filter: blur(1px);
}

[data-theme="light"] .sensitive-overlay {
  background: rgba(255, 255, 255, 0.4);
}

.sensitive-panel.revealed .sensitive-overlay {
  display: none;
}

.reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  background: var(--glass-gradient-accent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.reveal-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

/* Inline single-value blur toggle (e.g. Date of Birth) */
.blur-inline {
  filter: blur(6px);
  transition: filter 0.35s ease;
  user-select: none;
  display: inline-block;
}

.blur-inline.revealed {
  filter: none;
  user-select: auto;
}

.inline-reveal-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.35rem;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
  vertical-align: middle;
}

.inline-reveal-btn:hover {
  opacity: 1;
}
.quote-card {
  background: var(--glass-gradient-gold);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-left: 4px solid var(--accent-gold);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 2rem;
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.quote-text {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.quote-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: right;
}

/* --------------------------------------------------------------------------
   6. TIMELINE COMPONENT (Education & Career)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: clamp(-1.25rem, -4vw, -2rem);
  top: 1.5rem;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 4px solid var(--bg-body);
  box-shadow: var(--shadow-glow);
}

.timeline-content {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  background: var(--glass-gradient-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.timeline-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  border: 1px solid var(--border-color);
}

.timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid var(--border-hover);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-institution {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   7. PUBLICATIONS COMPONENT, FILTERS, SEARCH, & DOI LINKS (HIGH CONTRAST)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.search-box {
  position: relative;
  min-width: 260px;
}

/* High Contrast Input Box for Dark & Light Mode */
.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.publication-card {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: all var(--transition-normal);
}

.publication-card:hover {
  border-color: var(--border-hover);
  background: var(--glass-gradient-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pub-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pub-meta strong {
  color: var(--text-main);
}

.pub-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-glow);
  border: 1px solid var(--border-hover);
  color: var(--primary);
  margin-right: 0.5rem;
}

.pub-badge.book {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
}

/* High Contrast DOI Badge Link for Dark & Light Mode */
.doi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--primary);
  background: var(--bg-surface);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.3;
  transition: all var(--transition-fast);
}

.doi-link:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.citation-btn {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.citation-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
}

/* --------------------------------------------------------------------------
   8. REFEREE CARDS GRID
   -------------------------------------------------------------------------- */
.referees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.referee-card {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.referee-card:hover {
  border-color: var(--border-hover);
  background: var(--glass-gradient-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.referee-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.referee-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.referee-title {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.referee-dept {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.referee-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.referee-contact a {
  color: var(--text-muted);
}

.referee-contact a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   9. GALLERY & CLEAN WINDOWED LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--glass-gradient-card);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Perfect Viewport Fixed Modal Container */
.lightbox-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.lightbox-modal.active {
  display: flex !important;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    rgba(4, 7, 14, 0.9);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  z-index: 1;
  animation: lightboxFadeIn 0.35s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-window {
  position: relative;
  z-index: 2;
  background: var(--glass-gradient-card);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.18);
  padding: 1.25rem;
  max-width: 860px;
  width: 92%;
  max-height: 85vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  animation: lightboxPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.lightbox-window::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(96, 165, 250, 0.15) 90deg, transparent 180deg, rgba(139, 92, 246, 0.12) 270deg, transparent 360deg);
  animation: sweepRotate 22s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes lightboxPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  flex-shrink: 0;
}

.lightbox-close-btn {
  background: var(--glass-gradient-hover);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.lightbox-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000000;
  flex: 1 1 auto;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  animation: lightboxImgFade 0.3s ease;
}

@keyframes lightboxImgFade {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary-gradient);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.lightbox-caption {
  margin-top: 0.9rem;
  padding: 0.5rem 1.1rem;
  background: var(--glass-gradient-accent);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. FLOATING BACK TO TOP & TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 990;
  width: 46px;
  height: 46px;
  background: var(--glass-gradient-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hover);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Toast Notification Popup */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 3000;
  background: var(--glass-gradient-gold);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-gold);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   11. FOOTER & UTILITIES
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--glass-gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scroll Animations with Smooth Easing & Transition Delays */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   12. PRINT-FRIENDLY STYLES (@media print)
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .site-header, .theme-toggle-btn, .mobile-menu-toggle, .filter-bar, .hero-actions, .back-to-top, .site-footer {
    display: none !important;
  }

  .hero-section {
    padding-top: 20px !important;
    background: none !important;
  }

  .hero-title {
    color: #000000 !important;
    font-size: 24pt !important;
  }

  .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
  }

  .card, .publication-card, .timeline-content, .referee-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    break-inside: avoid;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS & MOBILE NAVIGATION DRAWER REPAIR
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-profile-card {
    max-width: 380px;
    margin: 0 auto;
  }
  .timeline-content {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Header & Bulletproof Nav Drawer Positioning */
@media (max-width: 860px) {
  .header-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .publication-card > div:last-child {
    align-items: flex-start !important;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
    min-width: 100%;
  }

  .doi-link {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .timeline {
    padding-left: 1.25rem;
  }
  .timeline-dot {
    left: -1.25rem;
  }
  .logo-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .logo-text h2, .logo-text .logo-name {
    font-size: 0.88rem;
  }
  .logo-text span {
    font-size: 0.68rem;
  }
  .theme-toggle-btn, .mobile-menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .lightbox-window {
    padding: 0.85rem;
    width: 95%;
  }
  .lightbox-close-btn {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  .lightbox-prev, .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
