/* ==========================================
   Dashboard Portfolio — Caleb Yang
   Theme: Abyssal Deep Ocean (~4000m)
   ========================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  /* LIGHT THEME (PRIMARY) */
  --bg-body: #f5f7fb;
  --bg-body-deep: #eef2f7;
  --bg-body-bottom: #e5eaf2;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-sidebar-hover: rgba(37, 99, 235, 0.06);
  --bg-sidebar-active: rgba(37, 99, 235, 0.1);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-sidebar: #475569;
  --text-sidebar-active: #1d4ed8;

  --accent-rgb: 59, 130, 246;
  --bg-overlay-rgb: 255, 255, 255;
  --bg-card-rgb: 255, 255, 255;
  --text-rgb: 43, 45, 66;

  --accent: #2563eb;
  --accent-light: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);

  --bio-blue: #00b4d8;
  --bio-violet: #7209b7;
  --bio-orange: #f77f00;

  --success: #06d6a0;
  --warning: #f77f00;
  --danger: #ef476f;

  --glow-cyan: 0 0 12px rgba(37, 99, 235, 0.12);
  --glow-blue: 0 0 12px rgba(59, 130, 246, 0.12);
  --glow-violet: 0 0 12px rgba(114, 9, 183, 0.12);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-sidebar: 4px 0 16px rgba(15, 23, 42, 0.05);

  --border-glow: 1px solid #e2e8f0;
  --border-glow-hover: 1px solid rgba(37, 99, 235, 0.25);

  --text-shadow-glow: none;
  --box-shadow-glow: 0 4px 10px rgba(37, 99, 235, 0.08);
  --box-shadow-glow-hover: 0 8px 18px rgba(37, 99, 235, 0.12);
  --btn-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --btn-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.1);
  --border-subtle: 1px solid #e2e8f0;
  --border-subtle-hover: 1px solid #93c5fd;
  --nav-indicator-glow: none;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --sidebar-width: 280px;
  --header-height: 64px;

  --transition-fast: .2s cubic-bezier(.4,0,.2,1);
  --transition-base: .3s cubic-bezier(.4,0,.2,1);
  --transition-spring: .5s cubic-bezier(.175,.885,.32,1.275);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg-body: #060913;
  --bg-body-deep: #0B1120;
  --bg-body-bottom: #040711;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-solid: #0F172A;
  --bg-sidebar: rgba(11, 17, 32, 0.95);
  --bg-sidebar-hover: rgba(0, 245, 212, 0.1);
  --bg-sidebar-active: rgba(0, 245, 212, 0.18);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-tertiary: #94A3B8;
  --text-sidebar: #CBD5E1;
  --text-sidebar-active: #00F5D4;

  --accent-rgb: 0, 245, 212;
  --bg-overlay-rgb: 6, 9, 19;
  --bg-card-rgb: 15, 23, 42;
  --text-rgb: 248, 250, 252;

  --accent: #00F5D4;
  --accent-light: #52f8e1;
  --accent-glow: rgba(0, 245, 212, 0.15);
  --accent-gradient: linear-gradient(135deg, #00F5D4, #3B82F6);

  --bio-blue: #3B82F6;
  --bio-violet: #8B5CF6;
  --bio-orange: #FF8C42;

  --success: #00F5D4;
  --warning: #FF8C42;
  --danger: #FF4560;

  --glow-cyan: 0 0 20px rgba(0, 245, 212, 0.3);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
  --glow-violet: 0 0 20px rgba(139, 92, 246, 0.3);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-card-hover: 0 15px 40px rgba(0, 245, 212, 0.18), var(--shadow-card);
  --shadow-sidebar: 4px 0 30px rgba(0, 0, 0, 0.6);

  --border-glow: 1px solid rgba(255, 255, 255, 0.12);
  --border-glow-hover: 1px solid rgba(0, 245, 212, 0.4);

  --text-shadow-glow: none;
  --box-shadow-glow: 0 0 20px rgba(0, 245, 212, 0.3);
  --box-shadow-glow-hover: 0 0 30px rgba(0, 245, 212, 0.5);
  --btn-shadow: 0 4px 20px rgba(0, 245, 212, 0.25);
  --btn-shadow-hover: 0 8px 35px rgba(0, 245, 212, 0.4);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.12);
  --border-subtle-hover: 1px solid rgba(0, 245, 212, 0.4);
  --nav-indicator-glow: 0 0 10px rgba(0, 245, 212, 0.5);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background: #f8fafc;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

#abyssCanvas,
.dive-lamp,
.abyss-vignette,
.depth-indicator,
.fishing-mode,
.fishing-intro,
.catch-reveal,
.mode-toggle,
.gol-toggle,
.crypto-toggle,
.catch-journal,
.crypto-mode,
.gol-mode {
  display: none !important;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--text-primary);
  text-shadow: var(--text-shadow-glow);
}

/* ==========================================
   DIVE LAMP — MOUSE FOLLOW LIGHT
   ========================================== */

.dive-lamp {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, rgba(0, 191, 255, 0.02) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  will-change: left, top;
}

/* ==========================================
   PARTICLE CANVAS
   ========================================== */

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

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: var(--shadow-sidebar);
  overflow-y: auto;
  transition: transform var(--transition-base);
  border-right: 1px solid rgba(var(--accent-rgb), 0.06);
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--text-sidebar);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.sidebar-close:hover {
  background: var(--bg-sidebar-hover);
  color: var(--accent);
}

.sidebar-profile {
  padding: 40px 24px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.06);
}

.sidebar-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(var(--accent-rgb), 0.2);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.sidebar-avatar:hover img {
  border-color: var(--accent);
  box-shadow: var(--box-shadow-glow);
}

.status-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-card-solid);
  animation: pulse-biolum 2.5s ease-in-out infinite;
}

@keyframes pulse-biolum {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { box-shadow: 0 0 12px 4px rgba(var(--accent-rgb), 0); }
}

.sidebar-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: var(--text-shadow-glow);
}
.sidebar-role {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.sidebar-location {
  font-size: .78rem;
  color: var(--text-sidebar);
}
.sidebar-location i { margin-right: 4px; }

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}
.nav-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--accent);
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: var(--nav-indicator-glow);
}

/* Sidebar Socials */
.sidebar-socials {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.06);
}
.sidebar-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-sidebar);
  font-size: .95rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.sidebar-socials a:hover {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-glow-hover);
}

.sidebar-footer {
  padding: 12px 24px;
  text-align: center;
  color: rgba(var(--text-rgb), 0.2);
  font-size: .72rem;
}

/* ==========================================
   MOBILE HEADER
   ========================================== */

.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(var(--bg-card-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}

.mobile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-header-controls .control-btn {
  height: 34px;
  padding: 4px 12px;
  font-size: 0.8rem;
  background: rgba(var(--accent-rgb), 0.08);
  border: var(--border-subtle);
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: var(--text-shadow-glow);
}

.mobile-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  border: var(--border-subtle);
}
.mobile-cv-btn:hover {
  background: var(--accent);
  color: var(--bg-body);
  box-shadow: var(--box-shadow-glow-hover);
}

.mobile-cv-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-cv-btn {
  gap: 8px;
  min-width: 42px;
  padding: 0 12px;
}

.cv-download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cv-download-group .btn-download-cv {
  min-width: 150px;
}

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(var(--bg-overlay-rgb), 0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}
.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* ==========================================
   MAIN DASHBOARD
   ========================================== */

.dashboard {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 0 32px 32px;
  position: relative;
  z-index: 2;
}

/* Dashboard Header & Hero Banner */
.dash-header {
  margin-bottom: 28px;
  position: relative;
  z-index: 100;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 36px 32px;
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

/* ==========================================
   ISOLATED COMPONENT THEMES (DARK & LIGHT)
   ========================================== */

/* 🔴 1. Dashboard Crimson Theme (#dashboard) */
.dashboard-crimson-theme {
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(254, 226, 226, 0.9) 50%, rgba(254, 202, 202, 0.85) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
.dashboard-crimson-theme::before {
  background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.15) 0%, transparent 60%) !important;
}
.dashboard-crimson-theme .hero-status-pill {
  background: rgba(254, 202, 202, 0.6) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #9F1239 !important;
}
.dashboard-crimson-theme .status-dot {
  background: #DC2626 !important;
  box-shadow: 0 0 10px #DC2626 !important;
}
.dashboard-crimson-theme .hero-title {
  color: #881337 !important;
}
.dashboard-crimson-theme .hero-title .highlight-accent {
  background: linear-gradient(135deg, #E11D48, #991B1B) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.dashboard-crimson-theme .hero-tagline {
  color: #9F1239 !important;
}
.dashboard-crimson-theme .hero-bio-short {
  color: #4C0519 !important;
}
.dashboard-crimson-theme .btn-hero-primary {
  background: linear-gradient(135deg, #DC2626, #991B1B) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(220, 38, 38, 0.6) !important;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3) !important;
}
.dashboard-crimson-theme .btn-hero-primary:hover {
  background: linear-gradient(135deg, #EF4444, #B91C1C) !important;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4) !important;
}
.dashboard-crimson-theme .live-clock-badge {
  background: rgba(254, 242, 242, 0.9) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}
.dashboard-crimson-theme .live-clock-badge i {
  color: #DC2626 !important;
}
.dashboard-crimson-theme .dash-clock {
  color: #881337 !important;
}
.dashboard-crimson-theme .dash-date {
  color: #9F1239 !important;
}

/* Crimson Dark Mode */
[data-theme="dark"] .dashboard-crimson-theme {
  background: linear-gradient(135deg, rgba(120, 0, 0, 0.88) 0%, rgba(185, 28, 28, 0.5) 45%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 15px 45px rgba(185, 28, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .dashboard-crimson-theme::before {
  background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.25) 0%, transparent 60%) !important;
}
[data-theme="dark"] .dashboard-crimson-theme .hero-status-pill {
  background: rgba(220, 38, 38, 0.25) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #FCA5A5 !important;
}
[data-theme="dark"] .dashboard-crimson-theme .status-dot {
  background: #EF4444 !important;
  box-shadow: 0 0 12px #EF4444 !important;
}
[data-theme="dark"] .dashboard-crimson-theme .hero-title {
  color: #FFFFFF !important;
}
[data-theme="dark"] .dashboard-crimson-theme .hero-title .highlight-accent {
  background: linear-gradient(135deg, #FF6B6B, #EF4444) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
[data-theme="dark"] .dashboard-crimson-theme .hero-tagline {
  color: #FECDD3 !important;
}
[data-theme="dark"] .dashboard-crimson-theme .hero-bio-short {
  color: #E2E8F0 !important;
}
[data-theme="dark"] .dashboard-crimson-theme .live-clock-badge {
  background: rgba(120, 0, 0, 0.4) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}
[data-theme="dark"] .dashboard-crimson-theme .live-clock-badge i {
  color: #EF4444 !important;
}
[data-theme="dark"] .dashboard-crimson-theme .dash-clock {
  color: #FFFFFF !important;
}
[data-theme="dark"] .dashboard-crimson-theme .dash-date {
  color: #FECDD3 !important;
}


/* 🟢 2. Vue d'ensemble Emerald Theme (.stats-emerald-theme) */
.stats-emerald-theme {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.85) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.12) !important;
}
.stats-emerald-theme .panel-header i {
  color: #059669 !important;
}
.stats-emerald-theme .panel-header h3 {
  color: #065F46 !important;
}
.stats-emerald-theme .stat-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.stats-emerald-theme .stat-icon i {
  color: #059669 !important;
}
.stats-emerald-theme .stat-number {
  color: #047857 !important;
}
.stats-emerald-theme .stat-label {
  color: #065F46 !important;
}

/* Emerald Dark Mode */
[data-theme="dark"] .stats-emerald-theme {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.2) !important;
}
[data-theme="dark"] .stats-emerald-theme .panel-header i {
  color: #00F5D4 !important;
}
[data-theme="dark"] .stats-emerald-theme .panel-header h3 {
  color: #F8FAFC !important;
}
[data-theme="dark"] .stats-emerald-theme .stat-card {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
[data-theme="dark"] .stats-emerald-theme .stat-icon i {
  color: #00F5D4 !important;
}
[data-theme="dark"] .stats-emerald-theme .stat-number {
  color: #00F5D4 !important;
}
[data-theme="dark"] .stats-emerald-theme .stat-label {
  color: #CBD5E1 !important;
}


/* 🟣 3. Inspiration Quote Purple Theme (.quote-purple-theme) */
.quote-purple-theme {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95) 0%, rgba(237, 233, 254, 0.85) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 12px 35px rgba(168, 85, 247, 0.12) !important;
}
.quote-purple-theme .panel-header i {
  color: #7C3AED !important;
}
.quote-purple-theme .panel-header h3 {
  color: #4C1D95 !important;
}
.quote-purple-theme .quote-text {
  color: #5B21B6 !important;
}
.quote-purple-theme .quote-author {
  color: #6D28D9 !important;
}
.quote-purple-theme .quote-dots .dot {
  background: rgba(124, 58, 237, 0.25) !important;
}
.quote-purple-theme .quote-dots .dot.active {
  background: #7C3AED !important;
}

/* Purple Dark Mode */
[data-theme="dark"] .quote-purple-theme {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 12px 35px rgba(168, 85, 247, 0.2) !important;
}
[data-theme="dark"] .quote-purple-theme .panel-header i {
  color: #C084FC !important;
}
[data-theme="dark"] .quote-purple-theme .panel-header h3 {
  color: #F8FAFC !important;
}
[data-theme="dark"] .quote-purple-theme .quote-text {
  color: #F3E8FF !important;
}
[data-theme="dark"] .quote-purple-theme .quote-author {
  color: #E9D5FF !important;
}
[data-theme="dark"] .quote-purple-theme .quote-dots .dot {
  background: rgba(192, 132, 252, 0.3) !important;
}
[data-theme="dark"] .quote-purple-theme .quote-dots .dot.active {
  background: #C084FC !important;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-left {
  flex: 1;
  max-width: 720px;
  z-index: 2;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(var(--accent-rgb), 0.08);
  border: var(--border-subtle);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-bio-short {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-hero-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: var(--btn-shadow);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}

.btn-hero-secondary {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border: var(--border-subtle);
}
.btn-hero-secondary:hover {
  background: var(--accent);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: var(--text-secondary);
  border: var(--border-subtle);
}
.btn-hero-outline:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.live-clock-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(var(--bg-card-rgb), 0.6);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.live-clock-badge i {
  font-size: 1.4rem;
  color: var(--accent);
}

.dash-clock {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
}

.dash-date {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Floating Top Control Bar (Theme & Language Toggles) */
.top-controls-bar {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: rgba(var(--bg-card-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glow);
  border-radius: 50px;
  box-shadow: var(--shadow-sidebar);
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  height: 36px;
  border-radius: 30px;
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background: var(--bg-sidebar-hover);
  color: var(--accent);
  transform: translateY(-1px);
}

.control-btn i {
  font-size: 1.05rem;
  color: var(--accent);
}

/* Skills Header & Filters */
.skills-header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.panel-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.skill-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.skill-filter-btn {
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-secondary);
  border: var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.skill-filter-btn.active {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  box-shadow: var(--btn-shadow);
}

/* Tech Ecosystem Grid */
.tech-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tech-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow-card-hover);
}

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

.tech-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: var(--border-subtle);
}

.tech-card-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.tech-card-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.tech-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-expert {
  background: rgba(6, 214, 160, 0.12);
  color: var(--success);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.badge-advanced {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-operational {
  background: rgba(247, 127, 0, 0.12);
  color: var(--warning);
  border: 1px solid rgba(247, 127, 0, 0.3);
}

.tech-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.tech-card-projects {
  border-top: 1px dashed rgba(var(--accent-rgb), 0.12);
  padding-top: 12px;
}

.tech-card-projects small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 6px;
}

.tech-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-tag {
  font-size: 0.73rem;
  padding: 3px 8px;
  background: rgba(var(--accent-rgb), 0.05);
  border-radius: 6px;
  color: var(--text-primary);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  font-weight: 500;
}

/* Skyscraper Canvas Background & Glass Sheen Overlay */
#skylineCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.skyscraper-glass-sheen {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(125deg, rgba(255,255,255,0.03) 0%, transparent 35%, rgba(255,255,255,0.015) 65%, transparent 100%);
  border: 1px solid rgba(255,255,255,0.02);
}

/* Shared Project & Skill Filter Buttons */
.filter-btn,
.skill-filter-btn {
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-secondary);
  border: var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover,
.skill-filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
}

.filter-btn.active,
.skill-filter-btn.active {
  background: var(--accent);
  color: #000000 !important;
  border-color: var(--accent);
  box-shadow: var(--btn-shadow);
}

/* Quick View Project Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.project-modal-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: var(--border-glow-hover);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  z-index: 2;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

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

.modal-project-img img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.modal-project-info {
  padding: 28px;
}

.modal-project-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-role {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-tech img {
  width: 28px;
  height: 28px;
}

.modal-date {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.modal-links {
  display: flex;
  gap: 12px;
}

.modal-links .project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-download-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-spring);
  box-shadow: var(--btn-shadow);
  border: none;
}
.btn-download-cv:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
  background: #1e40af;
  color: #ffffff;
}
.btn-download-cv i { font-size: 1.1rem; }

/* ===== DASH ROWS ===== */
.dash-row {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.row-stats { grid-template-columns: 1.4fr 1fr; }
.row-bio   { grid-template-columns: 1.3fr 1fr; }
.row-skills,
.row-projects,
.row-services,
.row-contact { grid-template-columns: 1fr; }

/* ===== PANELS — Glass Bubble Style ===== */
.panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: var(--border-glow);
  position: relative;
  overflow: hidden;
}

/* Subtle glass reflection on top */
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.15), transparent);
  pointer-events: none;
}

.panel:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.06);
}
.panel-header i {
  font-size: 1.2rem;
  color: var(--accent);
  background: var(--accent-glow);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: var(--border-subtle);
}
.panel-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: var(--text-shadow-glow);
}

/* ==========================================
   STATS PANEL
   ========================================== */

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

.stat-card {
  background: #f8fbff;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition-spring);
  border: 1px solid #e2e8f0;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-glow);
  border-color: var(--border-subtle-hover);
  background: #f5faff;
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: var(--text-shadow-glow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: var(--text-shadow-glow);
}

.stat-label {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ==========================================
   QUOTE PANEL
   ========================================== */

.panel-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-body-deep));
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.12);
}
.panel-quote:hover {
  border-color: rgba(37, 99, 235, 0.2);
}
.panel-quote .panel-header {
  border-bottom-color: rgba(155, 77, 255, 0.1);
}
.panel-quote .panel-header i {
  background: rgba(155, 77, 255, 0.12);
  color: var(--bio-violet);
  border-color: rgba(155, 77, 255, 0.15);
}
.panel-quote .panel-header h3 {
  color: var(--text-primary);
}

.panel-quote::after {
  content: '\\201C';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 8rem;
  font-family: var(--font-main);
  color: rgba(37, 99, 235, 0.06);
  line-height: 1;
  pointer-events: none;
}

.quote-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

.quote-text {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
  transition: opacity .6s ease;
  text-shadow: 0 0 30px rgba(155, 77, 255, 0.08);
}

.quote-author {
  font-style: normal;
  font-size: .85rem;
  color: var(--bio-violet);
  font-weight: 500;
}

.quote-dots {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}
.quote-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(155, 77, 255, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.quote-dots .dot.active {
  background: var(--bio-violet);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(155, 77, 255, 0.4);
}

/* ==========================================
   BIO PANEL
   ========================================== */

.bio-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: .92rem;
  line-height: 1.75;
}
.bio-content strong {
  color: var(--accent);
  font-weight: 600;
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  display: inline-flex;
  padding: 5px 14px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  border-radius: 20px;
  transition: all var(--transition-fast);
  border: var(--border-subtle);
}
.tag:hover {
  background: rgba(var(--accent-rgb), 0.2);
  color: #fff;
  box-shadow: var(--box-shadow-glow-hover);
}

/* ==========================================
   SITUATION PANEL
   ========================================== */

.situation-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.situation-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.situation-dot {
  margin-top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.situation-dot.available {
  background: var(--accent);
  box-shadow: var(--box-shadow-glow);
  animation: pulse-biolum 2.5s ease-in-out infinite;
}

.situation-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
}

.situation-item strong {
  font-size: .9rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.situation-item p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================
   SKILLS PANEL
   ========================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-group-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-group-title i {
  color: var(--accent);
  font-size: 1rem;
  text-shadow: var(--text-shadow-glow);
}

.skill-bar-item {
  margin-bottom: 14px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: .82rem;
}
.skill-info span:first-child { color: var(--text-secondary); font-weight: 500; }
.skill-pct { color: var(--accent); font-weight: 700; }

.skill-track {
  height: 6px;
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  position: relative;
  box-shadow: var(--box-shadow-glow);
}

/* Tech icons row */
.tech-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.06);
  justify-content: center;
  max-width: 780px;
  grid-column: 1 / -1;
}
.tech-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 72px;
}
.tech-logo-item span {
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.tech-icons-row img {
  width: 36px; height: 36px;
  transition: all var(--transition-spring);
  filter: none;
  opacity: .92;
  animation: tech-icon-glow 4.8s linear infinite;
}
.tech-icons-row .tech-logo-item:nth-child(1) img { animation-delay: 0s; }
.tech-icons-row .tech-logo-item:nth-child(2) img { animation-delay: 0.3s; }
.tech-icons-row .tech-logo-item:nth-child(3) img { animation-delay: 0.6s; }
.tech-icons-row .tech-logo-item:nth-child(4) img { animation-delay: 0.9s; }
.tech-icons-row .tech-logo-item:nth-child(5) img { animation-delay: 1.2s; }
.tech-icons-row .tech-logo-item:nth-child(6) img { animation-delay: 1.5s; }
.tech-icons-row .tech-logo-item:nth-child(7) img { animation-delay: 1.8s; }
.tech-icons-row .tech-logo-item:nth-child(8) img { animation-delay: 2.1s; }
.tech-icons-row .tech-logo-item:nth-child(9) img { animation-delay: 2.4s; }
.tech-icons-row .tech-logo-item:nth-child(10) img { animation-delay: 2.7s; }
.tech-icons-row .tech-logo-item:nth-child(11) img { animation-delay: 3s; }
.tech-icons-row .tech-logo-item:nth-child(12) img { animation-delay: 3.3s; }
.tech-icons-row .tech-logo-item:nth-child(13) img { animation-delay: 3.6s; }
.tech-icons-row .tech-logo-item:nth-child(14) img { animation-delay: 3.9s; }
.tech-icons-row .tech-logo-item:nth-child(15) img { animation-delay: 4.2s; }
.tech-icons-row .tech-logo-item:nth-child(16) img { animation-delay: 4.5s; }
.tech-icons-row img:hover {
  filter: grayscale(0) brightness(1.1) drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.55));
  opacity: 1;
  transform: translateY(-4px) scale(1.16);
}
@keyframes tech-icon-glow {
  0%, 100% { filter: grayscale(.6) brightness(0.8); opacity: .7; transform: translateY(0) scale(1); }
  20% { filter: grayscale(0) brightness(1.1); opacity: 1; transform: translateY(-4px) scale(1.2); }
  40% { filter: grayscale(.4) brightness(0.95); opacity: .9; transform: translateY(-2px) scale(1.1); }
  60% { filter: grayscale(.6) brightness(0.9); opacity: .75; transform: translateY(0) scale(1); }
  80% { filter: grayscale(.5) brightness(1); opacity: .85; transform: translateY(-2px) scale(1.1); }
}

/* ==========================================
   PROJECTS PANEL
   ========================================== */

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

.project-card {
  background: rgba(var(--bg-card-rgb), 0.7);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.06);
  transition: all var(--transition-spring);
  backdrop-filter: blur(8px);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}

.project-img {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.03), rgba(0, 191, 255, 0.03));
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.project-card:hover .project-img img {
  transform: scale(1.06);
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), rgba(155, 77, 255, 0.05));
}
.project-img-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  text-shadow: var(--text-shadow-glow);
}

.project-body {
  padding: 16px;
}
.project-body h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.project-body p {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.project-role {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: var(--border-subtle);
}

.project-tech {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.project-tech img {
  width: 22px; height: 22px;
  filter: grayscale(.3) brightness(0.9);
  opacity: .7;
  transition: all var(--transition-fast);
}
.project-tech img:hover {
  filter: grayscale(0) brightness(1.1) drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.4));
  opacity: 1;
  transform: scale(1.15);
}

.project-date {
  display: block;
  font-size: .72rem;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  transition: all var(--transition-fast);
}
.project-link:hover {
  color: var(--accent-light);
  gap: 8px;
  text-shadow: var(--text-shadow-glow);
}

/* ==========================================
   SERVICES PANEL
   ========================================== */

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

.service-card {
  text-align: center;
  padding: 28px 20px;
  background: rgba(var(--accent-rgb), 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--accent-rgb), 0.06);
  transition: all var(--transition-spring);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.service-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: var(--bg-body);
  font-size: 1.5rem;
  box-shadow: var(--btn-shadow);
  transition: box-shadow var(--transition-base);
}

.service-card:hover .service-icon {
  box-shadow: 0 4px 30px rgba(var(--accent-rgb), 0.4);
}

.service-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.service-card p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   CONTACT PANEL
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full-width { grid-column: 1 / -1; }

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

.form-group input,
.form-group textarea {
  font-family: var(--font-main);
  font-size: .88rem;
  padding: 11px 14px;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.03);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--glow-cyan);
  background: rgba(var(--accent-rgb), 0.05);
}

.btn-send {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-gradient);
  color: var(--bg-body);
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-spring);
  box-shadow: var(--btn-shadow);
}
.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}

.form-message {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  border: var(--border-subtle-hover);
}
.form-message.error {
  display: block;
  background: rgba(255, 69, 96, 0.08);
  color: var(--danger);
  border: 1px solid rgba(255, 69, 96, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-item > i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  flex-shrink: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
}
.contact-info-item strong {
  font-size: .85rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.contact-info-item a {
  font-size: .82rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
.contact-info-item a:hover {
  color: var(--accent);
  text-shadow: var(--text-shadow-glow);
}

/* ==========================================
   FOOTER
   ========================================== */

.dash-footer {
  padding: 24px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: .82rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.06);
  margin-top: 8px;
}
.dash-footer a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
.dash-footer a:hover {
  color: var(--accent-light);
  text-shadow: var(--text-shadow-glow);
}

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */

.reveal-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.projects-grid .reveal-card:nth-child(1) { transition-delay: .05s; }
.projects-grid .reveal-card:nth-child(2) { transition-delay: .1s; }
.projects-grid .reveal-card:nth-child(3) { transition-delay: .15s; }
.projects-grid .reveal-card:nth-child(4) { transition-delay: .2s; }
.projects-grid .reveal-card:nth-child(5) { transition-delay: .25s; }
.projects-grid .reveal-card:nth-child(6) { transition-delay: .3s; }
.projects-grid .reveal-card:nth-child(7) { transition-delay: .35s; }
.projects-grid .reveal-card:nth-child(8) { transition-delay: .4s; }
.projects-grid .reveal-card:nth-child(9) { transition-delay: .45s; }

/* ==========================================
   FLOATING ANIMATION (applied via JS)
   ========================================== */

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

.panel.floating {
  animation: gentleFloat 6s ease-in-out infinite;
}

/* Different delays for floating panels */
.dash-row:nth-child(2) .panel:nth-child(1) { animation-delay: 0s; }
.dash-row:nth-child(2) .panel:nth-child(2) { animation-delay: 1.5s; }
.dash-row:nth-child(3) .panel:nth-child(1) { animation-delay: 0.8s; }
.dash-row:nth-child(3) .panel:nth-child(2) { animation-delay: 2.3s; }

/* ==========================================
   SCROLLBAR — ABYSSAL
   ========================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.3); }

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

@media (max-width: 1200px) {
  .tech-ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .top-controls-bar {
    display: none !important;
  }

  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-header {
    display: flex;
  }

  .dashboard {
    margin-left: 0;
    padding: 0 16px 20px;
    padding-top: calc(var(--header-height) + 12px);
  }

  .dash-header {
    padding-top: 10px;
  }

  .sidebar-close {
    display: block;
  }

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

@media (max-width: 768px) {
  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
    gap: 20px;
  }

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

  .hero-tagline {
    font-size: 0.98rem;
  }

  .hero-bio-short {
    font-size: 0.88rem;
    margin-bottom: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .hero-right {
    width: 100%;
    align-items: flex-start;
  }

  .live-clock-badge {
    width: 100%;
    justify-content: center;
  }

  .projects-header-flex,
  .skills-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .project-filters,
  .skill-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn,
  .skill-filter-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .tech-ecosystem-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .panel { padding: 18px; }
}

@media (max-width: 480px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-number { font-size: 1.6rem; }
  .stat-card { padding: 14px 10px; }
  .mobile-brand { font-size: 0.98rem; }
}

/* ==========================================
   SELECTION STYLE
   ========================================== */
::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: #fff;
}
