/* ============================================================================
 * ANTIGRAVITY & ZERO-G PHYSICS DESIGN SYSTEM (DARK & LIGHT THEME COMPATIBLE)
 * Bishan Giri — IT Professional (www.bishangiri.com.np)
 * ============================================================================ */

:root,
[data-bs-theme="dark"] {
  /* Cosmic / Obsidian Dark Palette */
  --bg-obsidian: #070A13;
  --bg-deep-space: #0D1527;
  --bg-surface: rgba(15, 23, 42, 0.68);
  --bg-surface-elevated: rgba(20, 30, 55, 0.88);
  --bg-card-inner: rgba(7, 10, 19, 0.65);
  --bg-navbar: rgba(7, 10, 19, 0.82);
  --bg-input: rgba(7, 10, 19, 0.78);

  /* Sovereign Identity Accents */
  --sovereign-crimson: #C41E3A;
  --sovereign-crimson-glow: rgba(196, 30, 58, 0.45);
  --himalayan-cyan: #00E5FF;
  --himalayan-blue: #0088FF;
  --himalayan-cyan-glow: rgba(0, 229, 255, 0.38);
  --insignia-gold: #F59E0B;

  /* Status Semantics */
  --status-active: #10B981;
  --status-active-bg: rgba(16, 185, 129, 0.14);
  --status-inactive: #94A3B8;
  --status-inactive-bg: rgba(148, 163, 184, 0.14);
  --status-pending: #F59E0B;
  --status-pending-bg: rgba(245, 158, 11, 0.16);

  /* Typography & Borders */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-cyan-text: #00E5FF;
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-highlight: rgba(0, 229, 255, 0.38);
  --glass-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --glass-blur: blur(16px);
  --grid-line-color: rgba(255, 255, 255, 0.02);

  /* 3D Physics Variables */
  --card-perspective: 1000px;
}

/* ============================================================================
 * LIGHT THEME VARIABLES ([data-bs-theme="light"])
 * ============================================================================ */
[data-bs-theme="light"] {
  --bg-obsidian: #F1F5F9;
  --bg-deep-space: #E2E8F0;
  --bg-surface: rgba(255, 255, 255, 0.84);
  --bg-surface-elevated: rgba(255, 255, 255, 0.96);
  --bg-card-inner: rgba(241, 245, 249, 0.9);
  --bg-navbar: rgba(255, 255, 255, 0.88);
  --bg-input: rgba(255, 255, 255, 0.95);

  --sovereign-crimson: #C41E3A;
  --sovereign-crimson-glow: rgba(196, 30, 58, 0.25);
  --himalayan-cyan: #0284C7;
  --himalayan-blue: #0369A1;
  --himalayan-cyan-glow: rgba(2, 132, 199, 0.25);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent-cyan-text: #0284C7;
  --glass-border: rgba(15, 23, 42, 0.11);
  --glass-border-highlight: rgba(2, 132, 199, 0.45);
  --glass-shadow: 0 18px 40px -15px rgba(15, 23, 42, 0.12);
  --grid-line-color: rgba(15, 23, 42, 0.035);
}

/* Light Mode Bootstrap Utility Overrides for Seamless Contrast */
[data-bs-theme="light"] .text-light {
  color: #0F172A !important;
}
[data-bs-theme="light"] .text-info {
  color: #0284C7 !important;
}
[data-bs-theme="light"] .bg-dark {
  background-color: rgba(226, 232, 240, 0.75) !important;
}
[data-bs-theme="light"] .text-gradient-cyan {
  background: linear-gradient(135deg, #0F172A 0%, #0284C7 55%, #C41E3A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-bs-theme="light"] .holo-id-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.96) 100%);
  border-color: rgba(2, 132, 199, 0.32);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}
[data-bs-theme="light"] .holo-foil-badge {
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.15);
}
[data-bs-theme="light"] .sovereign-pill {
  color: #9F1239;
  background: rgba(196, 30, 58, 0.1);
}
[data-bs-theme="light"] .tech-chip {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
  color: #1E293B;
}
[data-bs-theme="light"] .skill-meter-track {
  background: rgba(15, 23, 42, 0.1);
}
[data-bs-theme="light"] .btn-close-white {
  filter: none;
}

/* ----------------------------------------------------------------------------
 * 1. GLOBAL RESET & BASE ATMOSPHERE
 * ---------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(196, 30, 58, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 85% 22%, rgba(0, 229, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(0, 136, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-obsidian) 0%, var(--bg-deep-space) 55%, var(--bg-obsidian) 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.65;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--sovereign-crimson), var(--himalayan-blue));
  border-radius: 999px;
}

/* ----------------------------------------------------------------------------
 * 2. FULLSCREEN ANTIGRAVITY PARTICLE CANVAS & AMBIENT FIELDS
 * ---------------------------------------------------------------------------- */
#antigravity-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 20%, transparent 80%);
}

.app-wrapper {
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------------------------
 * 3. ZERO-GRAVITY KEYFRAMES & CONTINUOUS LEVITATION
 * ---------------------------------------------------------------------------- */
@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0px, 0);
  }
  50% {
    transform: translate3d(0, -11px, 0);
  }
}

@keyframes pulseRim {
  0%, 100% {
    box-shadow:
      var(--glass-shadow),
      0 0 20px rgba(0, 229, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow:
      var(--glass-shadow),
      0 0 28px rgba(196, 30, 58, 0.22),
      inset 0 1px 0 rgba(0, 229, 255, 0.25);
  }
}

@keyframes holoScan {
  0% { top: -15%; opacity: 0; }
  20% { opacity: 0.75; }
  80% { opacity: 0.75; }
  100% { top: 115%; opacity: 0; }
}

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

.zero-g-float {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.float-delay-1 { animation-delay: 0.8s; }
.float-delay-2 { animation-delay: 1.6s; }
.float-delay-3 { animation-delay: 2.4s; }
.float-delay-4 { animation-delay: 3.2s; }
.float-delay-5 { animation-delay: 4.0s; }

/* ----------------------------------------------------------------------------
 * 4. FROSTED GLASSMORPHISM & 3D GYROSCOPIC TILT CARDS
 * ---------------------------------------------------------------------------- */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition:
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  border-color: var(--glass-border-highlight);
}

.sovereign-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sovereign-crimson), var(--himalayan-cyan), var(--sovereign-crimson));
  z-index: 3;
}

.tilt-card {
  transform-style: preserve-3d;
  perspective: var(--card-perspective);
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.03, 0.98, 0.52, 0.99), border-color 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card .tilt-content {
  transform: translateZ(24px);
}

.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(0, 229, 255, 0.14) 0%,
    rgba(196, 30, 58, 0.06) 35%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.tilt-card:hover .tilt-glare {
  opacity: 1;
}

/* ----------------------------------------------------------------------------
 * 5. NAVIGATION BAR, SUBMENUS & MOBILE HAMBURGER MENU
 * ---------------------------------------------------------------------------- */
.gov-navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1340px, calc(100% - 24px));
  z-index: 1040;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 0.65rem 1.25rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.gov-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-primary);
}

.gov-emblem-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.25) 0%, var(--bg-card-inner) 100%);
  border: 1.5px solid var(--sovereign-crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--sovereign-crimson-glow);
  overflow: hidden;
  flex-shrink: 0;
}

.gov-emblem-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gov-nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem !important;
  border-radius: 999px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gov-nav-link:hover,
.gov-nav-link.active {
  color: var(--himalayan-cyan);
  background: rgba(0, 229, 255, 0.1);
}

/* Desktop Submenu Dropdown */
.nav-submenu-wrap {
  position: relative;
}

.desktop-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border-highlight);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-submenu-wrap:hover .desktop-submenu,
.nav-submenu-wrap:focus-within .desktop-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.submenu-item:hover {
  background: rgba(0, 229, 255, 0.12);
  color: var(--himalayan-cyan);
  transform: translateX(4px);
}

/* Theme & Language Toggle Buttons */
.control-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 36px;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--bg-card-inner);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.control-pill-btn:hover {
  border-color: var(--himalayan-cyan);
  color: var(--himalayan-cyan);
}

/* Animated Hamburger Button (Mobile) */
.hamburger-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-card-inner);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--sovereign-crimson);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--himalayan-cyan);
}

/* Mobile Collapsible Menu & Submenu Drawer */
.mobile-nav-drawer {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--glass-border);
}

.mobile-nav-drawer.open {
  display: block;
  animation: fadeSlideDown 0.28s ease forwards;
}

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.68rem 0.9rem;
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--himalayan-cyan);
}

.mobile-submenu-toggle {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mobile-submenu-list {
  display: none;
  padding: 0.35rem 0.5rem 0.5rem 1.25rem;
  margin: 0.25rem 0;
  border-left: 2px solid var(--sovereign-crimson);
  margin-left: 0.9rem;
}

.mobile-submenu-list.show {
  display: block;
}

.mobile-submenu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.75rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.mobile-submenu-item:hover {
  color: var(--himalayan-cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* ----------------------------------------------------------------------------
 * 6. HERO SECTION & HOLOGRAPHIC ID CARD
 * ---------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  padding-top: 125px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  position: relative;
}

.sovereign-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(196, 30, 58, 0.15);
  border: 1px solid rgba(196, 30, 58, 0.45);
  color: #FCA5A5;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sovereign-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--himalayan-cyan);
  box-shadow: 0 0 10px var(--himalayan-cyan);
}

.hero-title {
  font-size: clamp(2.1rem, 4.3vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 1.1rem 0 0.85rem;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--himalayan-cyan) 55%, var(--himalayan-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #FF6B8B 0%, var(--sovereign-crimson) 60%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typewriter-wrapper {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.95rem, 1.7vw, 1.22rem);
  color: var(--himalayan-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-left: 3px solid var(--sovereign-crimson);
  padding: 0.55rem 1rem;
  border-radius: 0 12px 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--himalayan-cyan);
  animation: blinkCursor 0.9s infinite;
}

.holo-id-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88) 0%, rgba(7, 10, 19, 0.94) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  animation: pulseRim 6s ease-in-out infinite;
}

.holo-id-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--himalayan-cyan), var(--sovereign-crimson), transparent);
  box-shadow: 0 0 18px var(--himalayan-cyan);
  animation: holoScan 5.5s linear infinite;
  pointer-events: none;
}

.holo-foil-badge {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.22), rgba(0, 229, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #E2E8F0;
}

.id-avatar-frame {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--sovereign-crimson), var(--himalayan-cyan));
  position: relative;
  margin: 0 auto 1rem;
  box-shadow: 0 0 28px rgba(196, 30, 58, 0.38);
}

.id-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: #FFFFFF;
}

.id-verified-seal {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sovereign-crimson);
  border: 2px solid var(--bg-obsidian);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 0 10px var(--sovereign-crimson-glow);
}

/* ----------------------------------------------------------------------------
 * 7. MAGNETIC ACTION BUTTONS
 * ---------------------------------------------------------------------------- */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
  cursor: pointer;
}

.btn-sovereign-primary {
  background: linear-gradient(135deg, var(--sovereign-crimson) 0%, #9E142B 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -5px var(--sovereign-crimson-glow);
}

.btn-sovereign-primary:hover {
  color: #FFFFFF !important;
  box-shadow: 0 14px 32px -4px rgba(196, 30, 58, 0.7);
}

.btn-cyber-cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--himalayan-cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.btn-cyber-cyan:hover {
  background: var(--himalayan-cyan);
  color: #070A13 !important;
  border-color: var(--himalayan-cyan);
}

.btn-glass-outline {
  background: var(--bg-card-inner);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-glass-outline:hover {
  color: var(--himalayan-cyan);
  border-color: var(--himalayan-cyan);
}

/* ----------------------------------------------------------------------------
 * 8. METRICS, SKILLS MATRIX & PORTFOLIO CARDS
 * ---------------------------------------------------------------------------- */
.metric-card {
  padding: 1.75rem 1.4rem;
  text-align: center;
}

.metric-icon-box {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(196, 30, 58, 0.14));
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--himalayan-cyan);
}

.metric-value {
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.filter-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}

.filter-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-pill-btn.active {
  background: linear-gradient(135deg, var(--sovereign-crimson), #8F1529);
  color: #FFFFFF;
  box-shadow: 0 0 14px var(--sovereign-crimson-glow);
}

.skill-meter-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sovereign-crimson) 0%, var(--himalayan-blue) 55%, var(--himalayan-cyan) 100%);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-category-tag {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--himalayan-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

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

.project-thumb-wrap {
  position: relative;
  height: 215px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-card-inner);
}

.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb-wrap img {
  transform: scale(1.06);
}

.project-dept-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 10, 19, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 30, 58, 0.55);
  color: #FECDD3;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  z-index: 2;
}

.tech-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

/* ----------------------------------------------------------------------------
 * 9. TIMELINE & CONTACT TERMINAL
 * ---------------------------------------------------------------------------- */
.antigravity-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.antigravity-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--himalayan-cyan), var(--sovereign-crimson));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-node {
  position: absolute;
  left: -2.5rem;
  top: 1.4rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  border: 2px solid var(--himalayan-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-node::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sovereign-crimson);
}

.cyber-input,
.cyber-select,
.cyber-textarea {
  background: var(--bg-input) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  padding: 0.78rem 1rem !important;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.cyber-input:focus,
.cyber-select:focus,
.cyber-textarea:focus {
  border-color: var(--himalayan-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15) !important;
  outline: none;
}

/* ----------------------------------------------------------------------------
 * 10. STATUS BADGES & ADMIN PORTAL
 * ---------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-active {
  background: var(--status-active-bg);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.status-active::before {
  background: #10B981;
}

.status-inactive {
  background: var(--status-inactive-bg);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.status-inactive::before {
  background: #64748B;
}

.status-pending {
  background: var(--status-pending-bg);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.45);
}
[data-bs-theme="dark"] .status-pending {
  color: #FBBF24;
}
.status-pending::before {
  background: #F59E0B;
}

.status-switcher-group {
  display: inline-flex;
  background: var(--bg-card-inner);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.status-switch-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-switch-btn.active-state[data-status="active"] {
  background: #10B981;
  color: #052E16;
}

.status-switch-btn.active-state[data-status="inactive"] {
  background: #475569;
  color: #F8FAFC;
}

.status-switch-btn.active-state[data-status="pending"] {
  background: #F59E0B;
  color: #451A03;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  padding: 1.5rem 1.15rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(196, 30, 58, 0.18), rgba(0, 229, 255, 0.1));
  color: var(--text-primary);
  border-left: 3px solid var(--himalayan-cyan);
}

.table-antigravity {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--glass-border);
  margin-bottom: 0;
}

.table-antigravity thead th {
  background: var(--bg-card-inner);
  color: var(--text-secondary);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.95rem 1rem;
}

.table-antigravity tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
}

.modal-antigravity .modal-content {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-highlight);
  border-radius: 20px;
  color: var(--text-primary);
  box-shadow: var(--glass-shadow);
}

@media (max-width: 991.98px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .gov-navbar {
    border-radius: 20px;
  }
}

/* ----------------------------------------------------------------------------
 * 11. FLOATING GO-TO-TOP ARROW (SCROLL-TRIGGERED)
 * ---------------------------------------------------------------------------- */
.scroll-to-top-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-border-highlight);
  color: var(--himalayan-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 16px var(--himalayan-cyan-glow);
  cursor: pointer;
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

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

.scroll-to-top-btn:hover {
  background: linear-gradient(135deg, var(--sovereign-crimson) 0%, var(--himalayan-blue) 100%);
  color: #FFFFFF !important;
  border-color: #FFFFFF;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 14px 32px rgba(196, 30, 58, 0.55), 0 0 22px var(--himalayan-cyan-glow);
}

.scroll-to-top-btn:active {
  transform: translateY(-1px) scale(0.96);
}

