/* ==========================================================================
   Himanshu Mishra - Monochromatic Noir & Ink Portfolio Stylesheet
   Tailored to match the vintage retro black & white background artwork
   High-contrast, elegant typography, frosted monochrome glassmorphism
   ========================================================================== */

/* --- Custom Monochromatic CSS Variables & Themes --- */
:root {
  /* Dark / Noir Monochrome Theme (Default) */
  --bg-primary: #08080a;
  --bg-secondary: #0f0f13;
  --bg-tertiary: #17171e;
  --bg-card: rgba(15, 15, 20, 0.82);
  --bg-card-hover: rgba(24, 24, 32, 0.94);
  --bg-glass: rgba(10, 10, 14, 0.88);
  --bg-glass-border: rgba(255, 255, 255, 0.18);
  --bg-glass-highlight: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #8e8e99;
  --text-inverse: #050507;

  /* Monochromatic Accents */
  --primary: #ffffff;
  --primary-glow: rgba(255, 255, 255, 0.35);
  --primary-light: #f4f4f5;
  --primary-dark: #e4e4e7;

  --secondary: #e4e4e7;
  --secondary-glow: rgba(255, 255, 255, 0.2);

  --accent-purple: #ffffff;
  --accent-emerald: #ffffff;
  --accent-amber: #e4e4e7;
  --accent-rose: #d4d4d8;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: #ffffff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

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

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.2);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light / Stark Chalk & Ink Monochrome Theme */
[data-theme="light"] {
  --bg-primary: #f4f4f6;
  --bg-secondary: #e8e8ec;
  --bg-tertiary: #dcdce0;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(245, 245, 248, 0.9);
  --bg-glass-border: rgba(0, 0, 0, 0.18);
  --bg-glass-highlight: rgba(255, 255, 255, 0.85);

  --text-primary: #09090b;
  --text-secondary: #27272a;
  --text-muted: #52525b;
  --text-inverse: #ffffff;

  --primary: #000000;
  --primary-glow: rgba(0, 0, 0, 0.2);
  --primary-light: #18181b;
  --primary-dark: #27272a;

  --secondary: #3f3f46;
  --secondary-glow: rgba(0, 0, 0, 0.15);

  --border-subtle: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 25px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   Full-Screen Background Artwork Layer
   Displays vintage ink cartoon art with high-fidelity monochrome contrast
   ========================================================================== */
.site-bg-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.32;
  filter: grayscale(100%) contrast(1.3) brightness(0.72);
  transition: opacity var(--transition-normal), filter var(--transition-normal);
  transform: translateZ(0); /* Hardware accelerated */
  will-change: opacity, filter;
}

[data-theme="light"] .site-bg-layer {
  opacity: 0.22;
  filter: grayscale(100%) contrast(1.15) brightness(1.02);
}

/* Neural Network Background Canvas (Pure White Constellations) */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: opacity var(--transition-normal);
}

[data-theme="light"] #neural-canvas {
  opacity: 0.35;
}

/* Background Monochromatic Ambient Vignettes */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.orb-primary {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.orb-secondary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
}

/* --- Typography (High-Contrast Monochrome) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.text-highlight {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.text-highlight:hover {
  text-decoration-color: #ffffff;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

/* Badges & Section Titles */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .section-badge {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 3.5rem;
}

/* Platinum/Silver Metallic Monochromatic Gradient */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 45%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #09090b 0%, #27272a 50%, #52525b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Frosted Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--bg-glass-border);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  z-index: 100;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1220px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-profile-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-logo:hover .nav-profile-thumb {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.logo-orbit-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
  animation: orbitPulse 2.4s infinite ease-in-out;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.nav-logo-text .logo-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: width var(--transition-fast);
}

[data-theme="light"] .nav-link::after {
  background: #000000;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.highlight-collab {
  color: #ffffff !important;
  font-weight: 600;
  position: relative;
}

[data-theme="light"] .highlight-collab {
  color: #000000 !important;
}

.highlight-collab::before {
  content: '';
  position: absolute;
  top: 6px;
  right: -7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse-ring 1.8s infinite;
}

[data-theme="light"] .highlight-collab::before {
  background-color: #000000;
  box-shadow: 0 0 6px #000000;
}

.highlight-link {
  color: #ffffff !important;
  font-weight: 600;
}

[data-theme="light"] .highlight-link {
  color: #000000 !important;
}

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: rotate(15deg);
}

.sound-toggle-btn {
  color: var(--text-secondary);
}

.sound-toggle-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   Buttons (Stark Black & White / High Contrast)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #ffffff;
  color: #000000 !important;
  font-weight: 700;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: #e4e4e7;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .btn-primary {
  background: #000000;
  color: #ffffff !important;
  border-color: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-primary:hover {
  background: #27272a;
  color: #ffffff !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff;
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000000;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-outline:hover {
  border-color: #000000;
  background: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Hero Section & Profile Showcase
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .status-pill {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 10px #ffffff;
  animation: pulse-ring 2s infinite;
}

[data-theme="light"] .pulse-indicator {
  background-color: #000000;
  box-shadow: 0 0 8px #000000;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  display: inline-block;
}

.stat-plus {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 700;
}

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

.stat-divider {
  width: 1px;
  height: 38px;
  background-color: var(--border-subtle);
}

/* Hero Profile Showcase Card */
.hero-graphic {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-profile-showcase {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(16, 16, 22, 0.88) 0%, rgba(10, 10, 14, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hero-profile-showcase {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.15);
}

.profile-photo-container {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.hero-profile-showcase:hover .hero-profile-img {
  transform: scale(1.04);
}

.photo-orbital-glow {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  z-index: 1;
}

.photo-status-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  z-index: 3;
  background: #ffffff;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

[data-theme="light"] .photo-status-badge {
  background: #000000;
  color: #ffffff;
}

.profile-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.profile-card-header h3 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
  letter-spacing: -0.02em;
}

.profile-card-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-card-motto {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0.2rem 0 0.5rem 0;
}

.profile-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-item {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Monochromatic Code Terminal */
.code-terminal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 13, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .code-terminal-card {
  background: #121214;
  color: #f8fafc;
  border-color: rgba(0, 0, 0, 0.2);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.4;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #d4d4d8;
}

.terminal-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #000000;
  background: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
}

/* Black & White Code Syntax */
.code-keyword { color: #ffffff; font-weight: 700; }
.code-string { color: #d4d4d8; }
.code-comment { color: #71717a; font-style: italic; }
.code-number { color: #e4e4e7; }
.code-builtin { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); }

.terminal-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.status-indicator-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a1a1aa;
}

/* ==========================================================================
   About Grid & Philosophy
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.about-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .about-card-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
  border-color: rgba(0, 0, 0, 0.15);
}

.about-card h3 {
  font-size: 1.3rem;
}

.about-card p {
  margin: 0;
  font-size: 0.98rem;
}

/* ==========================================================================
   Reading Nook & Favorite Hindi Novels Feature
   ========================================================================== */
.reading-nook-card {
  margin-top: 2.25rem;
  padding: 2.25rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(18, 18, 24, 0.95) 0%, rgba(10, 10, 13, 0.98) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .reading-nook-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.reading-nook-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
}

.reading-img-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reading-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  background: #000000;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reading-photo-frame:hover {
  transform: translateY(-4px);
  border-color: #ffffff;
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.15);
}

.reading-books-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.reading-photo-frame:hover .reading-books-img {
  transform: scale(1.03);
}

.reading-zoom-badge {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  opacity: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.25s ease;
}

.reading-photo-frame:hover .reading-zoom-badge {
  opacity: 1;
}

.reading-caption {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.reading-content-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reading-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  width: fit-content;
}

[data-theme="light"] .reading-badge-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000000;
}

.reading-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.28;
}

.reading-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.bookshelf-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.25rem 0;
}

.book-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.book-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

[data-theme="light"] .book-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .book-item:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

.book-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

[data-theme="light"] .book-icon {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000000;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.book-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.book-author {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reading-quote-pill {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #ffffff;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

[data-theme="light"] .reading-quote-pill {
  background: rgba(0, 0, 0, 0.04);
  border-left-color: #000000;
}

@media (max-width: 992px) {
  .reading-nook-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ==========================================================================
   Collaboration Hub Section
   ========================================================================== */
.collab-section {
  padding-top: 2rem;
}

.collab-wrapper {
  padding: 3.5rem 2.75rem;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.65);
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.85) 0%, rgba(10, 10, 14, 0.95) 100%);
}

[data-theme="light"] .collab-wrapper {
  background: #ffffff;
}

.collab-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.collab-header .section-subtitle {
  margin: 0 auto;
}

.collab-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.collab-card {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.collab-card:hover {
  transform: translateY(-6px);
  border-color: #ffffff;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 255, 255, 0.15);
}

.collab-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

[data-theme="light"] .collab-icon-box {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000000;
}

.collab-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

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

.collab-action-btn {
  width: 100%;
}

.collab-banner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

[data-theme="light"] .collab-banner {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

.collab-banner .banner-text h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.collab-banner .banner-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   LinkedIn Credentials & Education Section
   ========================================================================== */
.linkedin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.linkedin-column {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.linkedin-col-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.col-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

[data-theme="light"] .col-icon {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
}

.linkedin-col-header h3 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
}

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

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

.edu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.edu-degree {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

[data-theme="light"] .edu-badge {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

.edu-field {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

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

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Experience Timeline inside LinkedIn Section */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 3px;
  width: 2px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.2) 100%);
  border-radius: 2px;
}

[data-theme="light"] .exp-timeline::before {
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.2) 100%);
}

.exp-item {
  position: relative;
}

.exp-dot {
  position: absolute;
  top: 6px;
  left: -1.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .exp-dot {
  border-color: #000000;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.exp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.exp-role {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.exp-company {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.exp-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* LinkedIn Connect Banner with Real Profile Photo */
.linkedin-connect-banner {
  padding: 1.75rem 2.25rem;
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(90deg, rgba(18, 18, 24, 0.9) 0%, rgba(12, 12, 16, 0.96) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

[data-theme="light"] .linkedin-connect-banner {
  background: #ffffff;
}

.banner-avatar-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar-photo-wrapper {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.banner-profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.avatar-linkedin-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid var(--bg-card);
}

[data-theme="light"] .avatar-linkedin-badge {
  background: #000000;
  color: #ffffff;
}

.banner-profile-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.banner-profile-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 580px;
}

.award-timeline-item {
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.exp-dot-trophy {
  width: 22px;
  height: 22px;
  left: -32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #000000;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .exp-dot-trophy {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.award-tag-role {
  color: #ffffff;
  font-weight: 800;
}
[data-theme="light"] .award-tag-role {
  color: #000000;
}

.chip-award {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .chip-award {
  background: rgba(0, 0, 0, 0.12) !important;
  border-color: #000000 !important;
  color: #000000 !important;
}

.stat-card-award {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.banner-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ==========================================================================
   National Level Science Exhibition 2nd Position Showcase Card
   ========================================================================== */
.achievement-showcase-card {
  margin-bottom: 2.5rem;
  padding: 2.25rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.95) 0%, rgba(10, 10, 14, 0.98) 100%);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .achievement-showcase-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.achievement-badge-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.award-trophy-tag {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .award-trophy-tag {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.award-level-tag {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #e4e4e7;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

[data-theme="light"] .award-level-tag {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
  color: #3f3f46;
}

.award-date-tag {
  color: var(--text-muted);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.achievement-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.25rem;
  align-items: center;
}

.achievement-cert-wrapper {
  position: relative;
  cursor: pointer;
}

.cert-img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  background: #000000;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.achievement-cert-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: opacity 0.25s ease;
}

.achievement-cert-wrapper:hover .cert-img-frame {
  transform: translateY(-4px);
  border-color: #ffffff;
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.15);
}

.achievement-cert-wrapper:hover .achievement-cert-img {
  transform: scale(1.03);
}

.achievement-cert-wrapper:hover .cert-zoom-overlay {
  opacity: 1;
}

.cert-caption {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.achievement-details {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.achievement-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.institution-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

[data-theme="light"] .institution-pill {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
  border-color: rgba(0, 0, 0, 0.15);
}

.institution-pill a {
  color: inherit;
  text-decoration: none;
}
.institution-pill a:hover {
  text-decoration: underline;
}

.event-tag {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.achievement-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

.team-quote-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #ffffff;
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

[data-theme="light"] .team-quote-box {
  background: rgba(0, 0, 0, 0.03);
  border-left-color: #000000;
}

.quote-lead {
  color: var(--text-primary);
  font-size: 0.96rem;
  margin-bottom: 0.5rem;
}

.quote-body {
  margin-bottom: 0.5rem;
}

.quote-mentor {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.team-members-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.team-member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.member-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.84rem;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.member-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="light"] .member-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .member-chip:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: #000000;
}

.member-chip.member-highlight {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

[data-theme="light"] .member-chip.member-highlight {
  border-color: #000000;
  background: rgba(0, 0, 0, 0.08);
}

.achievement-footer-motto {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Certificate Lightbox Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cert-modal-container {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 900px;
  max-height: 90vh;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal.open .cert-modal-container {
  transform: scale(1);
}

[data-theme="light"] .cert-modal-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-modal-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.cert-modal-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform var(--transition-fast);
}

.cert-modal-close:hover {
  transform: rotate(90deg);
}

.cert-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: calc(90vh - 120px);
}

.cert-full-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .achievement-body-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ==========================================================================
   Domains of Expertise / Specialties Grid
   ========================================================================== */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.specialty-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.spec-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

[data-theme="light"] .spec-icon {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000000;
}

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

.specialty-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.75rem;
}

.specialty-card p {
  font-size: 0.92rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.spec-tags li {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Interactive AI Playground (Vero Engine Simulator)
   ========================================================================== */
.playground-section {
  padding-top: 4rem;
}

.playground-wrapper {
  padding: 3rem 2.5rem;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
}

.playground-intro {
  margin-bottom: 2.5rem;
}

.playground-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
}

.control-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.chip-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 700;
}

[data-theme="light"] .chip-btn.active {
  background: #000000;
  color: #ffffff;
}

.playground-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 1.25rem;
}

[data-theme="light"] .playground-textarea {
  background: #ffffff;
}

.playground-textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.token-container {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.token-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.tokens-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.token-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: fadeIn 0.25s ease-out;
}

.token-pill .attn-weight {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Results Column */
.playground-results {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

[data-theme="light"] .playground-results {
  background: rgba(255, 255, 255, 0.85);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-header h3 {
  font-size: 1.15rem;
}

.time-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #000000;
  background: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

[data-theme="light"] .time-badge {
  background: #000000;
  color: #ffffff;
}

.sentiment-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.sentiment-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sentiment-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.sentiment-box h4 {
  font-size: 1.2rem;
  margin: 0.15rem 0;
}

.confidence-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Monochromatic Distribution Bars */
.distribution-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dist-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-green { background: #ffffff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.fill-blue { background: #d4d4d8; }
.fill-red { background: #71717a; }

/* Entities */
.entities-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.entities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.entity-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ==========================================================================
   Featured Projects Section
   ========================================================================== */
.project-search-container {
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.project-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem 0.35rem 2.85rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-search-box:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.project-search-box .search-icon {
  position: absolute;
  left: 1.15rem;
  font-size: 0.95rem;
  color: #ffffff;
  pointer-events: none;
}

[data-theme="light"] .project-search-box .search-icon {
  color: #000000;
}

.project-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0.45rem 0;
}

.project-search-box input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.clear-search-btn:hover {
  color: #ffffff;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.filter-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .filter-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.project-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #ffffff;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 255, 255, 0.12);
}

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

.project-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

[data-theme="light"] .project-type-tag {
  color: #000000;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.icon-link {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.icon-link:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.project-summary {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

[data-theme="light"] .project-metrics {
  background: rgba(0, 0, 0, 0.04);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

[data-theme="light"] .metric-val {
  color: #000000;
}

.metric-key {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tech-stack span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Skills Matrix Section
   ========================================================================== */
.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  padding: 2rem;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cat-icon {
  font-size: 1.35rem;
  color: #ffffff;
}

[data-theme="light"] .cat-icon {
  color: #000000;
}

.cat-header h3 {
  font-size: 1.2rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.skill-pill i {
  color: #ffffff;
  font-size: 0.9rem;
}

[data-theme="light"] .skill-pill i {
  color: #000000;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-author-badge {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-avatar-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.contact-author-badge h3 {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.contact-avatar-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-info > p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

[data-theme="light"] .info-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
  border-color: rgba(0, 0, 0, 0.15);
}

.info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

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

.social-links-block {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.social-heading {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .social-btn:hover {
  background: #000000;
  color: #ffffff;
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-group .required {
  color: #ffffff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #ffffff;
}

.field-error {
  font-size: 0.78rem;
  color: #ffffff;
  margin-top: 0.35rem;
  min-height: 1rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.form-feedback.error {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

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

.footer-left {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-avatar-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

/* ==========================================================================
   Interactive Starting Loading Page (Monochrome)
   ========================================================================== */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #070709;
  overflow: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}

.loader-overlay.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.035);
}

.loader-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(16, 16, 22, 0.78) 0%, rgba(6, 6, 8, 0.96) 80%), url('../assets/bg.jpg');
  background-size: cover;
  background-position: center center;
  background-blend-mode: multiply;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 580px;
  padding: 2.5rem 2rem;
}

/* Interactive Hologram Core */
.loader-core-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease;
}

.loader-core-wrapper:hover {
  transform: scale(1.08);
}

.loader-core-wrapper:active {
  transform: scale(0.96);
}

.unique-logo-emblem {
  position: relative;
  z-index: 5;
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
}

.unique-logo-svg {
  width: 100%;
  height: 100%;
}

.hex-boundary {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: drawHex 2.4s ease-in-out infinite alternate;
}

@keyframes drawHex {
  0% { stroke-dashoffset: 280; }
  100% { stroke-dashoffset: 0; }
}

.pulse-node {
  animation: nodeGlow 1.8s infinite alternate;
}

@keyframes nodeGlow {
  0% { r: 3; opacity: 0.7; }
  100% { r: 4.5; opacity: 1; filter: drop-shadow(0 0 6px #ffffff); }
}

/* Rotating Orbital Energy Rings */
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.ring-outer {
  width: 136px;
  height: 136px;
  border-color: rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-width: 1.5px;
  animation: spinOuter 6s linear infinite;
}

.ring-middle {
  width: 110px;
  height: 110px;
  border: 1.5px dotted rgba(255, 255, 255, 0.35);
  animation: spinInner 4.5s linear infinite reverse;
}

.ring-inner {
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left-color: #ffffff;
  animation: spinOuter 3s linear infinite;
}

.loader-pulse-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  animation: corePulse 2s ease-in-out infinite;
}

@keyframes spinOuter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinInner {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes corePulse {
  0%, 100% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0.8; }
}

/* Loader Screen Profile Avatar */
.loader-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem auto;
}

.loader-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
}

.loader-avatar-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  animation: spinOuter 8s linear infinite;
}

.loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.loader-name {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.loader-tagline {
  display: block;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.loader-terminal-box {
  width: 100%;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.loader-log-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loader-progress-container {
  width: 100%;
  margin-bottom: 1.5rem;
}

.loader-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  transition: width 0.15s ease-out;
}

.loader-status-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.loader-percent {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffffff;
}

.loader-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.loader-tip i {
  color: #ffffff;
}

.loader-skip-btn {
  font-size: 0.82rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  font-size: 0.9rem;
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.toast-success { border-left: 4px solid #ffffff; }
.toast.toast-error { border-left: 4px solid #a1a1aa; }
.toast.toast-info { border-left: 4px solid #ffffff; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

/* ==========================================================================
   Tactical Cyber-Architect Custom Cursor
   Enabled exclusively for pointer/desktop devices (disabled on touchscreens)
   ========================================================================== */
.custom-cursor-dot,
.custom-cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }

  .custom-cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 20px rgba(255, 255, 255, 0.4);
    transition: opacity 0.25s ease, transform 0.08s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    will-change: transform;
  }

  .custom-cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 999998;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15), inset 0 0 8px rgba(255, 255, 255, 0.05);
    transition: width 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                background-color 0.25s ease,
                box-shadow 0.25s ease,
                border-radius 0.25s ease,
                opacity 0.25s ease;
    will-change: transform, width, height;
  }

  /* Crosshair tick marks on the ring */
  .custom-cursor-ring .crosshair {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .crosshair-top {
    top: -4px;
    left: 50%;
    width: 1px;
    height: 4px;
    transform: translateX(-50%);
  }
  .crosshair-bottom {
    bottom: -4px;
    left: 50%;
    width: 1px;
    height: 4px;
    transform: translateX(-50%);
  }
  .crosshair-left {
    top: 50%;
    left: -4px;
    width: 4px;
    height: 1px;
    transform: translateY(-50%);
  }
  .crosshair-right {
    top: 50%;
    right: -4px;
    width: 4px;
    height: 1px;
    transform: translateY(-50%);
  }

  /* Hover State (Interactive Buttons, Links, Cards, Emblems) */
  .custom-cursor-ring.cursor-hover {
    width: 62px;
    height: 62px;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), inset 0 0 18px rgba(255, 255, 255, 0.2);
  }

  .custom-cursor-ring.cursor-hover .crosshair {
    opacity: 0.2;
    transform: scale(0.6);
  }

  .custom-cursor-dot.cursor-hover {
    width: 8px;
    height: 8px;
    background: #ffffff;
    box-shadow: 0 0 15px #ffffff;
  }

  /* Active State (Mousedown / Click feedback) */
  .custom-cursor-ring.cursor-active {
    width: 28px;
    height: 28px;
    border-width: 2.5px;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 25px #ffffff;
    transition-duration: 0.08s;
  }

  .custom-cursor-dot.cursor-active {
    transform: translate(-50%, -50%) scale(1.6);
  }

  /* Text-Input & Editorial Focus State */
  .custom-cursor-ring.cursor-text {
    width: 4px;
    height: 26px;
    border-radius: 2px;
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 0 12px #ffffff;
  }
  .custom-cursor-ring.cursor-text .crosshair {
    display: none;
  }
  .custom-cursor-dot.cursor-text {
    opacity: 0;
  }

  /* Hidden State (When cursor leaves browser window) */
  .custom-cursor-dot.cursor-hidden,
  .custom-cursor-ring.cursor-hidden {
    opacity: 0 !important;
  }

  /* Click Micro-Ripple */
  .cursor-click-ripple {
    position: fixed;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 999997;
    transform: translate(-50%, -50%) scale(0.2);
    animation: cursorRipple 0.45s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
  }

  @keyframes cursorRipple {
    0% {
      width: 15px;
      height: 15px;
      opacity: 0.9;
      transform: translate(-50%, -50%) scale(0.2);
    }
    100% {
      width: 75px;
      height: 75px;
      opacity: 0;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  /* Light Theme Cursor Adaptation */
  [data-theme="light"] .custom-cursor-dot {
    background: #000000;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  }
  [data-theme="light"] .custom-cursor-ring {
    border-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  }
  [data-theme="light"] .custom-cursor-ring .crosshair {
    background: rgba(0, 0, 0, 0.8);
  }
  [data-theme="light"] .custom-cursor-ring.cursor-hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
  }
  [data-theme="light"] .custom-cursor-ring.cursor-active {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  }
  [data-theme="light"] .custom-cursor-ring.cursor-text {
    border-color: #000000;
    background: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  [data-theme="light"] .cursor-click-ripple {
    border-color: rgba(0, 0, 0, 0.65);
  }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .playground-body {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .linkedin-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Navigation Drawer CTA & Backdrop */
.mobile-drawer-cta {
  display: none;
  width: 100%;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer-cta .btn {
  flex: 1;
  justify-content: center;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

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

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 1.25rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 0.8rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .mobile-drawer-cta {
    display: flex;
  }

  /* Prevent auto-zoom on iOS */
  .form-group input,
  .form-group textarea,
  #project-search {
    font-size: 16px !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .stat-divider {
    display: none;
  }

  .collab-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .banner-cta-group {
    width: 100%;
    flex-direction: column;
  }

  .banner-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .linkedin-connect-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.75rem 1.25rem;
  }

  .banner-avatar-group {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 576px) {
  .container {
    padding: 0 1.15rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.22;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    width: 100%;
  }

  .stat-card {
    align-items: center;
    text-align: center;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
  }

  .hero-profile-showcase {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.5rem 1.25rem;
  }
  
  .profile-card-chips {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
  }

  .filter-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

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

  .loader-content {
    width: 92%;
    padding: 1.75rem 1rem;
  }

  .loader-log {
    font-size: 0.78rem;
  }

  .loader-core-wrapper {
    width: 120px;
    height: 120px;
  }

  .ring-outer {
    width: 116px;
    height: 116px;
  }

  .ring-middle {
    width: 94px;
    height: 94px;
  }

  .ring-inner {
    width: 76px;
    height: 76px;
  }
}

/* ==========================================================================
   Floating Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 20, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

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

.back-to-top:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .back-to-top {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .back-to-top:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

@media (max-width: 576px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}
