/* ==========================================================================
   SRIJAN CHATTERJEE PORTFOLIO - DESIGN SYSTEM & STYLESHEET
   Storytelling | Dark & Light Modes | Motion Graphics | Glassmorphism
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & COLOR THEME VARIABLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* DARK THEME (DEFAULT) */
  --bg-primary: #07090e;
  --bg-secondary: #0e121b;
  --bg-tertiary: #161c2a;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 242, 254, 0.4);
  --border-glow: rgba(139, 92, 246, 0.5);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-contrast: #ffffff;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #00f2fe 0%, #4facfe 40%, #8b5cf6 100%);
  --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 80%);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.1);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 84px;
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-active: rgba(37, 99, 235, 0.35);
  --border-glow: rgba(124, 58, 237, 0.3);

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

  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #2563eb 40%, #7c3aed 100%);
  --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.6) 100%);
  --gradient-glow: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 80%);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(37, 99, 235, 0.08);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   2. GENERAL BASE & TYPOGRAPHY
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

::selection {
  background: var(--accent-cyan);
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

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

code {
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Canvas & Ambient Glows */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  max-width: 90vw;
  height: 600px;
  max-height: 90vh;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: var(--transition-slow);
}

.glow-top-left {
  top: -200px;
  left: -200px;
  background: var(--accent-cyan);
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  background: var(--accent-purple);
}

.glow-center {
  top: 40%;
  left: 35%;
  background: var(--accent-blue);
  opacity: 0.2;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, opacity 0.3s;
  mix-blend-mode: screen;
}

@media (hover: none) {
  .cursor-glow {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. GLASSMORPHISM & UTILITY CLASSES
   -------------------------------------------------------------------------- */
.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-md);
  box-shadow: var(--shadow-md);
}

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

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

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

.green-text {
  color: var(--accent-emerald) !important;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
  color: #ffffff;
}

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

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-active);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

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

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-micro {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: var(--transition-fast);
}

.btn-micro:hover {
  background: var(--accent-cyan);
  color: #000;
}

.btn-pulse {
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
  }
}

/* Status Indicator Dots */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.status-dot.pulse {
  animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Section Header Structure */
.section {
  position: relative;
  z-index: 2;
  padding: 6.5rem 0;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-number {
  font-weight: 700;
  color: var(--accent-purple);
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

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

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR & THEME SWITCH
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  height: var(--nav-height);
  padding: 0 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

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

.brand-signature-badge {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-active);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25), inset 0 0 8px rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-signature-badge:hover {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.45);
  border-color: var(--accent-cyan);
}

/* Corner to Corner Diagonal Slanted Slash */
.sig-slash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--accent-cyan) 30%, var(--accent-purple) 70%, transparent 95%);
  transform: translate(-50%, -50%) rotate(-42deg);
  opacity: 0.85;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Signature Cursive Letter Characters */
.sig-letter {
  position: absolute;
  font-family: 'Caveat', 'Dancing Script', 'Alex Brush', cursive;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* 'S' in Top-Left Corner (Slanted) */
.sig-s {
  top: 2px;
  left: 5px;
  font-size: 1.55rem;
  transform: rotate(-12deg);
}

/* 'C' in Bottom-Right Corner (Slanted) */
.sig-c {
  bottom: 0px;
  right: 5px;
  font-size: 1.55rem;
  transform: rotate(-8deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-contrast);
  line-height: 1.15;
  transition: color var(--transition-fast);
}

.nav-brand:hover .brand-name {
  color: var(--accent-cyan);
}

.brand-role {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 0.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

.role-sep {
  color: var(--accent-purple);
  font-size: 0.65rem;
  opacity: 0.8;
}

.role-sub {
  color: var(--text-secondary);
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  padding: 0.35rem 0.3rem;
  white-space: nowrap;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

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

.nav-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 0 5px;
  transition: var(--transition-normal);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  z-index: 2;
  transition: var(--transition-fast);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: var(--gradient-brand);
  border-radius: 50%;
  transition: transform var(--transition-normal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

[data-theme="light"] .toggle-slider {
  transform: translateX(30px);
}

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

[data-theme="dark"] .moon-icon {
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: 3.6rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  line-height: 1.15;
}

.hero-subtitle-wrapper {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dynamic-typed {
  color: var(--accent-cyan);
  font-weight: 700;
}

.typed-cursor {
  color: var(--accent-cyan);
  animation: blink 1s infinite;
}

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

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.2rem;
}

.hero-description strong {
  color: var(--text-contrast);
}

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

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  backdrop-filter: blur(12px);
  width: fit-content;
}

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

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.2;
}

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

.metric-divider {
  width: 1px;
  height: 35px;
  background: var(--border-subtle);
}

/* Interactive Physical Avatar Frame & Actions */
.avatar-card-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.avatar-aura-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(99, 102, 241, 0.15) 60%, transparent 80%);
  filter: blur(25px);
  z-index: 1;
  animation: auraPulse 4s infinite ease-in-out;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

.hero-avatar-png {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
  transition: opacity 0.35s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-avatar-png.hidden-avatar {
  opacity: 0;
  visibility: hidden;
}

.hero-avatar-png:hover {
  transform: scale(1.04) translateY(-5px);
  filter: drop-shadow(0 20px 40px rgba(6, 182, 212, 0.5));
}

.hero-avatar-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 100%;
  max-width: 380px;
  max-height: 380px;
  object-fit: contain;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b192e 0%, #1e3a8a 50%, #0f172a 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.5);
  border: 2px solid rgba(59, 130, 246, 0.6);
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-avatar-video.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Character Speech Bubble */
.char-bubble {
  position: absolute;
  top: -2.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  border: 1px solid rgba(6, 182, 212, 0.5);
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
  z-index: 10;
  backdrop-filter: blur(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .char-bubble {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.char-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.94) transparent transparent transparent;
}

[data-theme="light"] .char-bubble::after {
  border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

/* Physical Action Keyframe Animations */

/* 1. Greet Action (Physical Waving & Bouncing) */
.anim-greet .hero-avatar-png {
  animation: physicalGreet 1.6s ease-in-out;
}

@keyframes physicalGreet {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.08) translateY(-15px) rotate(-8deg); }
  30% { transform: scale(1.08) translateY(-10px) rotate(8deg); }
  45% { transform: scale(1.08) translateY(-15px) rotate(-6deg); }
  60% { transform: scale(1.05) translateY(-5px) rotate(4deg); }
  80% { transform: scale(1.02) translateY(-2px) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* 2. Code DB Action (Focus Lean & Matrix Pulse) */
.anim-code .hero-avatar-png {
  animation: physicalCode 1.8s ease-in-out;
}

@keyframes physicalCode {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45)); }
  25% { transform: scale(1.06) translateY(10px) rotate(2deg); filter: drop-shadow(0 0 35px rgba(16, 185, 129, 0.8)); }
  50% { transform: scale(1.08) translateY(-8px) rotate(-2deg); filter: drop-shadow(0 0 45px rgba(6, 182, 212, 0.9)); }
  75% { transform: scale(1.04) translateY(4px) rotate(1deg); filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.7)); }
  100% { transform: scale(1) translateY(0); filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45)); }
}

/* 3. Music Synth Action (Rhythmic Sway & Rhythm Tilt) */
.anim-music .hero-avatar-png {
  animation: physicalMusic 2.0s ease-in-out;
}

@keyframes physicalMusic {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.06) translateX(-12px) rotate(-7deg); filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.8)); }
  40% { transform: scale(1.06) translateX(12px) rotate(7deg); filter: drop-shadow(0 0 40px rgba(236, 72, 153, 0.8)); }
  60% { transform: scale(1.06) translateX(-8px) rotate(-5deg); filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.8)); }
  80% { transform: scale(1.03) translateX(6px) rotate(3deg); filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.6)); }
  100% { transform: scale(1) rotate(0deg); }
}

/* 4. Fix SLA Action (Rapid Triage Shake & Victory Bounce) */
.anim-fix .hero-avatar-png {
  animation: physicalFix 1.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes physicalFix {
  0% { transform: scale(1); }
  10%, 30%, 50% { transform: scale(1.08) translateX(-6px) rotate(-3deg); filter: drop-shadow(0 0 35px rgba(245, 158, 11, 0.9)); }
  20%, 40%, 60% { transform: scale(1.08) translateX(6px) rotate(3deg); filter: drop-shadow(0 0 35px rgba(239, 68, 68, 0.9)); }
  75% { transform: scale(1.12) translateY(-20px) rotate(0deg); filter: drop-shadow(0 0 50px rgba(34, 197, 94, 1)); }
  100% { transform: scale(1) translateY(0); }
}

/* Floating Action Particles */
.action-particle {
  position: absolute;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 12;
  animation: floatParticle 1.4s ease-out forwards;
}

@keyframes floatParticle {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  50% { opacity: 0.9; transform: translate(var(--dx), var(--dy)) scale(1.2); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.5), calc(var(--dy) * 1.8)) scale(0.4); }
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-contrast);
  z-index: 3;
  cursor: pointer;
  user-select: none;
  animation: float 4s ease-in-out infinite;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-badge:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.badge-icon {
  font-size: 1.1rem;
}

.badge-1 { top: 6%; left: -8%; animation-delay: 0s; }
.badge-2 { top: 12%; right: -8%; animation-delay: 1.5s; }
.badge-3 { bottom: 12%; left: -6%; animation-delay: 2.3s; }
.badge-4 { bottom: 6%; right: -6%; animation-delay: 0.8s; }

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

.scroll-down-indicator {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.scroll-down-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-down-indicator:hover a {
  color: var(--accent-cyan);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: wheel-scroll 1.6s infinite;
}

@keyframes wheel-scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   6. CHAPTER 1: STORY TIMELINE
   -------------------------------------------------------------------------- */
.story-timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 27px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), var(--accent-blue));
  opacity: 0.3;
}

.story-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.story-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.milestone-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  backdrop-filter: blur(10px);
}

.story-body {
  padding: 2rem;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chapter-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.story-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.story-heading {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.story-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   7. CHAPTER 2: WORK EXPERIENCE
   -------------------------------------------------------------------------- */
.experience-showcase {
  padding: 2.5rem;
}

.experience-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.exp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.exp-role {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.exp-company {
  font-size: 1.1rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.exp-duration {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.detail-heading {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--text-contrast);
}

.exp-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-bullet-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  font-weight: 700;
}

.bullet-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.bullet-content strong {
  color: var(--text-contrast);
}

.ops-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.ops-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.ops-image-wrapper:hover .ops-img {
  transform: scale(1.03);
}

.ops-overlay-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   8. CHAPTER 3: FEATURED PROJECTS & LIVE SIMULATOR
   -------------------------------------------------------------------------- */
.project-featured-card {
  padding: 2.5rem;
  margin-bottom: 3rem;
}

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

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.9rem;
  margin-bottom: 0.3rem;
}

.project-institution {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
}

.project-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.project-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
  text-align: center;
}

.project-img-wrapper:hover .preview-cta-overlay {
  opacity: 1;
}

.demo-cred-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-overview h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-overview p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-item strong {
  color: var(--text-contrast);
}

.feat-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Additional Projects Grid */
.additional-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mini-project-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.mini-proj-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mini-proj-title {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.mini-proj-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.mini-proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-proj-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 4px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. CHAPTER 4: SKILLS & CAPABILITIES MATRIX
   -------------------------------------------------------------------------- */
.skills-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.skill-tab {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.skill-tab:hover {
  color: var(--text-contrast);
  border-color: var(--border-active);
}

.skill-tab.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

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

.skill-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.skill-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.skill-name {
  font-size: 1.05rem;
  line-height: 1.2;
}

.skill-level {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.skill-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.skill-meter {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  width: var(--progress);
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

.spoken-languages-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.spoken-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.lang-items {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.lang-badge strong {
  color: var(--text-contrast);
}

.lang-badge span {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   10. CHAPTER 5: CREATIVE HARMONY (MUSIC & MINDSET)
   -------------------------------------------------------------------------- */
.creative-card {
  padding: 2.5rem;
}

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

.creative-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

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

.music-wave-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}

.eq-bar {
  width: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
  animation: eq-bounce 1.2s infinite ease-in-out alternate;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 100%; animation-delay: 0.15s; }
.eq-bar:nth-child(4) { height: 60%; animation-delay: 0.45s; }
.eq-bar:nth-child(5) { height: 90%; animation-delay: 0.25s; }
.eq-bar:nth-child(6) { height: 50%; animation-delay: 0.35s; }
.eq-bar:nth-child(7) { height: 75%; animation-delay: 0.05s; }
.eq-bar:nth-child(8) { height: 95%; animation-delay: 0.5s; }

@keyframes eq-bounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

.wave-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.quote-box {
  position: relative;
  padding: 1.5rem 1.8rem;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
}

.quote-mark {
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3rem;
  color: var(--accent-purple);
  opacity: 0.3;
  font-family: serif;
}

.quote-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-contrast);
  line-height: 1.6;
}

.creative-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pillar-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.pillar-info p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. CHAPTER 6: CERTIFICATIONS & CREDENTIALS
   -------------------------------------------------------------------------- */
/* Master Certificate Cloud Drive Banner */
.cert-vault-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-active);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%), var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 242, 254, 0.15);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cert-vault-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 650px;
}

.cert-vault-icon {
  font-size: 3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
}

.cert-vault-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.cert-vault-text p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.vault-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

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

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

.cert-status-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.cert-icon-large {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cert-title {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.cert-issuer {
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.cert-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cert-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.cert-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cert-btn {
  width: 100%;
}

.nav-cv-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.nav-cv-btn:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* --------------------------------------------------------------------------
   12. CHAPTER 7: CONTACT & CONNECT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

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

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info-text {
  flex-grow: 1;
}

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

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

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

.copy-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.social-links-box {
  padding: 1.5rem 1.8rem;
}

.social-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.social-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-2px);
}

.linkedin-btn:hover {
  background: #0077b5;
  color: #fff;
  border-color: #0077b5;
}

.github-btn:hover {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
}

[data-theme="light"] .github-btn:hover {
  background: #181717;
}

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

.form-title {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.form-subtitle {
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.form-textarea {
  resize: vertical;
}

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

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

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-contrast);
  display: block;
  margin-bottom: 0.2rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

/* --------------------------------------------------------------------------
   14. INTERACTIVE SIMULATOR & MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.modal-card {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-card-sm {
  max-width: 580px;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
}

.modal-badge-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-bottom: 0.3rem;
}

.modal-badge-status .status-dot.green {
  background: var(--accent-emerald);
}

.modal-title {
  font-size: 1.4rem;
}

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

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Simulator Auth Screen */
.sim-auth-screen {
  display: flex;
  justify-content: center;
}

.auth-box {
  max-width: 480px;
  width: 100%;
  padding: 2.2rem;
  text-align: center;
}

.auth-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.auth-box h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.auth-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-hint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 242, 254, 0.08);
  border: 1px dashed var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.hint-label {
  color: var(--text-secondary);
}

.auth-form {
  text-align: left;
}

.auth-error-msg {
  display: block;
  color: var(--accent-rose);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Simulator Dashboard Screen */
.dash-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.badge-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.badge-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dash-controls {
  display: flex;
  gap: 0.6rem;
}

.sim-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sim-stat-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.sim-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.sim-stat-txt {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.table-actions-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sim-search-input {
  flex-grow: 1;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.sim-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.sim-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.sim-table th {
  background: var(--bg-tertiary);
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sim-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.sim-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.table-status-active {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.table-status-graduated {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* Statistical View Mode */
.stat-view-title {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.stat-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-chart-card {
  padding: 1.5rem;
}

.stat-chart-card h5 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--accent-blue);
}

.chart-bars-sim {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.bar-track {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

.chart-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  text-align: right;
}

.chart-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

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

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  color: var(--text-contrast);
  font-size: 0.9rem;
  animation: toast-in 0.3s ease-out forwards;
}

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

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

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. COMPREHENSIVE CROSS-DEVICE RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Large Screens & Ultra-Wide Displays (>= 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  .hero-title {
    font-size: 4rem;
  }
}

/* Laptops & Standard Desktop (1025px to 1280px) */
@media (max-width: 1280px) and (min-width: 1025px) {
  .nav-num {
    display: none;
  }
  .nav-links {
    gap: 0.6rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.3rem 0.2rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .role-highlight {
    font-size: 0.72rem;
  }
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets in Landscape & Medium Screens (769px to 1024px) */
@media (max-width: 1024px) {
  .navbar-wrapper {
    padding: 0.75rem 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + 0.5rem);
    left: 1rem;
    right: 1rem;
    max-height: calc(85vh - var(--nav-height));
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    animation: slideDownNav 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  .nav-cta {
    display: none;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 2rem);
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-subtitle-wrapper {
    justify-content: center;
  }

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

  .hero-cta-group {
    justify-content: center;
  }

  .hero-metrics {
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
  }

  .metric-divider {
    display: none;
  }

  .avatar-card-container {
    max-width: 340px;
    margin: 0 auto;
  }

  .exp-grid, .project-body-grid, .creative-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

/* Tablets in Portrait & Large Phones (577px to 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .hero-title {
    font-size: clamp(2.1rem, 6vw, 2.8rem);
  }

  .hero-subtitle-wrapper {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  }

  .hero-status-pill {
    white-space: normal;
    text-align: center;
    line-height: 1.45;
    font-size: 0.8rem;
  }

  .floating-badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .badge-1 { top: 2%; left: 0%; }
  .badge-2 { top: 2%; right: 0%; }
  .badge-3 { bottom: 2%; left: 0%; }
  .badge-4 { bottom: 2%; right: 0%; }

  .story-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .story-timeline::before {
    display: none;
  }

  .milestone-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .story-body, .experience-showcase, .project-featured-card {
    padding: 1.5rem;
  }

  .skills-grid, .additional-projects-grid, .certs-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 100px 1fr 40px;
    font-size: 0.8rem;
  }

  .modal-card {
    max-height: 92vh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 0.85rem 1.2rem;
  }
}

/* Mobile Phones (380px to 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .brand-role {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .nav-cv-btn span {
    display: none;
  }

  .nav-cv-btn {
    padding: 0.4rem 0.6rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

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

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

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 0.75rem;
  }

  .metric-number {
    font-size: 1.25rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }

  .avatar-card-container {
    max-width: 280px;
  }

  .floating-badge {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0.25rem;
    display: inline-flex;
    animation: none;
    font-size: 0.75rem;
  }

  .avatar-frame {
    flex-direction: column;
  }

  .char-console {
    padding: 0.8rem;
  }

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

  .experience-showcase, .project-featured-card, .mini-project-card, .skill-card, .editor-card {
    padding: 1.1rem;
    border-radius: 14px;
  }

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

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

  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-card {
    width: 98%;
    max-height: 94vh;
    border-radius: 14px;
  }

  .editor-tabs-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
  }

  .editor-tab {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

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

  .table-actions-bar {
    flex-direction: column;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }

  input, select, textarea {
    font-size: 16px !important; /* Prevents auto-zoom on mobile iOS */
  }
}

/* Compact Mobile & Foldables (< 380px) */
@media (max-width: 379px) {
  .container {
    padding: 0 0.75rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle-wrapper {
    font-size: 0.95rem;
  }

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

  .skills-filter-tabs {
    gap: 0.3rem;
  }

  .skill-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }

  .sim-stats-bar {
    grid-template-columns: 1fr;
  }

  .chart-row {
    grid-template-columns: 80px 1fr 35px;
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   16. PORTFOLIO CONFIGURATION STUDIO & ADMIN EDITOR
   -------------------------------------------------------------------------- */
.footer-admin-actions {
  display: flex;
  align-items: center;
}

.footer-admin-btn {
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--accent-purple);
  gap: 0.5rem;
}

.footer-admin-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-purple);
  color: #fff;
  transform: translateY(-2px);
}

.editor-tabs-bar {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.editor-tab {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.editor-tab:hover {
  color: var(--text-contrast);
  border-color: var(--border-active);
}

.editor-tab.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.editor-tab-content {
  display: none;
}

.editor-tab-content.active {
  display: block;
}

.editor-card {
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

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

.editor-card-title {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--accent-cyan);
}

.editor-card-header .editor-card-title {
  margin-bottom: 0;
}

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

.editor-grid-form .full-width {
  grid-column: 1 / -1;
}

.form-range {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  margin-top: 0.5rem;
}

.btn-align-bottom {
  display: flex;
  align-items: flex-end;
}

.editor-skills-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
}

.btn-danger-micro {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: var(--transition-fast);
}

.btn-danger-micro:hover {
  background: var(--accent-rose);
  color: #fff;
}

/* Dynamic Project Showcase Card Links */
.mini-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.mini-proj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.mini-proj-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.mini-proj-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.btn-proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--gradient-brand);
  color: #fff;
  transition: var(--transition-fast);
}

.btn-proj-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
  color: #fff;
}

.btn-proj-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.btn-proj-github:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   17. INTERACTIVE CHARACTER ACTIONS & SPEECH BUBBLE
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.character-bubble {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 242, 254, 0.15);
  max-width: 320px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  z-index: 10;
  backdrop-filter: blur(12px);
  animation: floatBubble 4s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.bubble-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-active);
  border-bottom: 1px solid var(--border-active);
}

.char-console {
  width: 100%;
  max-width: 440px;
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  border: 1px solid var(--border-subtle);
  background: rgba(18, 24, 38, 0.5);
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.console-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
}

.console-buttons .console-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: none;
}

/* Floating Action Particles */
.char-particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.5rem;
  z-index: 100;
  animation: floatUpParticle 1.2s ease-out forwards;
}

@keyframes floatUpParticle {
  0% {
    transform: translateY(0) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

/* Character Move Animations */
.anim-greet {
  animation: charGreet 0.8s ease-in-out;
}

.anim-code {
  animation: charCode 0.6s ease-in-out;
}

.anim-music {
  animation: charMusic 1.2s ease-in-out;
}

.anim-fix {
  animation: charFix 1.0s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hero Vector Character SVG Styling & Body Part Animations */
.hero-character-svg {
  width: 100%;
  height: 100%;
  max-width: 440px;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-normal);
}

.hand-wrench-icon {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}

.char-mode-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.char-mode-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.05);
}

/* Continuous Idle Blinking Eyes */
.eye-pupil {
  animation: idleBlink 4s infinite;
  transform-origin: center;
}

@keyframes idleBlink {
  0%, 94%, 98%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

/* GREET ACTION: Right Arm Waves, Head Nods */
.anim-greet .char-arm-right {
  animation: armWave 0.8s ease-in-out infinite;
  transform-origin: 250px 240px;
}

.anim-greet .char-head-group {
  animation: headNod 0.8s ease-in-out;
  transform-origin: 200px 165px;
}

@keyframes armWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-35deg); }
  75% { transform: rotate(-10deg); }
}

@keyframes headNod {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* CODE ACTION: Arms Type on Laptop, Screen Lines Stream */
.anim-code .char-arm-left {
  animation: typeLeftArm 0.25s infinite alternate;
  transform-origin: 150px 230px;
}

.anim-code .char-arm-right {
  animation: typeRightArm 0.25s infinite alternate-reverse;
  transform-origin: 250px 230px;
}

.anim-code .code-line {
  animation: streamCode 0.5s infinite linear;
}

@keyframes typeLeftArm {
  from { transform: translateY(0); }
  to { transform: translateY(-4px) translateX(2px); }
}

@keyframes typeRightArm {
  from { transform: translateY(0); }
  to { transform: translateY(-5px) translateX(-2px); }
}

@keyframes streamCode {
  0% { stroke-dashoffset: 20; opacity: 0.4; }
  100% { stroke-dashoffset: 0; opacity: 1; stroke: #00f2fe; }
}

/* MUSIC ACTION: Hands Play Synth, Head Bops, Headphones Pulse */
.anim-music .char-arm-left {
  animation: synthGlideLeft 0.6s infinite alternate ease-in-out;
  transform-origin: 150px 230px;
}

.anim-music .char-arm-right {
  animation: synthGlideRight 0.6s infinite alternate ease-in-out;
  transform-origin: 250px 230px;
}

.anim-music .char-head-group {
  animation: musicHeadBop 0.6s infinite alternate ease-in-out;
  transform-origin: 200px 165px;
}

.anim-music .headphone-cup {
  animation: headphoneGlow 0.4s infinite alternate;
}

@keyframes synthGlideLeft {
  from { transform: translateX(-15px); }
  to { transform: translateX(15px); }
}

@keyframes synthGlideRight {
  from { transform: translateX(10px); }
  to { transform: translateX(-20px); }
}

@keyframes musicHeadBop {
  from { transform: rotate(-4deg) translateY(0); }
  to { transform: rotate(4deg) translateY(-4px); }
}

@keyframes headphoneGlow {
  from { fill: #8b5cf6; filter: drop-shadow(0 0 4px #8b5cf6); }
  to { fill: #ec4899; filter: drop-shadow(0 0 12px #ec4899); }
}

/* FIX SLA ACTION: Wrench Appears, Server LEDs Flash Green */
.anim-fix .hand-wrench-icon {
  opacity: 1;
  transform: translateY(0);
}

.anim-fix .char-arm-right {
  animation: raiseWrench 0.8s ease-in-out;
  transform-origin: 250px 230px;
}

.anim-fix .server-led {
  animation: serverFixPulse 0.3s infinite alternate;
}

@keyframes raiseWrench {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-45deg) translateY(-15px); }
  80% { transform: rotate(-30deg) translateY(-10px); }
}

@keyframes serverFixPulse {
  from { fill: #ef4444; }
  to { fill: #10b981; filter: drop-shadow(0 0 8px #10b981); }
}

@keyframes charGreet {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-5deg) scale(1.03); }
  75% { transform: rotate(5deg) scale(1.03); }
}

@keyframes charCode {
  0%, 100% { transform: translate(0, 0) scale(1); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-3px, 2px) scale(0.99); }
  20%, 40%, 60%, 80% { transform: translate(3px, -2px) scale(1.01); }
}

@keyframes charMusic {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-15px) rotate(-3deg) scale(1.02); }
  60% { transform: translateY(5px) rotate(3deg) scale(0.98); }
}

@keyframes charFix {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(0.9) rotate(-15deg); }
  60% { transform: scale(1.1) rotate(15deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Navbar Responsiveness Fixes */
@media (max-width: 576px) {
  .brand-name {
    font-size: 0.95rem;
  }
  
  .brand-role {
    font-size: 0.65rem;
    gap: 0.2rem;
  }
  
  .role-sep {
    font-size: 0.55rem;
  }
  
  .brand-signature-badge {
    width: 36px;
    height: 36px;
  }
  
  .sig-s, .sig-c {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .brand-role {
    display: none; /* Hide roles on extremely tiny viewports to avoid colliding with other navbar icons */
  }
}

/* ==========================================================================
   STICKY PORTFOLIO AI CHATBOT WIDGET STYLES (HIGH CONTRAST & READABLE)
   ========================================================================== */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  font-family: var(--font-sans);
}

.chatbot-launcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border: 1px solid rgba(6, 182, 212, 0.6);
  border-radius: var(--radius-full);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.3);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

[data-theme="light"] .chatbot-launcher-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(99, 102, 241, 0.2);
}

.chatbot-launcher-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45), 0 0 20px rgba(6, 182, 212, 0.4);
}

.chat-icon {
  font-size: 1.15rem;
}

.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

/* Chatbot Drawer Window */
.chatbot-window {
  position: absolute;
  bottom: 4rem;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

[data-theme="light"] .chatbot-window {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 25px rgba(99, 102, 241, 0.15);
}

.chatbot-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85) translateY(20px);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .chatbot-header {
  background: rgba(241, 245, 249, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.bot-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

[data-theme="light"] .bot-name {
  color: #0f172a;
}

.bot-status {
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

[data-theme="light"] .bot-status {
  color: #64748b;
}

.bot-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.bot-close-btn:hover {
  color: #f43f5e;
}

/* Suggestions chips */
.chatbot-suggestions {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  scrollbar-width: none;
}

[data-theme="light"] .chatbot-suggestions {
  background: rgba(248, 250, 252, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.chatbot-suggestions::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(51, 65, 85, 0.75);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .chip-btn {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}

.chip-btn:hover {
  background: #06b6d4;
  color: #0f172a;
  border-color: #06b6d4;
  font-weight: 700;
}

/* Chat Messages */
.chatbot-messages {
  flex: 1;
  padding: 0.8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat-msg {
  display: flex;
  gap: 0.5rem;
  max-width: 92%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.bot-msg .msg-bubble {
  background: rgba(30, 41, 59, 0.95);
  color: #f8fafc;
  border-top-left-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .bot-msg .msg-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bot-msg .msg-bubble strong {
  color: #38bdf8;
  font-weight: 700;
}

[data-theme="light"] .bot-msg .msg-bubble strong {
  color: #0284c7;
}

.bot-msg .msg-bubble a {
  color: #22d3ee;
  font-weight: 600;
  text-decoration: underline;
}

[data-theme="light"] .bot-msg .msg-bubble a {
  color: #0284c7;
}

.bot-msg .msg-bubble ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0;
}

.bot-msg .msg-bubble li {
  margin-bottom: 0.2rem;
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
  color: #ffffff;
  font-weight: 500;
  border-top-right-radius: 3px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.msg-bubble p {
  margin: 0 0 0.35rem 0;
}

.msg-bubble p:last-child {
  margin-bottom: 0;
}

.msg-time {
  display: block;
  font-size: 0.62rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  text-align: right;
}

/* Typing Indicator */
.typing-indicator {
  padding: 0.35rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

[data-theme="light"] .typing-indicator {
  color: #64748b;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Chatbot Input Form */
.chatbot-input-form {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
  gap: 0.45rem;
}

[data-theme="light"] .chatbot-input-form {
  background: rgba(241, 245, 249, 0.9);
  border-top-color: rgba(0, 0, 0, 0.08);
}

.chat-input {
  flex: 1;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.81rem;
  outline: none;
}

[data-theme="light"] .chat-input {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.chat-input:focus {
  border-color: #38bdf8;
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-brand);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.08);
}

/* Inbox Notification Badges & Table Styling */
.unread-pill-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: pulseBadge 1.8s infinite ease-in-out;
}

.tab-badge-num {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.badge-unread {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-read {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ==========================================================================
   PORTFOLIO CONFIGURATION STUDIO MODAL STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-card {
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .modal-header {
  background: rgba(241, 245, 249, 0.8);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-badge-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-contrast);
}

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

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

/* Modal Body & Admin Screens */
.admin-auth-screen,
.admin-dashboard-screen {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-auth-card {
  max-width: 440px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.auth-lock-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-contrast);
}

.auth-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.auth-error {
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 600;
  margin-top: 0.4rem;
}

/* Editor Tab System */
.editor-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  position: sticky;
  top: -1.5rem;
  z-index: 20;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .editor-tabs-bar {
  background: rgba(241, 245, 249, 0.95);
}

.editor-tabs-bar::-webkit-scrollbar {
  display: none;
}

.editor-tab {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.editor-tab:hover {
  color: var(--text-contrast);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
}

.editor-tab.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.editor-tab-content {
  display: none;
  padding-bottom: 3.5rem;
}

.editor-tab-content.active {
  display: block;
  animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.editor-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.editor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.editor-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-contrast);
  margin: 0;
}

.editor-grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.editor-grid-form .full-width {
  grid-column: 1 / -1;
}

.editor-skills-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  text-align: left;
}

.sim-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-contrast);
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

[data-theme="light"] .sim-table th {
  background: rgba(241, 245, 249, 0.9);
}

.sim-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.sim-table tr:last-child td {
  border-bottom: none;
}

.sim-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.btn-micro {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 6px;
}
