/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES (4px Grid System, Apple/Linear Luxury Grade)
   ========================================================================== */

:root {
  /* Color Palette - Dark Luxe (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #101522;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --bg-glass: rgba(14, 19, 31, 0.75);
  --bg-pill: rgba(255, 255, 255, 0.06);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Accent Brand Gradients (Nordic Emerald & Mint Luxe) */
  --accent-primary: #10b981;
  --accent-primary-hover: #34d399;
  --accent-gradient: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  --accent-gradient-glow: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.18), transparent 70%);
  --accent-soft: rgba(16, 185, 129, 0.10);
  --accent-border: rgba(16, 185, 129, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --on-accent: #ffffff;

  /* Status Colors */
  --status-available: #10b981;
  --status-available-glow: rgba(16, 185, 129, 0.25);

  /* Shadows & Elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.22);

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Sizing (4px scale) */
  --header-height: 72px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Mode (Executive British Racing Green / Deep Botanical Emerald & Clean Slate) */
body.light-theme {
  --bg-primary: #fafafc;
  --bg-secondary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-pill: rgba(15, 23, 42, 0.05);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-primary: #047857;
  --accent-primary-hover: #065f46;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #047857 55%, #064e3b 100%);
  --accent-gradient-glow: radial-gradient(circle at 50% 50%, rgba(4, 120, 87, 0.12), transparent 70%);
  --accent-soft: rgba(4, 120, 87, 0.08);
  --accent-border: rgba(4, 120, 87, 0.22);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --on-accent: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 0 35px rgba(4, 120, 87, 0.15);
}

/* ==========================================================================
   BASE RESETS & ELEMENT STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  position: relative;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Ambient Radial Background Glows */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
}
.ambient-glow-top {
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(52, 211, 153, 0.06) 60%, transparent 80%);
}
.ambient-glow-middle {
  top: 45%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, rgba(16, 185, 129, 0.05) 60%, transparent 80%);
}

#app {
  position: relative;
  z-index: 1;
}

/* Layout Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

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

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

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

/* ==========================================================================
   NAVIGATION BAR (Streamlined Floating Glass Pill)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 14px;
  left: 0;
  right: 0;
  max-width: 1100px;
  margin: 0 auto;
  height: 58px;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  z-index: 100;
  transition: all var(--transition-normal);
}

.site-header::before {
  display: none !important;
}

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

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-badge {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Nav Menu Items */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-pill);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-primary);
}

/* Nav Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-resume {
  padding: 8px 18px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  transition: all var(--transition-fast);
}

.btn-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.40);
  color: #fff;
}

/* Mobile Hamburger */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.15rem;
}

/* ==========================================================================
   BUTTONS & COMMON UI COMPONENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 38px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

/* Section Header Structure */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.hero-section {
  padding: 80px 0 100px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--status-available);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-available);
  box-shadow: 0 0 10px var(--status-available);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.hero-social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Hero Visual / Avatar Showcase */
.hero-visual-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 36px;
  padding: 10px;
  background: var(--accent-gradient);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.35);
  animation: float-avatar 6s ease-in-out infinite;
}

@keyframes float-avatar {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background-color: var(--bg-secondary);
}

/* Floating Dual-Discipline Chips */
.floating-chip {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.chip-tech {
  top: 10px;
  left: -20px;
  animation: float-chip 5s ease-in-out infinite alternate;
}

.chip-bio {
  bottom: 15px;
  right: -20px;
  animation: float-chip 5s ease-in-out infinite alternate-reverse;
}

@keyframes float-chip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
}

/* ==========================================================================
   METRICS & STATS HIGHLIGHTS
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -30px;
  margin-bottom: 80px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   ABOUT & INTERDISCIPLINARY PROFILE
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-card-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-story {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.highlight-icon {
  color: var(--accent-primary);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Dual Pillar Visual Cards */
.pillar-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

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

.pillar-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-primary);
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.project-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(163, 230, 53, 0.04) 0%, rgba(13, 17, 23, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* For square app icons like InfiniteScan and BDNewsReader */
.project-card:has(img[src*="infinitescan.webp"]) .project-img,
.project-card:has(img[src*="bdnewsreader.webp"]) .project-img {
  object-fit: contain;
  padding: 24px;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.06));
  color: var(--text-muted);
  gap: 8px;
}

.project-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.project-link-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

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

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category-card {
  padding: 28px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.category-icon {
  color: var(--accent-primary);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.skill-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-pill);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   WORK EXPERIENCE TIMELINE
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-left: 68px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  left: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-card {
  padding: 24px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.job-period {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
}

.job-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 14px;
}

.job-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.job-task {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.job-task::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* ==========================================================================
   ACADEMIC & PUBLICATIONS SECTION
   ========================================================================== */

.publications-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pub-card {
  padding: 24px;
  border-left: 4px solid var(--accent-primary);
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pub-journal {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pub-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Education Cards */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.edu-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-institution {
  font-size: 0.92rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  padding: 28px;
  position: relative;
}

.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 700;
  font-size: 1rem;
}

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

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.contact-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Contact Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-border);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* ==========================================================================
   RESUME FULL-SCREEN MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-pill);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-card-hover);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
}

/* Resume Layout inside modal */
.resume-paper {
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.resume-paper-header {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.resume-block {
  margin-bottom: 28px;
}

.resume-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: var(--bg-secondary);
  text-align: center;
  margin-top: 60px;
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in-toast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-in-toast {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Initial Loading Spinner */
.initial-loader {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile-First Breakpoints)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-description {
    margin: 0 auto 32px auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
  .hero-visual-card {
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .avatar-wrapper {
    width: 240px;
    height: 240px;
  }
  .chip-tech {
    left: -10px;
  }
  .chip-bio {
    right: -10px;
  }
}

/* Print Styles for Resume */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-header, .site-footer, .ambient-glow, .toast-container, .modal-close-btn, .btn-primary {
    display: none !important;
  }
  .modal-overlay {
    position: static;
    background: transparent;
    padding: 0;
  }
  .modal-window {
    max-height: none;
    border: none;
    box-shadow: none;
  }
  .resume-paper {
    border: none;
    padding: 0;
  }
}
/* ==========================================================================
   PREMIUM EDITORIAL THEME (v2) — overrides. Ink + lime accent, oversized type
   ========================================================================== */
:root, body.dark-theme {
  --bg-primary: #0b0b0e;
  --bg-secondary: #121216;
  --bg-card: #141418;
  --bg-card-hover: #1a1a20;
  --bg-glass: rgba(11, 11, 14, 0.8);
  --bg-pill: rgba(255, 255, 255, 0.05);
  --text-primary: #f4f4f1;
  --text-secondary: #a6a6ad;
  --text-muted: #7a7a83;
  --accent-primary: #d4ff3f;
  --accent-primary-hover: #e4ff7a;
  --accent-gradient: linear-gradient(135deg, #d4ff3f, #b6f21a);
  --accent-border: rgba(212, 255, 63, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-glow: 0 0 0 transparent;
  --on-accent: #0b0b0e;
  --font-display: 'Outfit', -apple-system, sans-serif;
}
body.light-theme {
  --bg-primary: #fafafc;
  --bg-secondary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-pill: rgba(15, 23, 42, 0.05);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #047857;
  --accent-primary-hover: #065f46;
  --accent-gradient: linear-gradient(135deg, #059669 0%, #047857 55%, #064e3b 100%);
  --accent-soft: rgba(4, 120, 87, 0.08);
  --accent-border: rgba(4, 120, 87, 0.22);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 35px rgba(4, 120, 87, 0.15);
  --on-accent: #ffffff;
}
body { letter-spacing: -0.005em; }
.ambient-glow { opacity: 0.25; filter: blur(140px); }
.ambient-glow-top { background: radial-gradient(circle, var(--accent-primary), transparent 70%); }
.ambient-glow-middle { display: none; }

/* On-accent text */
.btn-primary, .btn-resume, .brand-badge, .chip-icon, .contact-icon-box,
.project-link-btn:hover { color: var(--on-accent) !important; }
.btn-primary { box-shadow: none; border-radius: var(--radius-full); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px var(--accent-primary); transform: translateY(-2px); }
.btn-resume { box-shadow: none; }
.brand-badge { box-shadow: none; border-radius: 50%; }
.nav-link.active { border-bottom: 0; background: var(--text-primary); color: var(--bg-primary); }
.site-header { background: transparent; backdrop-filter: none; border-bottom: 0; position: fixed; width: 100%; }
.site-header::before { content: ''; position: absolute; inset: 12px 24px; border-radius: 9999px;
  background: var(--bg-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle); z-index: -1; }
.nav-container { padding: 0 48px; }
main { padding-top: var(--header-height); }

/* Cards: flat, large radius, hairline border */
.glass-card { background: var(--bg-card); backdrop-filter: none; border-radius: 28px; box-shadow: none; padding: 32px; }
.glass-card:hover { box-shadow: none; transform: translateY(-4px); border-color: var(--accent-border); }

/* Section headers: left-aligned, editorial */
.section { padding: 128px 0; }
.section-header { text-align: left; max-width: none; margin-bottom: 64px; counter-increment: sec; }
.section-tag { background: none; border: 0; padding: 0; color: var(--accent-primary); letter-spacing: .14em; }
.section-title { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; max-width: 16ch; }
.section-subtitle { max-width: 56ch; font-size: 1.1rem; }

/* HERO */
.hero-section { padding: 144px 0 96px; overflow: hidden; }
.hero-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; }
.hero-title { font-size: clamp(3rem, 8vw, 7rem); line-height: .95; letter-spacing: -0.05em; font-weight: 700; }
.hero-title .gradient-text { background: none; -webkit-text-fill-color: var(--accent-primary); color: var(--accent-primary); display: block; }
.hero-tagline { font-size: 1.25rem; font-weight: 400; color: var(--text-secondary); max-width: 34ch; }
.hero-description { display: none; }
.hero-status-pill { background: var(--bg-pill); border-color: var(--border-strong); color: var(--text-primary); }
.hero-visual-card { min-height: 520px; }
.avatar-wrapper { width: min(460px, 90vw); height: min(520px, 100vw); padding: 0; background: none; box-shadow: none; border-radius: 0; animation: none; overflow: visible; }
.avatar-wrapper::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 0; height: 82%;
  background: var(--accent-gradient); border-radius: 240px 240px 36px 36px; z-index: 0; }
.avatar-image { position: relative; z-index: 1; border-radius: 0 0 36px 36px; background: none; object-fit: contain; object-position: bottom; }
.floating-chip { z-index: 2; background: var(--bg-card); border-color: var(--border-strong); backdrop-filter: none; }
.chip-tech { top: 18%; left: -8%; }
.chip-bio { bottom: 14%; right: -6%; }
.hero-social-link { border-radius: 50%; }

/* Stats as big numerals */
.stats-grid { margin-top: 0; gap: 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.stat-item.glass-card { background: none; border: 0; border-radius: 0; padding: 40px 24px; text-align: left; border-right: 1px solid var(--border-subtle); }
.stat-item.glass-card:last-child { border-right: 0; }
.stat-item.glass-card:hover { transform: none; }
.stat-value { background: none; -webkit-text-fill-color: var(--text-primary); color: var(--text-primary); font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.03em; }

/* Projects: tall image cards */
.projects-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 32px; }
.project-card { border-radius: 32px; }
.project-media { height: 280px; }
.project-media-fallback { background: var(--bg-secondary); }
.project-title { font-size: 1.6rem; letter-spacing: -0.03em; }
.project-link-btn:hover { background: var(--accent-primary); }
.tech-tag { border-radius: 9999px; }

/* Skills: thin bars */
.skill-bar-track { height: 4px; border: 0; }
.skill-bar-fill { background: var(--accent-primary); }

/* Timeline */
.timeline-dot { background: var(--accent-primary); box-shadow: none; }
.job-period { color: var(--text-primary); }
.job-task::before { color: var(--accent-primary); }
.pub-card { border-left-width: 0; border-top: 3px solid var(--accent-primary); }

/* Leadership roles */
.role-card { border-top: 0 !important; }

/* Marquee strip */
.marquee { overflow: hidden; border-block: 1px solid var(--border-subtle); padding: 20px 0; background: var(--accent-primary); color: var(--on-accent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Footer */
.site-footer { background: var(--bg-primary); text-align: left; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-cta-group, .hero-socials { justify-content: flex-start; }
  .hero-visual-card { order: 0; min-height: 420px; }
  .stat-item.glass-card { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
}
@media (max-width: 768px) {
  .nav-container { padding: 0 28px; }
  .section { padding: 80px 0; }
  .nav-menu { top: calc(var(--header-height) + 8px); margin: 0 16px; border-radius: 24px; border: 1px solid var(--border-subtle); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .status-dot, .avatar-wrapper { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   DARK THEME POLISH (v3) — layered surfaces, calmer accent, refined details
   ========================================================================== */
body.dark-theme {
  --bg-primary: #0b0c0f;
  --bg-secondary: #101216;
  --bg-card: #13151a;
  --bg-card-hover: #171a20;
  --bg-glass: rgba(16, 18, 22, 0.72);
  --bg-pill: rgba(255, 255, 255, 0.045);
  --text-primary: #ecece8;
  --text-secondary: #a0a3ad;
  --text-muted: #7d808b;
  --accent-primary: #10b981;
  --accent-primary-hover: #34d399;
  --accent-gradient: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
  --accent-soft: rgba(16, 185, 129, 0.10);
  --accent-border: rgba(16, 185, 129, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --on-accent: #ffffff;
}

/* Atmosphere: soft emerald bloom top-right, subtle cyan bloom bottom-left, fine grain */
body.dark-theme { background:
    radial-gradient(900px 600px at 88% -8%, rgba(16, 185, 129, 0.07), transparent 60%),
    radial-gradient(800px 700px at -10% 55%, rgba(14, 165, 233, 0.04), transparent 60%),
    var(--bg-primary); }
body.dark-theme .ambient-glow { display: none; }
body.dark-theme::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Nav link refinement */
.nav-link { color: var(--text-secondary); }
.nav-link:hover { background: var(--bg-pill); color: var(--text-primary); }
body.dark-theme .nav-link.active { background: rgba(255,255,255,.09); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }
.theme-toggle-btn { border-radius: 50%; }

/* Surfaces: depth through gradient + inner highlight, not heavy borders */
body.dark-theme .glass-card, body.dark-theme .pillar-card {
  background: linear-gradient(180deg, #16181e 0%, #121419 100%);
  box-shadow: var(--card-highlight), 0 12px 32px -18px rgba(0,0,0,.7);
  border-color: var(--border-subtle);
}
body.dark-theme .glass-card:hover { border-color: var(--accent-border);
  box-shadow: var(--card-highlight), 0 22px 44px -22px rgba(0,0,0,.8), 0 0 0 1px var(--accent-soft); }
.pillar-card { border-radius: 20px; }
.pillar-icon-box { background: var(--accent-soft); border-color: var(--accent-border); }

/* Typography refinement */
.section-title { letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; max-width: 18ch; }
.section-subtitle { font-size: 1.05rem; line-height: 1.7; }
.section-tag { font-size: .75rem; opacity: .95; }
.hero-section { padding: 120px 0 80px; }
.hero-title { font-size: clamp(2.75rem, 7vw, 5.75rem); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.hero-title .gradient-text { -webkit-text-fill-color: var(--accent-primary); }
.hero-tagline { font-size: 1.2rem; line-height: 1.6; color: var(--text-secondary); max-width: 40ch; margin-bottom: 32px; }
.hero-status-pill { background: var(--bg-pill); border-color: var(--border-strong); color: var(--text-secondary); font-weight: 500; }
.status-dot { background: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); }

/* Hero portrait: calibrated emerald, depth and ground shadow */
body.dark-theme .avatar-wrapper::before { background: linear-gradient(170deg, #34d399 0%, #059669 100%);
  box-shadow: 0 40px 80px -30px rgba(16, 185, 129, 0.30); }
body.dark-theme .avatar-image { filter: contrast(1.02) saturate(.96); }
body.dark-theme .floating-chip { background: rgba(19,21,26,.88); backdrop-filter: blur(12px); box-shadow: var(--card-highlight), 0 12px 28px -12px rgba(0,0,0,.7); }

/* Buttons */
.btn { font-weight: 600; }
.btn-primary { background: var(--accent-primary); color: #ffffff; }
body.dark-theme .btn-primary:hover { background: var(--accent-primary-hover); box-shadow: 0 12px 28px -12px rgba(16, 185, 129, 0.45); }
body.dark-theme .btn-secondary { background: transparent; border-color: var(--border-strong); }
body.dark-theme .btn-secondary:hover { background: var(--bg-pill); }
.btn-resume { background: var(--accent-primary); color: #ffffff; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }

/* Marquee: quiet editorial ticker instead of a neon bar */
.marquee { background: transparent; color: var(--text-secondary); padding: 22px 0; border-color: var(--border-subtle); }
.marquee-track { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; gap: 40px; }
.marquee-track span[aria-hidden] { color: var(--accent-primary); }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* Stats: balanced, no awkward wraps */
.stat-item.glass-card { display: flex; flex-direction: column; gap: 6px; padding: 36px 28px; box-shadow: none; background: none; }
.stat-value { font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

/* Projects: flush media, consistent crops, graceful placeholders */
.project-card.glass-card { padding: 0; overflow: hidden; }
.project-media { height: 240px; border-bottom: 1px solid var(--border-subtle); }
.project-img { filter: saturate(.92) brightness(.94); transition: transform var(--transition-slow), filter var(--transition-normal); }
.project-card:hover .project-img { filter: saturate(1) brightness(1); }
.project-img[src$=".png"] { object-fit: contain; padding: 28px; background: radial-gradient(circle at 50% 40%, #1d2028, #13151a); filter: none; }
.project-media-fallback { gap: 12px; text-align: center; padding: 24px; font-size: .9rem;
  background: radial-gradient(120% 120% at 20% 0%, var(--accent-soft), transparent 55%), linear-gradient(180deg, #171a20, #12141a); color: var(--text-secondary); }
.project-media-fallback i { color: var(--accent-primary); font-size: 1.75rem; opacity: .9; }
.project-badge-pill { background: rgba(11,12,15,.72); }
.project-content { padding: 28px; }
.project-title { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.tech-tag { color: var(--text-secondary); background: rgba(255,255,255,.04); }
.project-link-btn { background: transparent; border-color: var(--border-strong); }
body.dark-theme .project-link-btn:hover { background: var(--accent-primary); color: var(--on-accent); }

/* Skills / timeline / publications */
.skill-bar-track { background: rgba(255,255,255,.06); }
.skill-bar-fill { background: linear-gradient(90deg, #059669, #34d399); }
.skill-meta span:last-child { color: var(--text-muted); font-weight: 500; }
.timeline::before { background: linear-gradient(180deg, var(--accent-border), var(--border-subtle) 30%, var(--border-subtle)); }
.timeline-dot { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--bg-primary); }
.job-period { color: var(--accent-primary); background: var(--accent-soft); border-color: var(--accent-border); }
.pub-card { border-top-color: var(--accent-border); }
.pub-journal { color: var(--accent-primary); }

/* Forms */
body.dark-theme .form-control { background: #0f1115; border-color: var(--border-strong); }
body.dark-theme .form-control:focus { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent-primary); }
.contact-item { background: rgba(255,255,255,.03); }
.contact-icon-box { background: var(--accent-soft); color: var(--accent-primary) !important; border: 1px solid var(--accent-border); }

/* Modal + footer */
body.dark-theme .modal-window { background: #111318; }
.site-footer { background: transparent; border-top-color: var(--border-subtle); }

@media (max-width: 768px) {
  .nav-container { padding: 0 20px; }
  .hero-section { padding: 104px 0 56px; }
  .project-media { height: 200px; }
}
body.dark-theme .stat-item.glass-card { background: none; box-shadow: none; }
.section-title { max-width: 22ch; }
.pillar-head .stat-label { text-transform: none; letter-spacing: 0; font-size: .82rem; }

/* ==========================================================================
   ENHANCED INTERACTIVE FEATURES (Apple/Linear Grade Micro-Interactions)
   ========================================================================== */

/* Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 60ms linear;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background: var(--accent-primary);
  color: var(--on-accent);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--accent-soft);
}

/* Nav Icon / Command Palette Trigger */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.nav-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}
.kbd-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
}

/* Hero Typing & Cycling Roles */
.hero-cycle-wrapper {
  display: inline-block;
  min-height: 1.3em;
  vertical-align: bottom;
}
.hero-cycle-text {
  color: var(--accent-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-primary);
}
.cursor-blink {
  display: inline-block;
  font-weight: 300;
  color: var(--accent-primary);
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 3D Tilt on Hero Avatar Wrapper */
.avatar-wrapper {
  perspective: 1000px;
  transition: transform 200ms ease-out;
  transform-style: preserve-3d;
}

/* Project Filter Tabs */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.filter-btn.active {
  background: var(--accent-primary);
  color: var(--on-accent);
  border-color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 4px 16px var(--accent-soft);
}

/* Project Card Highlights List */
.project-highlights-list {
  list-style: none;
  margin: 14px 0 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.project-highlight-item i {
  color: var(--accent-primary);
  font-size: 0.78rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Action button for Architecture Specs */
.btn-specs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-specs:hover {
  background: var(--accent-primary);
  color: var(--on-accent);
  transform: translateY(-1px);
}

/* Live Skill Search Bar */
.skill-search-wrapper {
  max-width: 480px;
  margin: 0 auto 36px auto;
  position: relative;
}
.skill-search-input {
  width: 100%;
  padding: 12px 20px 12px 42px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}
.skill-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.skill-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Citation & Copy Buttons */
.btn-citation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-citation:hover {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}

/* Quick Copy Pill in Contact */
.copy-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 4px;
  transition: all var(--transition-fast);
}
.copy-pill-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-color: var(--accent-border);
}

/* Command Palette Modal */
.cmd-palette-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 20px 20px;
}
.cmd-palette-modal.active {
  display: flex;
}
.cmd-palette-window {
  width: 100%;
  max-width: 620px;
  background: #111318;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  animation: cmdAppear 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cmdAppear {
  from { opacity: 0; transform: scale(0.97) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cmd-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.cmd-search-box i {
  color: var(--accent-primary);
  font-size: 1.1rem;
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit;
}
.cmd-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  list-style: none;
  margin: 0;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}
.cmd-item:hover, .cmd-item.selected {
  background: var(--accent-soft);
  color: var(--text-primary);
}
.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-item-left i {
  width: 18px;
  text-align: center;
  color: var(--accent-primary);
}
.cmd-footer {
  padding: 10px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Architecture Specs Modal Window */
.specs-modal-window {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  background: #111318;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  animation: cmdAppear 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.specs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.specs-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.specs-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.specs-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.specs-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.specs-list-item i {
  color: var(--accent-primary);
  margin-top: 5px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Safe areas */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   FREELANCE & CLIENT SERVICES SUITE (Spacing & Layout Architecture)
   ========================================================================== */

/* Freelance Availability Banner */
.freelance-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 28px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--accent-primary);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-deliverable-item i {
  color: var(--accent-primary);
  font-size: 0.8rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.service-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Process & Methodology Roadmap */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.process-card {
  padding: 28px;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  opacity: 0.9;
  margin-bottom: 14px;
  display: inline-block;
  letter-spacing: -0.04em;
}

.process-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.process-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Engagement Packages (Pricing & Retainers) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.package-card {
  padding: 32px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-normal);
}

.package-card:hover {
  transform: translateY(-4px);
}

.package-card.featured {
  border: 1px solid var(--accent-primary);
  box-shadow: var(--card-highlight), 0 20px 40px -15px rgba(16, 185, 129, 0.20);
}

.package-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.package-name {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.package-highlight {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.package-timeline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  width: fit-content;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.package-feature-item i {
  color: var(--accent-primary);
  font-size: 0.8rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Form 2-Column Responsive Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ==========================================================================
   POSITIONING & SPACING AUDIT (Tablets, Mobiles, and Ultrawide Screens)
   ========================================================================== */

/* Breakpoint 1024px: Switch to Mobile Hamburger to prevent cramped nav items */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    left: 16px;
    right: 16px;
    background: #111318;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    padding: 24px;
    gap: 10px;
    display: none;
    z-index: 1000;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual-card {
    order: -1;
    margin-bottom: 10px;
  }
  .avatar-wrapper {
    max-width: 300px;
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 80px 0 40px 0;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .floating-chip {
    position: static !important;
    margin: 8px auto 0 auto;
    width: fit-content;
  }
  .hero-visual-card .avatar-wrapper {
    width: 240px;
    height: 240px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-item.glass-card {
    padding: 20px 14px;
  }
  .project-filters {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .services-grid, .packages-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIGHT THEME LUXURY SYSTEM (Nordic Botanical Emerald & Porcelain Slate)
   ========================================================================== */

body.light-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Atmospheric glow in light mode: soft ambient emerald mist */
body.light-theme::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header floating pill in light theme */
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

body.light-theme .brand-name {
  color: #0f172a;
}

body.light-theme .nav-link {
  color: #475569;
}

body.light-theme .nav-link:hover {
  color: #047857;
  background: rgba(4, 120, 87, 0.07);
}

body.light-theme .nav-link.active {
  color: #047857;
  background: rgba(4, 120, 87, 0.10);
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.22);
}

body.light-theme .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #0f172a;
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(4, 120, 87, 0.08);
  border-color: rgba(4, 120, 87, 0.25);
  color: #047857;
}

body.light-theme .cmd-k-trigger {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #475569;
}

body.light-theme .cmd-k-trigger:hover {
  border-color: rgba(4, 120, 87, 0.25);
  color: #047857;
}

/* Light theme cards & surfaces */
body.light-theme .glass-card,
body.light-theme .pillar-card,
body.light-theme .service-card,
body.light-theme .package-card,
body.light-theme .process-card,
body.light-theme .role-card,
body.light-theme .pub-card,
body.light-theme .cert-card,
body.light-theme .testimonial-card,
body.light-theme .skill-category-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

body.light-theme .glass-card:hover,
body.light-theme .service-card:hover,
body.light-theme .package-card:hover,
body.light-theme .role-card:hover {
  border-color: rgba(4, 120, 87, 0.30);
  box-shadow: 0 16px 36px -8px rgba(4, 120, 87, 0.10);
}

/* Light theme Hero Section */
body.light-theme .hero-status-pill {
  background: rgba(4, 120, 87, 0.06);
  border-color: rgba(4, 120, 87, 0.20);
  color: #065f46;
}

body.light-theme .status-dot {
  background: #059669;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.45);
}

body.light-theme .hero-title .gradient-text {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .avatar-wrapper::before {
  background: linear-gradient(170deg, #10b981 0%, #047857 100%);
  box-shadow: 0 35px 70px -25px rgba(4, 120, 87, 0.28);
}

body.light-theme .hero-social-link {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-social-link:hover {
  color: #047857;
  border-color: #047857;
  background: rgba(4, 120, 87, 0.06);
  transform: translateY(-2px);
}

/* Buttons in light theme */
body.light-theme .btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(4, 120, 87, 0.25);
}

body.light-theme .btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.35);
  color: #ffffff;
}

body.light-theme .btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-theme .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.25);
}

body.light-theme .btn-resume {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
}

/* Marquee in light theme */
body.light-theme .marquee {
  background: rgba(4, 120, 87, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

body.light-theme .marquee-track span[aria-hidden] {
  color: #059669;
}

/* Filter buttons in light theme */
body.light-theme .filter-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #475569;
}

body.light-theme .filter-btn:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22);
}

body.light-theme .filter-btn.active {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
}

/* Tags and Badges in light theme */
body.light-theme .tech-tag {
  background: rgba(4, 120, 87, 0.06);
  color: #065f46;
  border: 1px solid rgba(4, 120, 87, 0.14);
}

body.light-theme .project-badge-pill {
  background: rgba(255, 255, 255, 0.94);
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.20);
}

body.light-theme .project-link-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
}

body.light-theme .project-link-btn:hover {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
}

body.light-theme .btn-specs {
  background: rgba(4, 120, 87, 0.08);
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.22);
}

body.light-theme .btn-specs:hover {
  background: #047857;
  color: #ffffff;
}

body.light-theme .project-media-fallback {
  background: radial-gradient(120% 120% at 20% 0%, rgba(4, 120, 87, 0.08), transparent 60%), linear-gradient(180deg, #f3f4f6, #e5e7eb);
  color: #334155;
}

body.light-theme .project-media-fallback i {
  color: #047857;
}

/* Skills in light theme */
body.light-theme .skill-search-input {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-theme .skill-search-input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

body.light-theme .skill-bar-track {
  background: rgba(15, 23, 42, 0.07);
}

body.light-theme .skill-bar-fill {
  background: linear-gradient(90deg, #10b981, #047857);
}

/* Career Timeline & Research in light theme */
body.light-theme .timeline::before {
  background: linear-gradient(180deg, rgba(4, 120, 87, 0.35), rgba(15, 23, 42, 0.08) 30%, rgba(15, 23, 42, 0.08));
}

body.light-theme .timeline-dot {
  background: #047857;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.15);
  border-color: #ffffff;
}

body.light-theme .job-period {
  color: #047857;
  background: rgba(4, 120, 87, 0.08);
  border-color: rgba(4, 120, 87, 0.20);
}

body.light-theme .pub-card {
  border-top: 3px solid #047857;
}

body.light-theme .pub-journal {
  color: #047857;
}

body.light-theme .citation-copy-btn {
  background: rgba(4, 120, 87, 0.08);
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.20);
}

body.light-theme .citation-copy-btn:hover {
  background: #047857;
  color: #ffffff;
}

/* Contact in light theme */
body.light-theme .contact-card {
  background: #ffffff;
}

body.light-theme .contact-quick-pill {
  background: rgba(4, 120, 87, 0.06);
  border-color: rgba(4, 120, 87, 0.18);
  color: #065f46;
}

body.light-theme .contact-quick-pill:hover {
  background: rgba(4, 120, 87, 0.12);
  color: #047857;
  border-color: #047857;
}

body.light-theme .contact-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

body.light-theme .contact-icon-box {
  background: rgba(4, 120, 87, 0.08);
  color: #047857 !important;
  border: 1px solid rgba(4, 120, 87, 0.20);
}

body.light-theme .form-control {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-theme .form-control:focus {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

/* Command Palette and Modals in light theme */
body.light-theme .cmd-k-window,
body.light-theme .resume-modal-window,
body.light-theme .specs-modal-window {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.18);
}

body.light-theme .cmd-k-input-wrapper {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .cmd-k-input {
  color: #0f172a;
}

body.light-theme .cmd-k-item {
  color: #334155;
}

body.light-theme .cmd-k-item:hover,
body.light-theme .cmd-k-item.selected {
  background: rgba(4, 120, 87, 0.08);
  color: #047857;
}

body.light-theme .modal-close-btn {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #334155;
}

body.light-theme .modal-close-btn:hover {
  background: rgba(4, 120, 87, 0.10);
  color: #047857;
}

body.light-theme .section-tag {
  color: #047857;
}

body.light-theme .pillar-icon-box {
  background: rgba(4, 120, 87, 0.08);
  border-color: rgba(4, 120, 87, 0.20);
  color: #047857;
}

body.light-theme .package-card.featured {
  border: 2px solid #047857;
  box-shadow: 0 20px 40px -15px rgba(4, 120, 87, 0.18);
}

body.light-theme .package-badge {
  color: #047857;
}

body.light-theme .back-to-top {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #047857;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.light-theme .back-to-top:hover {
  background: #047857;
  color: #ffffff;
}

body.light-theme .scroll-progress-bar {
  background: linear-gradient(90deg, #10b981, #047857);
}

