/* ==========================================================================
   SHIVANT KUMAR PANDEY - PORTFOLIO DESIGN SYSTEM
   Glassmorphism & Material Pattern Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Coding Material Domains */
  --color-cloud: #f59e0b;
  --color-cloud-light: #fbbf24;
  --color-cloud-glow: rgba(245, 158, 11, 0.25);

  --color-backend: #06b6d4;
  --color-backend-light: #22d3ee;
  --color-backend-glow: rgba(6, 182, 212, 0.25);

  --color-frontend: #6366f1;
  --color-frontend-light: #818cf8;
  --color-frontend-glow: rgba(99, 102, 241, 0.25);

  --color-ai: #ec4899;
  --color-ai-light: #f472b6;
  --color-ai-glow: rgba(236, 72, 153, 0.25);

  --color-cert: #10b981;
  --color-cert-light: #34d399;
  --color-cert-glow: rgba(16, 185, 129, 0.25);

  --color-accent-purple: #8b5cf6;
  --color-accent-blue: #3b82f6;

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

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Default Dark Mode (Deep Cyber Glass) */
  --bg-base: #070a12;
  --bg-gradient: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
                 radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.10) 0%, transparent 40%),
                 radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.10) 0%, transparent 50%),
                 #070a12;
  
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-bg-hover: rgba(24, 34, 60, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --glass-blur: 16px;
  
  --glass-nav-bg: rgba(7, 10, 18, 0.82);
  
  --text-main: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

  --card-bg-subtle: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
}

/* Light Theme (Frosted Pearl Glass) */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-gradient: radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
                 radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
                 radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
                 #f8fafc;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(203, 213, 225, 0.8);
  --glass-border-hover: rgba(148, 163, 184, 0.6);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --glass-blur: 18px;

  --glass-nav-bg: rgba(248, 250, 252, 0.96);

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

  /* Accessible High-Contrast Material Accents for Light Mode */
  --color-cloud: #d97706;
  --color-cloud-light: #b45309;
  --color-cloud-glow: rgba(217, 119, 6, 0.2);

  --color-backend: #0891b2;
  --color-backend-light: #0e7490;
  --color-backend-glow: rgba(8, 145, 178, 0.2);

  --color-frontend: #4f46e5;
  --color-frontend-light: #4338ca;
  --color-frontend-glow: rgba(79, 70, 229, 0.2);

  --color-ai: #db2777;
  --color-ai-light: #be185d;
  --color-ai-glow: rgba(219, 39, 119, 0.2);

  --color-cert: #059669;
  --color-cert-light: #047857;
  --color-cert-glow: rgba(5, 150, 105, 0.2);

  --shadow-glass: 0 8px 32px 0 rgba(148, 163, 184, 0.2);
  --shadow-card: 0 10px 25px -8px rgba(100, 116, 139, 0.15);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);

  --card-bg-subtle: rgba(241, 245, 249, 0.85);
  --border-subtle: rgba(203, 213, 225, 0.9);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #070a12;
  color: #f1f5f9;
}

body {
  font-family: var(--font-sans);
  background-color: #070a12;
  background: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background var(--transition-normal), color var(--transition-normal);
}

[data-theme="light"] html,
[data-theme="light"] body {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Ambient Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   3. Glassmorphism Utilities
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition-normal), 
              box-shadow var(--transition-normal), 
              border-color var(--transition-normal),
              background var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Top highlight sheen line for cards */
.glass-card::before, .glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

/* Material Domain Accent Glow Borders */
.card-cloud:hover { border-color: var(--color-cloud); box-shadow: 0 10px 30px -10px var(--color-cloud-glow); }
.card-backend:hover { border-color: var(--color-backend); box-shadow: 0 10px 30px -10px var(--color-backend-glow); }
.card-frontend:hover { border-color: var(--color-frontend); box-shadow: 0 10px 30px -10px var(--color-frontend-glow); }
.card-ai:hover { border-color: var(--color-ai); box-shadow: 0 10px 30px -10px var(--color-ai-glow); }
.card-cert:hover { border-color: var(--color-cert); box-shadow: 0 10px 30px -10px var(--color-cert-glow); }

/* Material Badges & Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  transition: all var(--transition-fast);
}

.tag i {
  flex-shrink: 0;
}

.tag-cloud {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-cloud-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-backend {
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-backend-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.tag-frontend {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-frontend-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-ai {
  background: rgba(236, 72, 153, 0.12);
  color: var(--color-ai-light);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.tag-cert {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-cert-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-subtle {
  background: var(--card-bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
  color: #ffffff;
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6);
}

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

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--color-backend);
}

/* --------------------------------------------------------------------------
   5. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: var(--glass-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  height: 68px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-backend);
  object-fit: cover;
  box-shadow: 0 0 12px var(--color-backend-glow);
}

.brand-title {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, var(--color-backend) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--card-bg-subtle);
}

.nav-link.active {
  color: var(--color-backend-light);
  background: rgba(6, 182, 212, 0.1);
  font-weight: 600;
}

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

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  transform: rotate(15deg);
  border-color: var(--color-cloud);
  color: var(--color-cloud);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 150px 0 90px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cert-light);
  margin-bottom: 24px;
  max-width: 100%;
  line-height: 1.45;
  box-sizing: border-box;
}

.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-cert);
  position: relative;
  flex-shrink: 0;
}

.beacon-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-cert);
  animation: pulseBeacon 2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-greeting {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-backend-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(1.85rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  word-break: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, var(--color-frontend-light) 70%, var(--color-backend-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 40%, var(--color-frontend) 70%, var(--color-backend) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role-wrapper {
  font-size: clamp(1.05rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--text-muted);
  min-height: 2.4em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.typewriter-text {
  color: var(--color-cloud-light);
  font-family: var(--font-mono);
  border-right: 2px solid var(--color-cloud);
  padding-right: 4px;
  animation: blinkCursor 0.8s step-end infinite;
  word-break: break-word;
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--color-cloud); }
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-social-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  color: #fff;
  transform: translateY(-3px);
}

.social-pill.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.social-pill.github:hover { background: #24292e; border-color: #555; }
.social-pill.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.social-pill.instagram:hover { background: #e1306c; border-color: #e1306c; }
.social-pill.youtube:hover { background: #ff0000; border-color: #ff0000; }
.social-pill.blog:hover { background: #ff5722; border-color: #ff5722; }

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

.profile-card-glass {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), 0 0 50px rgba(99, 102, 241, 0.15);
  text-align: center;
  transition: transform var(--transition-normal);
}

.profile-card-glass:hover {
  transform: translateY(-6px);
}

.profile-img-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: var(--radius-full);
  padding: 8px;
  background: linear-gradient(135deg, var(--color-cloud), var(--color-backend), var(--color-frontend));
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--bg-base);
}

.profile-badge-floating {
  position: absolute;
  bottom: 0px;
  right: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.profile-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.mini-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-backend-light);
}

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

/* --------------------------------------------------------------------------
   7. Live Stats Banner (Dynamic Metrics)
   -------------------------------------------------------------------------- */
.stats-banner {
  padding: 40px 0;
  margin-bottom: 40px;
}

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

.stat-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
}

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-mono);
}

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

/* --------------------------------------------------------------------------
   8. Section Headers
   -------------------------------------------------------------------------- */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

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

/* --------------------------------------------------------------------------
   9. About & Core Highlights Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.about-narrative {
  padding: 36px;
}

.about-narrative p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-narrative p strong {
  color: var(--text-main);
}

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

.pillar-card {
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillar-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Experience Timeline (Material Vertical Pattern)
   -------------------------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-cloud) 0%, var(--color-backend) 40%, var(--color-frontend) 80%, var(--color-cert) 100%);
  border-radius: var(--radius-full);
}

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

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

.timeline-node {
  position: absolute;
  left: 14px;
  top: 24px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  border: 3px solid var(--color-backend);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 15px var(--color-backend-glow);
}

.timeline-node.node-cloud { border-color: var(--color-cloud); box-shadow: 0 0 15px var(--color-cloud-glow); }
.timeline-node.node-backend { border-color: var(--color-backend); box-shadow: 0 0 15px var(--color-backend-glow); }
.timeline-node.node-frontend { border-color: var(--color-frontend); box-shadow: 0 0 15px var(--color-frontend-glow); }
.timeline-node.node-ai { border-color: var(--color-ai); box-shadow: 0 0 15px var(--color-ai-glow); }
.timeline-node.node-cert { border-color: var(--color-cert); box-shadow: 0 0 15px var(--color-cert-glow); }

.timeline-node-inner {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: currentColor;
}

.timeline-card {
  padding: 28px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  min-width: 0;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.timeline-company {
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.timeline-company i {
  margin-top: 3px;
  flex-shrink: 0;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--card-bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
}

.timeline-body p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.timeline-bullets {
  margin-bottom: 16px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--color-backend-light);
  font-weight: bold;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   11. Skills & Domain Matrix
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 22px;
}

.skill-category-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.category-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

.category-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--card-bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--color-backend-light);
}

.skill-chip i {
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   12. Featured Projects Section
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px;
}

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

.project-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-bullets {
  margin-bottom: 20px;
}

.project-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.project-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-cert-light);
  font-weight: bold;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   13. Certifications & Credentials Hub (Filterable & Lightbox)
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

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

.filter-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.4));
  border-color: var(--color-backend);
  color: #ffffff;
  box-shadow: 0 0 16px var(--color-backend-glow);
}

[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  border-color: #0891b2;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.cert-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cert-card.hidden {
  display: none !important;
}

.cert-thumb-wrap {
  position: relative;
  width: 100%;
  height: 175px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
}

.cert-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.cert-card:hover .cert-thumb {
  transform: scale(1.06);
}

.cert-overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cert-card:hover .cert-overlay-hover {
  opacity: 1;
}

.cert-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-issuer {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.cert-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
}

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

/* --------------------------------------------------------------------------
   14. Fullscreen Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-wrap {
  max-height: 70vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #000;
}

.lightbox-img {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   15. Education & Leadership Section
   -------------------------------------------------------------------------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.edu-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.edu-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.edu-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.edu-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  flex-grow: 1;
}

.edu-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
  word-break: break-word;
}

.edu-inst {
  font-size: 0.94rem;
  color: var(--color-backend-light);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
  line-height: 1.4;
}

.edu-inst i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
  line-height: 1.4;
}

.edu-meta i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.edu-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  word-break: break-word;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   16. Contact Hub Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.contact-info-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

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

.contact-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-details {
  flex-grow: 1;
  min-width: 0;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item-val {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
  overflow-wrap: anywhere;
}

.copy-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: #fff;
  border-color: var(--color-backend);
}

/* Contact Form */
.contact-form-card {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--card-bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-backend);
  box-shadow: 0 0 16px var(--color-backend-glow);
  background: var(--glass-bg-hover);
}

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

/* --------------------------------------------------------------------------
   17. Footer & Floating Back-To-Top
   -------------------------------------------------------------------------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-backend);
  color: #fff;
  border-color: var(--color-backend);
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   18. Toast Notification System
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  pointer-events: none;
}

.toast {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastPop {
  from { transform: translateY(20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   19. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-role-wrapper {
    justify-content: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-social-strip {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(7, 10, 18, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 8px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }
  [data-theme="light"] .nav-menu {
    background: rgba(248, 250, 252, 0.98);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .nav-actions .btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.3rem);
    word-break: break-word;
  }
  .section-subtitle {
    font-size: 0.98rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding: 105px 0 45px;
  }
  .status-beacon {
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    display: inline-flex;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    word-break: break-word;
  }
  .beacon-dot {
    margin-top: 4px;
    flex-shrink: 0;
  }
  .hero-name {
    font-size: clamp(1.7rem, 7.5vw, 2.5rem);
  }
  .hero-role-wrapper {
    min-height: 3.2em;
    font-size: clamp(0.95rem, 3.8vw, 1.35rem);
    line-height: 1.4;
  }
  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stat-box {
    padding: 16px 18px;
  }
  .stat-num {
    font-size: 1.75rem;
  }
  .timeline-wrapper::before {
    left: 10px;
  }
  .timeline-item {
    padding-left: 36px;
    margin-bottom: 26px;
  }
  .timeline-node {
    left: 0px;
    top: 18px;
    width: 22px;
    height: 22px;
  }
  .timeline-node-inner {
    width: 8px;
    height: 8px;
  }
  .timeline-card {
    padding: 18px 14px;
    width: 100%;
    min-width: 0;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .timeline-header > div {
    width: 100%;
    min-width: 0;
  }
  .timeline-role {
    font-size: 1.15rem;
  }
  .timeline-company {
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .timeline-date {
    display: inline-block;
    font-size: 0.78rem;
    padding: 3px 10px;
    margin-top: 2px;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
  }
  .about-narrative {
    padding: 20px 16px;
  }
  .pillar-card {
    padding: 16px 14px;
  }
  .edu-card {
    padding: 20px 16px;
  }
  .edu-title {
    font-size: 1.1rem;
  }
  .edu-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    padding-top: 12px;
  }
  .contact-info-card, .contact-form-card {
    padding: 20px 14px;
  }
  .contact-item {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .contact-item-details {
    min-width: 0;
    flex: 1 1 180px;
  }
  .contact-item-val {
    word-break: break-all;
    font-size: 0.88rem;
  }
  .filter-tabs {
    gap: 8px;
    margin-bottom: 24px;
  }
  .filter-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .project-card {
    padding: 20px 16px;
  }
  .profile-card-glass {
    max-width: 100%;
    padding: 20px 16px;
  }
  .profile-img-container {
    width: 170px;
    height: 170px;
  }
  .lightbox-modal {
    padding: 12px;
  }
  .lightbox-content {
    padding: 16px 14px 14px;
    max-height: 92vh;
    width: 100%;
  }
  .lightbox-img-wrap {
    max-height: 52vh;
  }
  .lightbox-img {
    max-height: 52vh;
  }
  .lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
  }
  .lightbox-caption > div {
    width: 100%;
  }
  .lightbox-title {
    font-size: 0.96rem;
    line-height: 1.35;
    word-break: break-word;
  }
}

@media (max-width: 380px) {
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-avatar {
    width: 32px;
    height: 32px;
  }
  .hero-name {
    font-size: 1.55rem;
  }
  .hero-role-wrapper {
    font-size: 0.92rem;
  }
  .social-pill {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .stat-box {
    padding: 14px 12px;
    gap: 12px;
  }
  .stat-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .stat-num {
    font-size: 1.45rem;
  }
  .stat-desc {
    font-size: 0.82rem;
  }
  .timeline-card {
    padding: 16px 12px;
  }
  .timeline-item {
    padding-left: 32px;
  }
  .about-narrative {
    padding: 18px 14px;
  }
  .pillar-card {
    padding: 16px 12px;
  }
  .contact-info-card, .contact-form-card {
    padding: 18px 12px;
  }
}