/* ==============================================================================
   PORTFOLIO DESIGN SYSTEM — SHAMSUDDIN PIASH
   Advanced CSS with CSS Custom Properties, Glassmorphism, Fluid Typography,
   High-Contrast Dark/Light Modes, and Responsive Layouts
   ============================================================================== */

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

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-base: #070b14;
  --bg-surface: #0d1527;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(13, 21, 39, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-bright: #ffffff;

  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-blue: #3b82f6;
  --accent-indigo: #818cf8;
  --accent-amber: #fbbf24;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-accent: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px -5px rgba(56, 189, 248, 0.25);

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --nav-height: 72px;
  --container-max: 1200px;
  --transition-normal: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.09);
  --border-glow: rgba(2, 132, 199, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-bright: #020617;

  --accent-cyan: #0284c7;
  --accent-teal: #0d9488;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-amber: #d97706;
  --accent-emerald: #059669;

  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --gradient-accent: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08), transparent 70%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px -5px rgba(2, 132, 199, 0.18);
}

/* ==============================================================================
   RESET & BASE STYLES
   ============================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Top reading progress indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Background Engineering Mesh/Grid */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
  opacity: 0.55;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--accent-teal);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

code, .font-mono {
  font-family: var(--font-mono);
}

/* ==============================================================================
   NAVIGATION BAR (GLASSMORPHIC)
   ============================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 900;
  transition: var(--transition-normal);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-card);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
}

.brand-text span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.blog-link {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.nav-link.blog-link:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition-normal);
}

.theme-toggle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--border-glow);
  background: rgba(255, 255, 255, 0.08);
}

.btn-cta-nav {
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 850;
  box-shadow: var(--shadow-card);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */

.hero-section {
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.hero-affiliation {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.affiliation-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.research-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.research-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.research-pill i {
  color: var(--accent-cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-primary {
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-glow);
  color: var(--text-bright);
  transform: translateY(-2px);
}

.btn-outline-blog {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-normal);
}

.btn-outline-blog:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Profile Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.profile-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.profile-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.profile-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.profile-img-container {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.profile-card:hover .profile-img {
  transform: scale(1.03);
}

.profile-card-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}

.profile-card-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-meta-item i {
  color: var(--accent-cyan);
}

/* Floating Metric Badges on Profile Card */
.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  z-index: 2;
  transition: transform 0.3s ease;
}

.floating-badge:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.floating-badge.badge-top-left {
  top: -15px;
  left: -20px;
}

.floating-badge.badge-bottom-right {
  bottom: 25px;
  right: -25px;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.badge-text-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-bright);
  line-height: 1.1;
}

.badge-text-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==============================================================================
   METRICS COUNTER BAR
   ============================================================================== */

.metrics-bar-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--gradient-card);
  margin-bottom: 4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-box {
  text-align: center;
  padding: 1rem;
}

.metric-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==============================================================================
   SECTION HEADINGS
   ============================================================================== */

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==============================================================================
   INTERACTIVE ENGINEERING SIMULATOR WORKBENCH (ADVANCED JS / CANVAS)
   ============================================================================== */

.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-tabs {
  display: flex;
  gap: 0.5rem;
}

.sim-tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sim-tab-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.sim-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
}

.simulator-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}

.simulator-controls {
  padding: 1.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.control-group label span.val {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
}

.control-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-card);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: var(--transition-normal);
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.control-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.sim-formula-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sim-formula-box span.highlight {
  color: var(--accent-teal);
  font-weight: 600;
}

.simulator-canvas-area {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.canvas-container {
  width: 100%;
  height: 380px;
  background: #040810;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

canvas#sim-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sim-readouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.readout-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.readout-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.readout-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
}

.readout-val.accent {
  color: var(--accent-cyan);
}

/* ==============================================================================
   RESEARCH & THESIS SHOWCASE
   ============================================================================== */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.research-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
}

.research-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.research-meta {
  font-size: 0.85rem;
  color: var(--accent-indigo);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.research-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.research-bullets li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 1.4rem;
  position: relative;
}

.research-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.research-bullets li strong {
  color: var(--text-primary);
}

.metrics-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-pill-item {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* ==============================================================================
   PUBLICATIONS SECTION
   ============================================================================== */

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.pub-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.pub-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.pub-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.pub-venue {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.pub-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pub-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-cite {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-cite:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
  border-color: var(--border-glow);
}

/* ==============================================================================
   FILTERABLE PROJECTS GALLERY
   ============================================================================== */

.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.filter-btn:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.08);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

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

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.project-link-btn {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.project-link-btn:hover {
  color: var(--text-bright);
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==============================================================================
   TEACHING & SCIENCE COMMUNICATION (UDVASH-UNMESH)
   ============================================================================== */

.teaching-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.teaching-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.teaching-role-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}

.teaching-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}

.teaching-institution {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.teaching-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.teaching-stat-item {
  text-align: center;
}

.teaching-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.teaching-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.teaching-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.teaching-bullets li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 1.5rem;
  position: relative;
}

.teaching-bullets li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-amber);
  font-size: 0.8rem;
}

.teaching-quote-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-mark {
  font-size: 3.5rem;
  color: var(--accent-cyan);
  opacity: 0.3;
  line-height: 1;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-bright);
  line-height: 1.7;
}

.quote-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ==============================================================================
   TECHNICAL SKILLS MATRIX
   ============================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: var(--transition-normal);
}

.skill-category-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.skill-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.skill-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.9rem;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}

/* ==============================================================================
   FEATURED BLOG POSTS (BRIDGE TO /blogs)
   ============================================================================== */

.blog-banner-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(129, 140, 248, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.blog-banner-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.35rem;
}

.blog-banner-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-card-meta i {
  color: var(--accent-cyan);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card-link:hover {
  gap: 0.65rem;
}

/* ==============================================================================
   CONTACT & FOOTER
   ============================================================================== */

.contact-section {
  padding: 4.5rem 0 3rem 0;
  background: var(--gradient-card);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-info-block h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.contact-info-block p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.contact-channel-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
}

.contact-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.contact-cta-box h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.contact-cta-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==============================================================================
   TOAST NOTIFICATION
   ============================================================================== */

#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  color: var(--text-bright);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 1100;
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ==============================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ============================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions, .research-pills, .hero-affiliation {
    justify-content: center;
  }
  .profile-card-wrapper {
    margin: 0 auto;
  }
  .simulator-body {
    grid-template-columns: 1fr;
  }
  .simulator-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .research-grid, .teaching-grid, .blog-posts-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid, .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-cta-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .projects-grid, .skills-grid, .metrics-grid {
    grid-template-columns: 1fr;
  }
  .sim-readouts {
    grid-template-columns: repeat(2, 1fr);
  }
  .pub-card {
    grid-template-columns: 1fr;
  }
  .blog-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==============================================================================
   ADVANCED ANIMATIONS & SUBPAGE ENHANCEMENTS
   ============================================================================== */

/* Ambient FEA Network Canvas */
.bg-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
[data-theme="light"] .bg-network-canvas {
  opacity: 0.28;
}

/* 3D Tilt Card & Specular Glare */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
  overflow: hidden;
}
.tilt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle 320px at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(56, 189, 248, 0.16), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.tilt-card:hover::before {
  opacity: 1;
}

/* Glowing Border Pulse */
@keyframes border-glow-pulse {
  0%, 100% { border-color: rgba(56, 189, 248, 0.3); box-shadow: 0 0 15px rgba(56, 189, 248, 0.1); }
  50% { border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 0 25px rgba(99, 102, 241, 0.25); }
}
.glow-card-pulse {
  animation: border-glow-pulse 4s infinite ease-in-out;
}

/* Subpage Hero Header */
.subpage-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.subpage-hero .container {
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--accent-cyan);
}
.breadcrumb .separator {
  color: var(--border-light);
  font-size: 0.75rem;
}
.breadcrumb .active-crumb {
  color: var(--accent-cyan);
  font-weight: 600;
}
.subpage-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-bright);
}
.subpage-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.7;
}

/* Engineering Specs & Comparison Tables */
.spec-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.spec-table th {
  background: var(--bg-surface-elevated);
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-subtle);
}
.spec-table td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-regular);
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table tr:hover td {
  background: rgba(56, 189, 248, 0.03);
}
.spec-highlight {
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}
.spec-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.badge-gain {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-optimal {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Mathematical Formulation Cards */
.math-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: var(--transition-normal);
}
.math-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.math-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
}
.math-law-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.math-law-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.math-formula-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 1.05rem;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 0.85rem;
  overflow-x: auto;
}
.math-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Project Filter Tabs */
.project-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.project-filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.project-filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-bright);
}
.project-filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #070b14;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.35);
}

/* Teaching & Pedagogy Cards */
.pedagogy-pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition-normal);
}
.pedagogy-pillar:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

/* CV Document Page Styling */
.cv-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.cv-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cv-paper-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  color: #14181e;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 3.5rem 4rem;
  font-family: 'Charter', 'Georgia', serif;
  line-height: 1.55;
  border: 1px solid #d0d7de;
}
.cv-paper-container h1, 
.cv-paper-container h2, 
.cv-paper-container h3, 
.cv-paper-container h4 {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0e223d;
}
.cv-paper-container .cv-name {
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.cv-paper-container .cv-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c4c78;
  margin-bottom: 0.2rem;
}
.cv-paper-container .cv-sub {
  text-align: center;
  font-size: 0.88rem;
  color: #505a69;
  margin-bottom: 0.5rem;
}
.cv-paper-container .cv-contacts {
  text-align: center;
  font-size: 0.85rem;
  color: #14181e;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid #b4c3d7;
  margin-bottom: 1.5rem;
}
.cv-paper-container .cv-contacts a {
  color: #1c4c78;
  text-decoration: none;
}
.cv-paper-container .cv-contacts a:hover {
  text-decoration: underline;
}
.cv-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0e223d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #b4c3d7;
  padding-bottom: 0.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
}
.cv-entry-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.cv-entry-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #1c4c78;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.cv-entry-sub em {
  color: #505a69;
  font-style: italic;
  font-weight: 400;
}
.cv-paper-container ul {
  margin: 0 0 0.85rem 1.25rem;
  padding: 0;
  font-size: 0.9rem;
}
.cv-paper-container li {
  margin-bottom: 0.3rem;
}

/* PDF Embed Iframe Container */
.pdf-viewer-wrap {
  width: 100%;
  height: 850px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-surface);
  margin-top: 2rem;
}
.pdf-viewer-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Print Optimization */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .site-nav, .footer, .cv-action-bar, .subpage-hero, #scroll-progress, .bg-grid-overlay, .bg-network-canvas {
    display: none !important;
  }
  .cv-paper-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}
