/* ==========================================================================
   Nitya Mishra — Portfolio Stylesheet
   Whisper Flow-inspired clean aesthetic with glassmorphism
   Typography: Space Grotesk (Headings) + Plus Jakarta Sans (Body)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Dark (Default) */
  --bg-base: #0a0e1a;
  --bg-surface: #0f1424;
  --bg-card: rgba(17, 24, 42, 0.72);
  --bg-card-hover: rgba(26, 36, 58, 0.82);
  --bg-glass: rgba(17, 24, 42, 0.6);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(45, 212, 191, 0.5);
  --border-glow: rgba(45, 212, 191, 0.25);

  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-light: #ffffff;

  /* Accent Colors — Teal/Emerald primary, warm amber secondary */
  --accent-teal: #2dd4bf;
  --accent-teal-deep: #14b8a6;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-coral: #fb923c;
  --accent-rose: #f472b6;
  --accent-sky: #38bdf8;
  --accent-violet: #818cf8;

  --gradient-primary: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);
  --gradient-secondary: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
  --gradient-glow: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, rgba(52, 211, 153, 0.12) 100%);
  --gradient-card: linear-gradient(145deg, rgba(26, 36, 58, 0.6), rgba(15, 20, 36, 0.75));
  --gradient-text: linear-gradient(135deg, #2dd4bf 0%, #34d399 50%, #38bdf8 100%);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(45, 212, 191, 0.25);

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --header-height: 76px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
}

/* Light Theme Variables — Whisper Flow inspired clean light */
[data-theme="light"] {
  --bg-base: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(255, 255, 255, 0.8);

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-focus: rgba(20, 184, 166, 0.5);
  --border-glow: rgba(45, 212, 191, 0.2);

  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #1a202c;

  --gradient-glow: linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0%, rgba(52, 211, 153, 0.08) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 250, 0.95));

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(45, 212, 191, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  color-scheme: dark;
}

[data-theme="light"] html {
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--trans-smooth), color var(--trans-smooth);
}

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

ul {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* --- Ambient Background Glows --- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

[data-theme="light"] .ambient-glow {
  opacity: 0.15;
}

.glow-1 {
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2dd4bf 0%, rgba(45, 212, 191, 0) 70%);
}

.glow-2 {
  top: 40%;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.glow-3 {
  bottom: 5%;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #34d399 0%, rgba(52, 211, 153, 0) 70%);
  animation-duration: 25s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

[data-theme="light"] #bg-canvas {
  opacity: 0.25;
}

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

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

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.18;
}

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

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 46px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #0a0e1a;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.45);
  color: #0a0e1a;
}

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

[data-theme="light"] .btn-outline {
  background: rgba(0, 0, 0, 0.02);
}

.btn-outline:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="light"] .btn-glass {
  background: rgba(255, 255, 255, 0.6);
}

.btn-glass:hover {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.3);
  transform: translateY(-2px);
}

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

.btn-icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans-fast);
  flex-shrink: 0;
}

[data-theme="light"] .btn-icon-only {
  background: rgba(0, 0, 0, 0.03);
}

.btn-icon-only:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px) scale(1.05);
}

.btn-full {
  width: 100%;
}

/* --- Notification Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--trans-fast), border-color var(--trans-fast);
}

[data-theme="light"] .site-header {
  background: rgba(247, 248, 250, 0.8);
}

.site-header.scrolled {
  background: rgba(10, 14, 26, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #0a0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.35);
}

.accent-dot {
  color: var(--accent-teal);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all var(--trans-fast);
}

.nav-link i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.08);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans-fast);
}

[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.03);
}

.icon-btn:hover {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  border-color: rgba(45, 212, 191, 0.3);
}

.dark-icon { display: none; }
.light-icon { display: block; }
[data-theme="light"] .dark-icon { display: block; }
[data-theme="light"] .light-icon { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.menu-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--trans-fast);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 94vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.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.65rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  margin-bottom: 1.5rem;
}

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

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
}

.hero-title {
  font-family: var(--font-heading);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-title .greeting {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.hero-title .hero-name {
  display: block;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.typewriter-container {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--accent-teal);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}

.type-prefix {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.cursor {
  display: inline-block;
  color: var(--accent-teal);
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-beyond {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.hero-beyond strong {
  color: var(--accent-teal);
  font-weight: 700;
}

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

.social-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

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

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: all var(--trans-fast);
}

.social-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(45, 212, 191, 0.2);
}

.social-icon .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--trans-fast);
  border: 1px solid var(--border-subtle);
}

.social-icon:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Hero Visual Card --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.avatar-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 390px;
}

.card-glow {
  position: absolute;
  inset: -15px;
  background: var(--gradient-primary);
  border-radius: calc(var(--radius-lg) + 15px);
  filter: blur(35px);
  opacity: 0.3;
  z-index: 0;
  animation: pulseCardGlow 5s ease-in-out infinite alternate;
}

[data-theme="light"] .card-glow {
  opacity: 0.15;
}

@keyframes pulseCardGlow {
  0% { opacity: 0.2; filter: blur(30px); }
  100% { opacity: 0.4; filter: blur(45px); }
}

[data-theme="light"] .card-glow {
  animation: none;
}

.avatar-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--trans-smooth);
}

.avatar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.25);
}

.avatar-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(45,212,191,0.6), rgba(52,211,153,0.6));
  padding: 2.5px;
}

.avatar-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-emerald), var(--accent-sky));
  opacity: 0.7;
  z-index: 0;
}

.avatar-image-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 2.5px);
  overflow: hidden;
  background: #0f1424;
  z-index: 1;
  display: block;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform var(--trans-smooth);
  filter: url(#sharpen) contrast(1.05) brightness(1.02) saturate(1.06);
}

.avatar-card:hover .avatar-img {
  transform: scale(1.04);
}

.avatar-overlay-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.avatar-overlay-badge i {
  color: var(--accent-amber);
}

.card-user-meta {
  margin-bottom: 0.75rem;
}

.user-fullname {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.user-handle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.motto-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .motto-chip {
  background: rgba(0, 0, 0, 0.02);
}

.motto-chip i {
  color: var(--accent-teal);
  font-size: 0.8rem;
}

.hero-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mini-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
  text-align: center;
}

[data-theme="light"] .mini-badge {
  background: rgba(0, 0, 0, 0.02);
}

.badge-num {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-teal);
  font-family: var(--font-heading);
}

.badge-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Stat Orbs */
.stat-orb {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(45, 212, 191, 0.22);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.18), var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  animation: floatOrb 4s ease-in-out infinite alternate;
}

[data-theme="light"] .stat-orb {
  background: rgba(255, 255, 255, 0.92);
}

.orb-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-teal);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.orb-lbl {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1;
}

.orb-1 { top: -18px; right: -18px; animation-delay: 0s; border-color: rgba(56, 189, 248, 0.3); box-shadow: 0 0 18px rgba(56, 189, 248, 0.2), var(--shadow-md); }
.orb-2 { bottom: 80px; left: -28px; animation-delay: -1.6s; }
.orb-3 { bottom: -18px; right: -28px; animation-delay: -3.2s; border-color: rgba(52, 211, 153, 0.3); box-shadow: 0 0 18px rgba(52, 211, 153, 0.15), var(--shadow-md); }

.orb-1 .orb-num { color: var(--accent-sky); }
.orb-3 .orb-num { color: var(--accent-emerald); }

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-9px) scale(1.03); }
}

/* --- CORE METRICS --- */
.metrics-section {
  padding: 2.5rem 0 4.5rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: all var(--trans-smooth);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: var(--shadow-md);
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

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

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-teal);
  margin-top: 0.2rem;
}

.metric-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.5;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3.5rem;
  align-items: center;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-narrative p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--trans-fast);
}

.pillar-card:hover {
  border-color: rgba(45, 212, 191, 0.2);
  transform: translateX(4px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pillar-body h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.pillar-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Interactive Terminal */
.interactive-terminal {
  background: #0a0e1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-bar {
  background: #0f1424;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-red { background: #ef4444; }
.term-yellow { background: #f59e0b; }
.term-green { background: #10b981; }

.term-title {
  margin-left: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.terminal-body {
  padding: 1.5rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.term-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-prompt {
  color: var(--accent-emerald);
  font-weight: 700;
}

.term-cmd {
  color: #f0f4f8;
  font-weight: 600;
}

.term-res {
  color: #94a3b8;
  padding-left: 1rem;
  line-height: 1.5;
}

.term-res.accent-res {
  color: var(--accent-teal);
  font-style: italic;
}

.code-block {
  min-width: 0;
  max-width: 100%;
  white-space: pre;
  color: var(--accent-teal);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border-left: 2px solid var(--accent-teal);
  overflow-x: auto;
}

.term-cursor {
  color: var(--accent-teal);
  animation: blinkCursor 0.8s infinite;
}

/* ==========================================================================
   CODING TRACKER SECTION
   ========================================================================== */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.tracker-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--trans-smooth);
  position: relative;
  overflow: hidden;
}

.tracker-card:hover {
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tracker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.7;
}

.codolio-card::before {
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
}

.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.tracker-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

.lc-icon {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
}

.cd-icon {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-amber);
}

.tracker-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tracker-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tracker-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

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

.tracker-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

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

[data-theme="light"] .tracker-stat {
  background: rgba(0, 0, 0, 0.02);
}

.tracker-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tracker-stat-num.lc-easy { color: var(--accent-emerald); }
.tracker-stat-num.lc-medium { color: var(--accent-amber); }
.tracker-stat-num.lc-hard { color: var(--accent-coral); }
.tracker-stat-num.cd-streak { color: var(--accent-amber); }
.tracker-stat-num.cd-rating { color: var(--accent-teal); }
.tracker-stat-num.cd-rank { color: var(--accent-sky); }

.tracker-stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.tracker-chart-container {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.tracker-chart-label {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="light"] .tracker-chart-container {
  background: rgba(0, 0, 0, 0.02);
}

#leetcode-chart, #codolio-chart {
  width: 100% !important;
  max-height: 180px;
}

.tracker-footer {
  padding-top: 0.5rem;
}

.tracker-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
  transition: all var(--trans-fast);
}

.codolio-card .tracker-link {
  color: var(--accent-amber);
}

.tracker-link:hover {
  gap: 0.7rem;
  text-decoration: underline;
}

.tracker-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.tracker-disclaimer i {
  color: var(--accent-teal);
}

#tracker-last-refresh {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- FEATURED PROJECTS --- */
.flagship-projects-container {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.featured-case-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--trans-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.featured-case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: var(--shadow-lg);
}

.case-header-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.case-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: var(--accent-teal);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.case-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.case-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

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

.case-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.column-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.column-heading i {
  color: var(--accent-teal);
  font-size: 1rem;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.feature-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-size: 1rem;
}

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

.tech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

[data-theme="light"] .pill-badge {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
}

.system-metric-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

[data-theme="light"] .system-metric-box {
  background: rgba(0, 0, 0, 0.03);
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.metric-lbl {
  color: var(--text-muted);
}

.metric-val {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.dsa-highlight-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

[data-theme="light"] .dsa-highlight-box {
  background: rgba(0, 0, 0, 0.03);
}

.dsa-mini-stat .dsa-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.dsa-mini-stat .dsa-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- SKILLS --- */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.skills-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--trans-fast);
}

.skills-cat-card:hover {
  border-color: rgba(45, 212, 191, 0.2);
  transform: translateY(-3px);
}

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

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.skills-cat-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skills-pills {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.skill-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: all var(--trans-fast);
}

[data-theme="light"] .skill-pill {
  background: rgba(0, 0, 0, 0.02);
}

.skill-pill:hover {
  background: rgba(45, 212, 191, 0.06);
  border-color: rgba(45, 212, 191, 0.15);
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

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

.skill-badge.primary {
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

/* ==========================================================================
   BEYOND CODE SECTION
   ========================================================================== */
.beyond-section {
  position: relative;
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.beyond-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--trans-smooth);
  overflow: hidden;
}

.beyond-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: var(--shadow-lg);
}

.beyond-card-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0.5;
  transition: opacity var(--trans-smooth);
  pointer-events: none;
}

.beyond-card:hover .beyond-card-glow {
  opacity: 0.8;
}

.beyond-card-glow.glow-shifted {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}

.beyond-card-glow.glow-shifted-2 {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
}

.beyond-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(52, 211, 153, 0.1));
  border: 1px solid rgba(45, 212, 191, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-teal);
  margin: 0 auto 1.5rem auto;
  transition: all var(--trans-spring);
}

.beyond-card:hover .beyond-icon {
  transform: scale(1.1) rotate(-3deg);
}

.beyond-icon-alt {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(45, 212, 191, 0.1));
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-sky);
}

.beyond-icon-alt-2 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 146, 60, 0.1));
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--accent-amber);
}

.beyond-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.beyond-card p {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.beyond-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.beyond-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.beyond-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  position: relative;
}

.beyond-quote .quote-icon {
  font-size: 1.5rem;
  color: var(--accent-teal);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.beyond-quote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  font-style: italic;
}

/* --- EDUCATION --- */
.education-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  transition: all var(--trans-smooth);
}

.edu-card:hover {
  border-color: rgba(45, 212, 191, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.edu-card.featured-edu {
  border-left: 4px solid var(--accent-teal);
  background: linear-gradient(145deg, rgba(17, 24, 42, 0.85), rgba(45, 212, 191, 0.04));
}

[data-theme="light"] .edu-card.featured-edu {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(45, 212, 191, 0.03));
}

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

.edu-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.edu-status-pill.finished {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
}

[data-theme="light"] .edu-status-pill.finished {
  background: rgba(0, 0, 0, 0.04);
}

.edu-grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
}

.edu-grade-pill i {
  color: var(--accent-amber);
}

.edu-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.edu-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.birla-icon {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
}

.school-icon {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-emerald);
}

.edu-title-group {
  flex-grow: 1;
}

.edu-school {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.edu-degree {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-top: 0.25rem;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.edu-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-body {
  padding-top: 0.5rem;
}

.edu-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.edu-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

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

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

.highlight-item i {
  color: var(--accent-emerald);
  font-size: 0.75rem;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.info-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  transition: all var(--trans-fast);
}

.contact-card:hover {
  border-color: rgba(45, 212, 191, 0.2);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.1rem;
  word-break: break-all;
}

/* Styled Form */
.contact-form-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);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.styled-form .form-group {
  margin-bottom: 1.35rem;
}

.styled-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.styled-form input, .styled-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--trans-fast);
}

[data-theme="light"] .styled-form input,
[data-theme="light"] .styled-form textarea {
  background: rgba(0, 0, 0, 0.02);
}

.styled-form textarea {
  padding: 0.85rem 1rem;
  resize: vertical;
  min-height: 110px;
}

.styled-form input:focus, .styled-form textarea:focus {
  border-color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

/* --- FOOTER --- */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 0 0;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
}

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

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

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links-group a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--trans-fast);
}

.footer-links-group a:hover {
  color: var(--accent-teal);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  transition: all var(--trans-fast);
}

[data-theme="light"] .footer-socials a {
  background: rgba(0, 0, 0, 0.03);
}

.footer-socials a:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.05);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--trans-fast);
}

.back-to-top:hover {
  color: var(--accent-teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .status-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .typewriter-container {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .social-bar {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .case-body-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .case-header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .case-actions {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .tracker-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet navigation */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--trans-smooth);
    z-index: 999;
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-link {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .desktop-only {
    display: none !important;
  }

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

  .featured-case-card {
    padding: 1.75rem;
  }

  .case-header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .case-actions {
    width: 100%;
    flex-direction: column;
  }

  .case-actions .btn {
    width: 100%;
  }

  .tracker-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tracker-card {
    padding: 1.5rem;
  }

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

  .edu-card {
    padding: 1.5rem;
  }

  .edu-header {
    flex-direction: column;
    gap: 1rem;
  }

  .edu-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-form-panel {
    padding: 1.75rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links-group {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

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

  .avatar-card-wrapper {
    max-width: 320px;
  }

  .avatar-card {
    padding: 1.25rem;
  }

  .stat-orb {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .copy-email-btn {
    width: 100%;
    border-radius: var(--radius-pill);
    gap: 0.5rem;
  }
  .hero-actions .copy-email-btn::after {
    content: ' Copy Email';
    font-size: 0.9rem;
    font-weight: 600;
  }

  .dsa-highlight-box {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .edu-badge-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
  }
}

/* --- Scroll Reveal Animation --- */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-section {
  opacity: 1;
  transform: none;
}

/* --- Loading State --- */
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.25rem;
}

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

/* --- Pulse Dot --- */
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}
