/* Shared Styles for Cyber Handbook */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #050508; }

:root {
  --font-primary: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --text-primary: #f0f4f8;
  --text-secondary: #7b9ab8;
  --text-tertiary: #4ecdc4;
  --text-accent: #e056a0;
  --surface-base: #000000;
  --surface-muted: rgba(20, 30, 40, 0.5);
  --surface-raised: rgba(25, 35, 50, 0.6);
  --surface-strong: rgba(15, 25, 35, 0.8);
  --border-default: rgba(78, 205, 196, 0.15);
  --border-muted: rgba(224, 86, 160, 0.3);
  --space-1: 4px; --space-2: 6px; --space-3: 10px; --space-4: 12px;
  --space-5: 16px; --space-6: 20px; --space-7: 24px; --space-8: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --motion-fast: 200ms;
}

body {
  font-family: var(--font-primary);
  background: transparent;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}
html.lenis, html.lenis body { height: auto; }

#networkBg, #particleBg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none;
}

main, section, .container { position: relative; z-index: 1; }
footer { position: relative; z-index: 0; }

a { color: var(--text-tertiary); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--text-accent); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-6); }

/* Header - Enhanced Cyber Navbar */
header, header.cyber-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-5) 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(78, 205, 196, 0.2);
  box-shadow: 0 4px 30px rgba(78, 205, 196, 0.1), 0 1px 0 rgba(78, 205, 196, 0.15);
  transition: all 0.3s ease;
}
header:hover, header.cyber-nav:hover {
  box-shadow: 0 8px 40px rgba(78, 205, 196, 0.15), 0 1px 0 rgba(78, 205, 196, 0.25);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-5); }

/* Logo with glow */
.logo {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
  transition: all 0.3s ease;
  position: relative;
}
.logo:hover {
  color: #5ff5ec;
  text-shadow: 0 0 20px rgba(78, 205, 196, 0.8), 0 0 40px rgba(78, 205, 196, 0.4);
  transform: scale(1.02);
}

/* Navigation */
nav { display: flex; align-items: center; gap: var(--space-2); }
.nav-dropdown { display: inline-flex; align-items: center; }

/* Nav Links with enhanced effects */
nav > a, nav > .nav-dropdown > a {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
nav > a:hover, nav > .nav-dropdown > a:hover {
  color: var(--text-tertiary);
  background: rgba(78, 205, 196, 0.08);
  text-shadow: 0 0 8px rgba(78, 205, 196, 0.4);
}
/* Push-down/press effect on click */
nav > a:active, nav > .nav-dropdown > a:active {
  transform: translateY(2px) scale(0.98);
  background: rgba(78, 205, 196, 0.15);
}
nav > a.active {
  color: var(--text-tertiary);
  background: rgba(78, 205, 196, 0.1);
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* Nav Arrow */
.nav-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Mega Menu Dropdown */
.nav-dropdown { position: static; }
.dropdown-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(6, 10, 18, 0.97);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(78, 205, 196, 0.2);
  border-bottom: 1px solid rgba(78, 205, 196, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9990;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(78,205,196,0.06);
  padding: 28px 0 32px;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu .mm-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
}
.dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.18s ease;
  flex: 1;
  min-width: 160px;
  border: 1px solid transparent;
}
.dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(78, 205, 196, 0.07);
  border-color: rgba(78, 205, 196, 0.18);
  transform: translateY(-1px);
}
.dropdown-menu a::before { display: none; }
.mm-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  filter: drop-shadow(0 0 6px rgba(78,205,196,0.3));
}
.mm-text { display: flex; flex-direction: column; gap: 3px; }
.mm-label { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1; }
.mm-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.dropdown-menu a:hover .mm-label { color: var(--text-tertiary); }
html.light .dropdown-menu {
  background: rgba(255,255,255,0.97);
  border-color: rgba(13,148,136,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
html.light .dropdown-menu a:hover {
  background: rgba(13,148,136,0.06);
  border-color: rgba(13,148,136,0.2);
}
html.light .dropdown-menu a:hover .mm-label { color: var(--text-tertiary); }
/* ========== LIGHT THEME ========== */
html.light {
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-tertiary: #0d9488;
  --text-accent: #be185d;
  --surface-base: #ffffff;
  --surface-muted: rgba(240, 245, 250, 0.8);
  --surface-raised: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(248, 250, 252, 0.95);
  --border-default: rgba(13, 148, 136, 0.2);
  --border-muted: rgba(190, 24, 93, 0.2);
}
html.light { background: #f8fafc; }
html.light body { background: #f8fafc; }
html.light #networkBg, html.light #particleBg { opacity: 0.3; }
html.light header, html.light header.cyber-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(13, 148, 136, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
html.light .logo { color: var(--text-tertiary); text-shadow: none; }
html.light .logo:hover { color: #0f766e; text-shadow: none; }
html.light nav > a, html.light nav > .nav-dropdown > a { color: var(--text-secondary); }
html.light nav > a:hover, html.light nav > .nav-dropdown > a:hover {
  color: var(--text-tertiary); background: rgba(13, 148, 136, 0.08); text-shadow: none;
}
html.light nav > a.active { color: var(--text-tertiary); background: rgba(13, 148, 136, 0.1); text-shadow: none; }
html.light .dropdown-menu { background: rgba(255,255,255,0.98); border-color: rgba(13, 148, 136, 0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
html.light .dropdown-menu a { color: var(--text-secondary); }
html.light .dropdown-menu a:hover { color: var(--text-tertiary); background: rgba(13,148,136,0.06); border-color: rgba(13,148,136,0.2); }
html.light .nav-toggle span { background: var(--text-tertiary); }
html.light .hero::before { background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%); }
html.light .hero h1 { background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-tertiary) 50%, var(--text-accent) 100%); -webkit-background-clip: text; background-clip: text; }
html.light .card, html.light .metric, html.light .exp-item, html.light .achievement-card {
  background: var(--surface-raised); border-color: var(--border-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
html.light .card:hover, html.light .metric:hover, html.light .exp-item:hover, html.light .achievement-card:hover {
  border-color: var(--text-tertiary); box-shadow: 0 8px 24px rgba(13, 148, 136, 0.12);
}
html.light .tool-card {
  background: var(--surface-raised); border-color: var(--border-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
html.light .tool-card:hover { border-color: var(--text-tertiary); box-shadow: 0 12px 40px rgba(13, 148, 136, 0.15); }
html.light .slide-panel, html.light .slide-panel-right {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
  box-shadow: 10px 0 60px rgba(0, 0, 0, 0.15);
}
html.light .slide-panel-header { background: linear-gradient(90deg, rgba(13, 148, 136, 0.08), rgba(13, 148, 136, 0.02)); }
html.light .slide-panel-body select, html.light .slide-panel-body input, html.light .slide-panel-body textarea,
html.light .gm-body select, html.light .gm-body input, html.light .gm-body textarea,
html.light .tool-modal-body select, html.light .tool-modal-body input, html.light .tool-modal-body textarea {
  background: rgba(248,250,252,0.9) !important; border-color: rgba(13,148,136,0.25); color: var(--text-primary); backdrop-filter: none;
}
html.light .slide-panel-body select option, html.light .gm-body select option, html.light .tool-modal-body select option {
  background: #f8fafc; color: var(--text-primary);
}
html.light .gm-body .sec, html.light .gm-body .ic { background: rgba(248,250,252,0.6); border-color: rgba(13,148,136,0.15); }
html.light .gm-body .out { background: rgba(248,250,252,0.95); border-color: rgba(13,148,136,0.2); color: var(--text-primary); }
html.light .gm-box { background: linear-gradient(160deg, rgba(255,255,255,0.99), rgba(248,250,252,1)); border-color: rgba(13,148,136,0.25); }
html.light .gm-header { border-bottom-color: rgba(13,148,136,0.15); }
html.light .gm-close { border-color: rgba(13,148,136,0.25); background: rgba(13,148,136,0.06); }
html.light .gm-close:hover { border-color: var(--text-tertiary); color: var(--text-tertiary); }
html.light .tool-modal-body .out { background: rgba(248,250,252,0.95); border-color: rgba(13,148,136,0.2); color: var(--text-primary); }
html.light .tool-modal-body .sec { background: rgba(248,250,252,0.6); border-color: rgba(13,148,136,0.15); }
html.light .tool-modal-body .ic { background: rgba(255,255,255,0.8); border-color: rgba(13,148,136,0.15); }
html.light .slide-panel-body .out { background: rgba(248, 250, 252, 0.95); border-color: rgba(13, 148, 136, 0.2); color: var(--text-primary); }
html.light .slide-panel-body .sec { background: rgba(248, 250, 252, 0.6); border-color: rgba(13, 148, 136, 0.15); }
html.light .slide-panel-body .ic { background: rgba(255, 255, 255, 0.8); border-color: rgba(13, 148, 136, 0.15); }
html.light footer { background: var(--surface-raised); border-top-color: var(--border-default); }
html.light .status-dot { background: var(--text-tertiary); box-shadow: 0 0 10px rgba(13, 148, 136, 0.5); }
html.light .profile-card { border-color: var(--text-tertiary); background: var(--surface-raised); }
html.light .cert { background: var(--surface-muted); border-color: var(--border-default); }
html.light .cert:hover { border-color: var(--text-tertiary); color: var(--text-tertiary); }
html.light .contact-link, html.light .resume-btn {
  background: var(--surface-raised); border-color: var(--border-default);
}
html.light .contact-link:hover, html.light .resume-btn:hover { border-color: var(--text-tertiary); color: var(--text-tertiary); }

/* Logo wrapper */
.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }

/* Theme Toggle Button */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(78, 205, 196, 0.3);
  background: rgba(78, 205, 196, 0.08); color: var(--text-tertiary); cursor: pointer;
  font-size: 16px; display: flex !important; align-items: center; justify-content: center;
  transition: all 0.3s ease; margin-left: 10px; flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--text-tertiary); background: rgba(78, 205, 196, 0.15);
  box-shadow: 0 0 15px rgba(78, 205, 196, 0.3); transform: rotate(15deg);
}
html.light .theme-toggle { border-color: rgba(13, 148, 136, 0.3); background: rgba(13, 148, 136, 0.08); }
html.light .theme-toggle:hover { border-color: var(--text-tertiary); background: rgba(13, 148, 136, 0.15); box-shadow: 0 0 15px rgba(13, 148, 136, 0.3); }
@media (max-width: 1024px) {
  .theme-toggle { 
    width: 36px; height: 36px; font-size: 16px; 
    position: fixed; top: 17px; right: 60px; z-index: 10002;
    margin-left: 0;
  }
  .logo-wrap { display: block; }
  .logo-wrap .theme-toggle { position: fixed; }
}

/* Mobile Nav Toggle */
#nav-check { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  z-index: 10001;
}
.nav-toggle:hover { background: rgba(78, 205, 196, 0.1); }
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-tertiary);
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

/* Responsive Nav */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  
  /* Hamburger to X animation - JS based */
  .nav-toggle.active span:nth-child(1) { 
    transform: rotate(45deg) translate(5px, 5px); 
  }
  .nav-toggle.active span:nth-child(2) { 
    opacity: 0; 
  }
  .nav-toggle.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(5px, -5px); 
  }
  
  /* Hamburger to X animation - CSS checkbox based */
  .cyber-nav #nav-check:checked ~ .header-inner .nav-toggle span:nth-child(1) { 
    transform: rotate(45deg) translate(5px, 5px); 
  }
  .cyber-nav #nav-check:checked ~ .header-inner .nav-toggle span:nth-child(2) { 
    opacity: 0; 
  }
  .cyber-nav #nav-check:checked ~ .header-inner .nav-toggle span:nth-child(3) { 
    transform: rotate(-45deg) translate(5px, -5px); 
  }
  
  nav, nav#mainNav {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 70px) !important;
    background: rgba(5, 5, 8, 0.98) !important;
    backdrop-filter: blur(20px);
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow-y: auto !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Show nav - JS based */
  nav.active, 
  nav#mainNav.active { 
    transform: translateX(0) !important; 
  }
  
  /* Show nav - CSS checkbox based */
  .cyber-nav #nav-check:checked ~ .header-inner nav,
  .cyber-nav #nav-check:checked ~ .header-inner nav#mainNav,
  header #nav-check:checked ~ .header-inner nav { 
    transform: translateX(0) !important; 
  }
  
  nav > a, nav > .nav-dropdown > a {
    padding: 18px 24px !important;
    font-size: 16px !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(78, 205, 196, 0.1) !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary) !important;
  }
  nav > a:hover, nav > .nav-dropdown > a:hover {
    background: rgba(78, 205, 196, 0.08);
    color: var(--text-tertiary) !important;
  }
  
  .nav-arrow { margin-left: auto; transition: transform 0.3s ease; }
  
  /* Mobile dropdown */
  .nav-dropdown { display: block !important; }
  .nav-dropdown .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(0,0,0,0.4) !important;
    margin: 0 !important;
    border: none !important;
    border-left: 3px solid rgba(78,205,196,0.4) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: unset !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 !important;
  }
  .nav-dropdown.open .dropdown-menu {
    max-height: 600px !important;
    padding: 8px 0 !important;
  }
  .nav-dropdown.open .nav-arrow {
    transform: rotate(180deg);
  }
  
  .dropdown-menu .mm-inner { flex-direction: column; gap: 0; padding: 0; }
  .dropdown-menu a {
    padding: 12px 24px 12px 32px !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(78,205,196,0.05) !important;
    min-width: unset !important;
    flex: unset !important;
  }
  .dropdown-menu a:last-child { border-bottom: none !important; }
  .dropdown-menu a:hover { transform: none !important; padding-left: 38px !important; }
  .mm-desc { display: none; }
}

/* Body padding for fixed header */
body { padding-top: 70px; }
.main-content { padding-top: 20px; }
/* Module pages: override the inline 100px top padding to match other pages */
.module-page-container { padding-top: 2rem !important; }

/* Hero */
.hero {
  padding: 60px 0 var(--space-8);
  border-bottom: 1px solid var(--border-default);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 6s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .profile-card { justify-self: center; order: -1; }
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
  display: inline-block;
  padding: 6px 14px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 20px;
  animation: fade-in 0.6s ease-out;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-tertiary) 50%, var(--text-accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 5s ease infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-title {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-6);
  animation: slide-up 0.6s ease-out 0.2s both;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title span { color: var(--text-accent); }
.hero-bio {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  animation: slide-up 0.6s ease-out 0.4s both;
}
.status-bar {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-7);
  font-family: var(--font-mono);
  font-size: 12px;
  flex-wrap: wrap;
  animation: slide-up 0.6s ease-out 0.6s both;
}
.status-item { color: var(--text-secondary); }
.status-item.active {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(78, 205, 196, 0.5); } 50% { opacity: 0.5; box-shadow: 0 0 20px rgba(78, 205, 196, 0.8); } }

/* Profile Card */
.profile-card {
  position: relative; width: 280px; height: 340px;
  border: 2px solid var(--text-tertiary); background: var(--surface-raised); overflow: hidden;
}
.profile-card::before, .profile-card::after {
  content: ''; position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--text-tertiary), var(--text-accent));
}
.profile-card::before { top: 0; }
.profile-card::after { bottom: 0; background: linear-gradient(90deg, var(--text-accent), var(--text-tertiary)); }
.profile-img-container { position: relative; width: 100%; height: 280px; overflow: hidden; }
.profile-img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.15); transition: all 0.4s; }
.profile-img-hover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.profile-img-container:hover .profile-img { opacity: 0; }
.profile-img-container:hover .profile-img-hover { opacity: 1; }
.profile-info {
  padding: var(--space-3) var(--space-4); display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary);
  background: var(--surface-strong); border-top: 1px solid var(--border-default);
}
.profile-status { display: flex; align-items: center; gap: var(--space-2); color: var(--text-tertiary); }
.profile-status::before { content: '●'; animation: pulse 2s infinite; }
.scanlines {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px);
}

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-5); padding: var(--space-7) 0; border-bottom: 1px solid var(--border-default); }
.metric { background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: var(--space-6); transition: all var(--motion-fast); }
.metric:hover { border-color: var(--text-tertiary); transform: translateY(-2px); }
.metric-value { font-size: 36px; font-weight: 700; color: var(--text-tertiary); line-height: 1; }
.metric-label { font-size: 12px; color: var(--text-secondary); margin-top: var(--space-3); text-transform: uppercase; letter-spacing: 0.05em; }

/* Section */
section { padding: var(--space-8) 0; border-bottom: 1px solid var(--border-default); }
section:last-of-type { border-bottom: none; }
.section-header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-7); }
.section-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-accent);
  background: rgba(224, 86, 160, 0.1); padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.1em;
}
.section-title { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* Grid & Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.card {
  background: var(--surface-raised); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: var(--space-6); transition: all var(--motion-fast);
}
.card:hover { border-color: var(--text-tertiary); background: var(--surface-strong); }
.card-tag { font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.05em; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--space-3); }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Certs */
.certs-grid { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cert {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
  background: var(--surface-muted); border: 1px solid var(--border-default);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); transition: all var(--motion-fast);
}
.cert:hover { border-color: var(--text-tertiary); color: var(--text-tertiary); }

/* Experience */
.exp-list { display: flex; flex-direction: column; gap: var(--space-5); }
.exp-item {
  background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: var(--space-6); display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); transition: border-color var(--motion-fast);
}
.exp-item:hover { border-color: var(--text-tertiary); }
.exp-role { font-size: 16px; font-weight: 600; margin-bottom: var(--space-2); }
.exp-company { font-size: 14px; color: var(--text-tertiary); margin-bottom: var(--space-3); }
.exp-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.exp-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
@media (max-width: 640px) { .exp-item { grid-template-columns: 1fr; } .exp-date { order: -1; } }

/* Timeline */
.timeline-visual { padding: var(--space-6) 0; }
.timeline-track { display: flex; justify-content: space-between; position: relative; padding: var(--space-6) 0; }
.timeline-track::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: var(--border-default); transform: translateY(-50%); }
.timeline-track::after { content: ''; position: absolute; top: 50%; left: 0; width: 75%; height: 3px; background: linear-gradient(90deg, var(--text-tertiary), var(--text-accent)); transform: translateY(-50%); }
.timeline-node { position: relative; z-index: 1; text-align: center; }
.node-dot { width: 20px; height: 20px; background: var(--surface-base); border: 3px solid var(--text-tertiary); border-radius: 50%; margin: 0 auto var(--space-4); transition: all 0.3s; }
.timeline-node:hover .node-dot { transform: scale(1.3); box-shadow: 0 0 20px var(--text-tertiary); }
.timeline-node.active .node-dot { background: var(--text-tertiary); box-shadow: 0 0 15px var(--text-tertiary); }
.timeline-node.future .node-dot { border-color: var(--text-accent); border-style: dashed; }
.node-content { display: flex; flex-direction: column; gap: 4px; }
.node-year { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.node-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.node-company { font-size: 11px; color: var(--text-secondary); }
.timeline-milestones { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-7); }
.milestone { background: var(--surface-raised); border: 1px solid var(--border-default); padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); font-size: 12px; transition: all 0.2s; }
.milestone:hover { border-color: var(--text-tertiary); transform: translateY(-2px); }
@media (max-width: 640px) { .timeline-track { flex-wrap: wrap; gap: var(--space-6); justify-content: center; } .timeline-track::before, .timeline-track::after { display: none; } }

/* Achievements */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-5); }
.achievement-card { background: var(--surface-raised); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; transition: all 0.3s; }
.achievement-card:hover { border-color: var(--text-tertiary); transform: translateY(-5px); }
.achievement-icon { font-size: 32px; margin-bottom: var(--space-4); }
.achievement-title { font-size: 14px; font-weight: 600; margin-bottom: var(--space-2); }
.achievement-desc { font-size: 12px; color: var(--text-secondary); }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.contact-link {
  display: flex; align-items: center; gap: var(--space-3); font-size: 14px; color: var(--text-secondary);
  background: var(--surface-raised); border: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); transition: all var(--motion-fast);
}
.contact-link:hover { border-color: var(--text-tertiary); color: var(--text-tertiary); }
.resume-btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); background: var(--surface-raised);
  color: var(--text-secondary); font-weight: 500; font-size: 14px;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); transition: all var(--motion-fast);
}
.resume-btn:hover { border-color: var(--text-tertiary); color: var(--text-tertiary); }

/* Footer */
footer { padding: var(--space-6) 0; border-top: 1px solid var(--border-default); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-5); font-size: 12px; color: var(--text-secondary); }
.footer-status { display: flex; gap: var(--space-5); font-family: var(--font-mono); }
.footer-status .active { color: var(--text-tertiary); }

/* Emoji / icon visibility fix: prevent -webkit-text-fill-color:transparent from gradient
   headings bleeding into emoji and icon elements */
.tool-icon,.achievement-icon,.cmd-item-icon,.news-source-icon,.actor-icon,
[class*="icon"]:not(input),[class*="emoji"]{-webkit-text-fill-color:initial!important}

/* Tool Card Grid - Boxy Layout */
.tool-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-bottom:36px}
.tool-card{background:var(--surface-raised);border:1px solid var(--border-default);border-radius:14px;padding:20px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden}
.tool-card:hover{border-color:var(--text-tertiary);transform:translateY(-4px);box-shadow:0 12px 40px rgba(78,205,196,0.15)}
.tool-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--text-tertiary),var(--text-accent));opacity:0;transition:opacity .3s}
.tool-card:hover::before{opacity:1}
.tool-card-icon{font-size:32px;margin-bottom:12px;display:block}
.tool-card h3{font-size:15px;font-weight:600;margin-bottom:8px;color:var(--text-primary)}
.tool-card p{font-size:12px;color:var(--text-secondary);line-height:1.5}
.tool-card-badge{position:absolute;top:12px;right:12px;font-size:9px;padding:3px 8px;border-radius:4px;font-family:var(--font-mono);text-transform:uppercase}
.tool-card-badge.interactive{background:rgba(78,205,196,0.15);color:var(--text-tertiary)}
.tool-card-badge.reference{background:rgba(168,85,247,0.15);color:#a855f7}

/* ── Global Select / Input Normalizer ── */
select, input[type=text], input[type=number], input[type=search], textarea {
  background: rgba(8,14,24,0.55);
  border: 1px solid rgba(78,205,196,0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  backdrop-filter: blur(4px);
}
select:hover, input[type=text]:hover, input[type=number]:hover, textarea:hover { border-color: rgba(78,205,196,0.4); }
select:focus, input[type=text]:focus, input[type=number]:focus, textarea:focus { border-color: var(--text-tertiary); box-shadow: 0 0 10px rgba(78,205,196,0.15); }
select option { background: #0d1520; color: var(--text-primary); }
html.light select, html.light input[type=text], html.light input[type=number], html.light input[type=search], html.light textarea {
  background: rgba(248,250,252,0.9);
  border-color: rgba(13,148,136,0.25);
  color: var(--text-primary);
  backdrop-filter: none;
}
html.light select option { background: #f8fafc; color: var(--text-primary); }
html.light select:focus, html.light input:focus, html.light textarea:focus { border-color: var(--text-tertiary); box-shadow: 0 0 10px rgba(13,148,136,0.15); }

/* ── Global Tool Modal ── */
.gm-overlay{position:fixed;inset:0;z-index:9998;background:rgba(0,0,0,0.75);backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease;display:flex;align-items:center;justify-content:center;padding:20px}
.gm-overlay.active{opacity:1;visibility:visible}
.gm-box{position:relative;width:100%;max-width:860px;max-height:90vh;background:linear-gradient(160deg,rgba(10,16,26,0.99),rgba(6,10,18,1));border:1px solid rgba(78,205,196,0.3);border-radius:16px;display:flex;flex-direction:column;box-shadow:0 0 80px rgba(0,0,0,0.7),0 0 0 1px rgba(78,205,196,0.08);transform:scale(0.15);opacity:0;transition:transform .38s cubic-bezier(0.34,1.56,0.64,1),opacity .25s ease}
.gm-overlay.active .gm-box{transform:scale(1);opacity:1}
.gm-header{padding:18px 24px 14px;display:flex;align-items:center;gap:14px;border-bottom:1px solid rgba(78,205,196,0.12);flex-shrink:0}
.gm-header .panel-icon{font-size:28px;filter:drop-shadow(0 0 8px rgba(78,205,196,0.4))}
.gm-header h2{font-size:17px;font-weight:600;flex:1;color:var(--text-primary)}
.gm-close{width:34px;height:34px;border-radius:8px;border:1px solid rgba(78,205,196,0.25);background:rgba(78,205,196,0.06);color:var(--text-secondary);cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.gm-close:hover{border-color:rgba(78,205,196,0.6);color:#4ecdc4;transform:rotate(90deg)}
.gm-body{flex:1;overflow-y:auto;padding:22px 24px 32px;scrollbar-width:thin;scrollbar-color:rgba(78,205,196,0.3) transparent}
.gm-body select,.gm-body input[type=text],.gm-body input[type=number],.gm-body textarea{background:rgba(8,14,24,0.55);border:1px solid rgba(78,205,196,0.2);border-radius:10px;color:var(--text-primary);font-family:var(--font-mono);font-size:12px;padding:10px 14px;outline:none;transition:all .3s ease;backdrop-filter:blur(4px);width:100%}
.gm-body select option{background:#0d1520;color:var(--text-primary)}
.gm-body select:focus,.gm-body input:focus,.gm-body textarea:focus{border-color:var(--text-tertiary);box-shadow:0 0 12px rgba(78,205,196,0.15)}
.gm-body::-webkit-scrollbar{width:5px}
.gm-body::-webkit-scrollbar-thumb{background:rgba(78,205,196,0.3);border-radius:3px}
/* Tool Modal - Legacy support */
.tool-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.85);backdrop-filter:blur(10px);z-index:10000;display:none;align-items:center;justify-content:center;padding:20px}
.tool-modal.active{display:flex}
.tool-modal-content{background:var(--surface-raised);border:1px solid var(--border-default);border-radius:16px;max-width:900px;width:100%;max-height:90vh;overflow-y:auto;position:relative;animation:modalIn .3s ease}
@keyframes modalIn{from{opacity:0;transform:scale(0.95) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}
.tool-modal-header{padding:20px 24px;border-bottom:1px solid var(--border-default);display:flex;align-items:center;gap:14px;position:sticky;top:0;background:var(--surface-raised);z-index:1}
.tool-modal-header h2{font-size:18px;font-weight:600;flex:1}
.tool-modal-close{width:32px;height:32px;border-radius:8px;border:1px solid var(--border-default);background:transparent;color:var(--text-secondary);cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.tool-modal-close:hover{border-color:var(--text-tertiary);color:var(--text-tertiary)}
.tool-modal-body{padding:24px}

/* Slide-in Panel System */

/* Slide Panel - Left (Extended to 50% screen) */
.slide-panel{position:fixed;top:0;left:0;width:50vw;max-width:700px;min-width:320px;height:100vh;background:linear-gradient(135deg,rgba(8,12,20,0.98) 0%,rgba(15,22,35,0.99) 50%,rgba(10,18,28,0.98) 100%);border-right:1px solid rgba(78,205,196,0.25);z-index:9999;transform:translateX(-100%);transition:transform .5s cubic-bezier(0.4,0,0.2,1);overflow:hidden;display:flex;flex-direction:column;box-shadow:10px 0 60px rgba(0,0,0,0.8),0 0 100px rgba(78,205,196,0.08)}
.slide-panel::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(ellipse at top left,rgba(78,205,196,0.06) 0%,transparent 50%),radial-gradient(ellipse at bottom right,rgba(224,86,160,0.04) 0%,transparent 50%);pointer-events:none}
.slide-panel::after{content:'';position:absolute;top:0;right:0;width:1px;height:100%;background:linear-gradient(180deg,transparent,rgba(78,205,196,0.4) 20%,rgba(78,205,196,0.4) 80%,transparent);pointer-events:none}
.slide-panel.active{transform:translateX(0)}

/* Slide Panel - Right (Extended to 50% screen) */
.slide-panel-right{position:fixed;top:0;right:0;left:auto;width:50vw;max-width:700px;min-width:320px;height:100vh;background:linear-gradient(135deg,rgba(10,8,20,0.98) 0%,rgba(20,15,35,0.99) 50%,rgba(12,10,25,0.98) 100%);border-left:1px solid rgba(168,85,247,0.3);border-right:none;z-index:9999;transform:translateX(100%);transition:transform .5s cubic-bezier(0.4,0,0.2,1);overflow:hidden;display:flex;flex-direction:column;box-shadow:-10px 0 60px rgba(0,0,0,0.8),0 0 100px rgba(168,85,247,0.08)}
.slide-panel-right::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(ellipse at top right,rgba(168,85,247,0.06) 0%,transparent 50%),radial-gradient(ellipse at bottom left,rgba(78,205,196,0.04) 0%,transparent 50%);pointer-events:none}
.slide-panel-right::after{content:'';position:absolute;top:0;left:0;width:1px;height:100%;background:linear-gradient(180deg,transparent,rgba(168,85,247,0.5) 20%,rgba(168,85,247,0.5) 80%,transparent);pointer-events:none}
.slide-panel-right.active{transform:translateX(0)}
.slide-panel-right .slide-panel-header{border-bottom:1px solid rgba(168,85,247,0.25);background:linear-gradient(90deg,rgba(168,85,247,0.08),rgba(168,85,247,0.03))}
.slide-panel-right .slide-panel-close{border-color:rgba(168,85,247,0.4);background:rgba(168,85,247,0.08)}
.slide-panel-right .slide-panel-close:hover{border-color:#a855f7;color:#a855f7;background:rgba(168,85,247,0.15);box-shadow:0 0 20px rgba(168,85,247,0.3)}
/* Slide Panel Header - Enhanced */
.slide-panel-header{padding:24px 28px;border-bottom:1px solid rgba(78,205,196,0.2);display:flex;align-items:center;gap:16px;background:linear-gradient(90deg,rgba(78,205,196,0.08),rgba(78,205,196,0.02));flex-shrink:0;position:relative}
.slide-panel-header::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(78,205,196,0.4),transparent)}
.slide-panel-header .panel-icon{font-size:32px;filter:drop-shadow(0 0 8px rgba(78,205,196,0.4))}
.slide-panel-header h2{font-size:18px;font-weight:600;flex:1;color:var(--text-primary);text-shadow:0 0 20px rgba(78,205,196,0.2)}
.slide-panel-close{width:40px;height:40px;border-radius:10px;border:1px solid rgba(78,205,196,0.3);background:rgba(78,205,196,0.08);color:var(--text-secondary);cursor:pointer;font-size:22px;display:flex;align-items:center;justify-content:center;transition:all .3s ease}
.slide-panel-close:hover{border-color:var(--text-tertiary);color:var(--text-tertiary);background:rgba(78,205,196,0.15);box-shadow:0 0 20px rgba(78,205,196,0.3);transform:rotate(90deg)}

/* Slide Panel Body - Enhanced */
.slide-panel-body{flex:1;overflow-y:auto;padding:28px;scrollbar-width:thin;scrollbar-color:rgba(78,205,196,0.3) transparent;position:relative}
.slide-panel-body::-webkit-scrollbar{width:6px}
.slide-panel-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(78,205,196,0.4),rgba(224,86,160,0.4));border-radius:3px}
.slide-panel-body::-webkit-scrollbar-track{background:rgba(0,0,0,0.2)}
.slide-panel-right .slide-panel-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(168,85,247,0.4),rgba(78,205,196,0.4))}

/* Panel Overlay - Enhanced */
.slide-panel-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);backdrop-filter:blur(8px);z-index:9998;opacity:0;visibility:hidden;transition:all .4s ease}
.slide-panel-overlay.active{opacity:1;visibility:visible}
.tool-modal-body .tool-content{padding:0}
.tool-modal-body .sec{margin-top:16px}
.tool-modal-body .sec:first-child{margin-top:0}
.tool-modal-body .sec h4{font-size:12px;color:var(--text-tertiary);font-family:var(--font-mono);margin-bottom:10px}
.tool-modal-body .field-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px;align-items:flex-end}
.tool-modal-body .field-row label{font-size:11px;color:var(--text-secondary);display:block;margin-bottom:4px}
.tool-modal-body .field-row .fg{display:flex;flex-direction:column}
.tool-modal-body input[type=text],.tool-modal-body input[type=number],.tool-modal-body select,.tool-modal-body textarea{background:rgba(8,14,24,0.6);border:1px solid var(--border-default);border-radius:10px;color:var(--text-primary);font-family:var(--font-mono);font-size:12px;padding:7px 10px;outline:none;transition:border-color .2s;backdrop-filter:blur(4px)}
.tool-modal-body input:focus,.tool-modal-body select:focus,.tool-modal-body textarea:focus{border-color:var(--text-tertiary)}
.tool-modal-body select{cursor:pointer;min-width:140px}
.tool-modal-body textarea{resize:vertical;min-height:70px;width:100%}
.tool-modal-body .run-btn{padding:8px 18px;background:linear-gradient(135deg,var(--text-tertiary),var(--text-accent));border:none;border-radius:6px;color:#000;font-weight:700;font-size:12px;cursor:pointer;transition:opacity .2s;white-space:nowrap}
.tool-modal-body .run-btn:hover{opacity:.85}
.tool-modal-body .out{background:#0d1117;border:1px solid rgba(78,205,196,0.15);border-radius:8px;padding:14px;font-family:var(--font-mono);font-size:11px;color:#c9d1d9;margin-top:10px;white-space:pre-wrap;word-break:break-all;line-height:1.7;display:none}
.tool-modal-body .out.show{display:block}

/* Enhanced Panel Form Elements */
.slide-panel-body select,.slide-panel-body input[type=text],.slide-panel-body input[type=number],.slide-panel-body textarea{background:rgba(8,14,24,0.6);border:1px solid rgba(78,205,196,0.2);border-radius:10px;color:var(--text-primary);font-family:var(--font-mono);font-size:12px;padding:10px 14px;outline:none;transition:all .3s ease;box-shadow:inset 0 2px 4px rgba(0,0,0,0.2);backdrop-filter:blur(4px)}
.slide-panel-body select:hover,.slide-panel-body input:hover,.slide-panel-body textarea:hover{border-color:rgba(78,205,196,0.4)}
.slide-panel-body select:focus,.slide-panel-body input:focus,.slide-panel-body textarea:focus{border-color:var(--text-tertiary);box-shadow:inset 0 2px 4px rgba(0,0,0,0.3),0 0 15px rgba(78,205,196,0.2)}
.slide-panel-body select{cursor:pointer;min-width:160px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234ecdc4' d='M6 8L2 4h8z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}
.slide-panel-body select option{background:#0d1520;color:var(--text-primary);padding:10px}
.slide-panel-body textarea{resize:vertical;min-height:80px;width:100%}
.slide-panel-body .run-btn{padding:10px 24px;background:linear-gradient(135deg,var(--text-tertiary),var(--text-accent));border:none;border-radius:8px;color:#000;font-weight:700;font-size:13px;cursor:pointer;transition:all .3s ease;white-space:nowrap;box-shadow:0 4px 15px rgba(78,205,196,0.3)}
.slide-panel-body .run-btn:hover{transform:translateY(-2px);box-shadow:0 6px 25px rgba(78,205,196,0.4)}
.slide-panel-body .run-btn:active{transform:translateY(0)}
.slide-panel-body .out{background:linear-gradient(135deg,rgba(13,17,23,0.9),rgba(8,12,18,0.95));border:1px solid rgba(78,205,196,0.2);border-radius:10px;padding:18px;font-family:var(--font-mono);font-size:12px;color:#c9d1d9;margin-top:14px;white-space:pre-wrap;word-break:break-all;line-height:1.8;display:none;box-shadow:inset 0 2px 10px rgba(0,0,0,0.4)}
.slide-panel-body .out.show{display:block;animation:fadeIn .3s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.slide-panel-body .sec{margin-top:24px;padding:20px;background:rgba(0,0,0,0.2);border-radius:12px;border:1px solid rgba(78,205,196,0.1)}
.slide-panel-body .sec:first-child{margin-top:0}
.slide-panel-body .sec h4{font-size:13px;color:var(--text-tertiary);font-family:var(--font-mono);margin-bottom:14px;text-shadow:0 0 10px rgba(78,205,196,0.3)}
.slide-panel-body .info-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:12px}
.slide-panel-body .ic{background:linear-gradient(135deg,rgba(0,0,0,0.4),rgba(15,20,30,0.5));border:1px solid rgba(78,205,196,0.15);border-radius:10px;padding:16px;transition:all .3s ease}
.slide-panel-body .ic:hover{border-color:rgba(78,205,196,0.3);transform:translateY(-2px);box-shadow:0 5px 20px rgba(0,0,0,0.3)}
.slide-panel-body .ic h5{font-size:14px;font-weight:600;margin-bottom:6px;color:var(--text-primary)}
.slide-panel-body .ic p{font-size:12px;color:var(--text-secondary);line-height:1.6;margin:0}
.slide-panel-body .table{width:100%;border-collapse:collapse;font-size:12px;margin-top:12px;border-radius:8px;overflow:hidden}
.slide-panel-body .table th{text-align:left;padding:12px 14px;background:rgba(78,205,196,0.1);border-bottom:1px solid rgba(78,205,196,0.2);color:var(--text-tertiary);font-family:var(--font-mono);font-size:11px;font-weight:600}
.slide-panel-body .table td{padding:12px 14px;border-bottom:1px solid rgba(255,255,255,0.05);color:var(--text-secondary);background:rgba(0,0,0,0.2)}
.slide-panel-body .table tr:hover td{background:rgba(78,205,196,0.05)}
.slide-panel-body .field-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px;align-items:flex-end}
.slide-panel-body .field-row label{font-size:11px;color:var(--text-secondary);display:block;margin-bottom:6px;text-transform:uppercase;letter-spacing:0.05em}
.slide-panel-body .field-row .fg{display:flex;flex-direction:column}
.slide-panel-body input[type=checkbox]{width:18px;height:18px;accent-color:var(--text-tertiary);cursor:pointer}

/* Purple theme for right panel */
.slide-panel-right .slide-panel-body select,.slide-panel-right .slide-panel-body input,.slide-panel-right .slide-panel-body textarea{border-color:rgba(168,85,247,0.2)}
.slide-panel-right .slide-panel-body select:focus,.slide-panel-right .slide-panel-body input:focus,.slide-panel-right .slide-panel-body textarea:focus{border-color:#a855f7;box-shadow:inset 0 2px 4px rgba(0,0,0,0.3),0 0 15px rgba(168,85,247,0.2)}
.slide-panel-right .slide-panel-body select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a855f7' d='M6 8L2 4h8z'/%3E%3C/svg%3E")}
.slide-panel-right .slide-panel-body .run-btn{background:linear-gradient(135deg,#a855f7,#4ecdc4);box-shadow:0 4px 15px rgba(168,85,247,0.3)}
.slide-panel-right .slide-panel-body .run-btn:hover{box-shadow:0 6px 25px rgba(168,85,247,0.4)}
.slide-panel-right .slide-panel-body .out{border-color:rgba(168,85,247,0.2)}
.slide-panel-right .slide-panel-body .sec{border-color:rgba(168,85,247,0.1)}
.slide-panel-right .slide-panel-body .sec h4{color:#a855f7;text-shadow:0 0 10px rgba(168,85,247,0.3)}
.slide-panel-right .slide-panel-body .ic{border-color:rgba(168,85,247,0.15)}
.slide-panel-right .slide-panel-body .ic:hover{border-color:rgba(168,85,247,0.3)}
.slide-panel-right .slide-panel-body .table th{background:rgba(168,85,247,0.1);border-color:rgba(168,85,247,0.2);color:#a855f7}
.slide-panel-right .slide-panel-body .table tr:hover td{background:rgba(168,85,247,0.05)}
.tool-modal-body .info-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-top:8px}
.tool-modal-body .ic{background:rgba(0,0,0,0.3);border:1px solid var(--border-default);border-radius:8px;padding:12px}
.tool-modal-body .ic h5{font-size:13px;font-weight:600;margin-bottom:4px}
.tool-modal-body .ic p{font-size:11px;color:var(--text-secondary);line-height:1.5;margin:0}
.tool-modal-body .table{width:100%;border-collapse:collapse;font-size:12px;margin-top:8px}
.tool-modal-body .table th{text-align:left;padding:7px 10px;border-bottom:1px solid var(--border-default);color:var(--text-tertiary);font-family:var(--font-mono);font-size:10px;font-weight:500}
.tool-modal-body .table td{padding:7px 10px;border-bottom:1px solid rgba(255,255,255,0.04);color:var(--text-secondary);vertical-align:top}
.tool-modal-body .subsec{margin-top:18px}
.tool-modal-body .subsec h4{font-size:13px;color:var(--text-tertiary);margin-bottom:10px;font-family:var(--font-mono)}
.tool-modal-body .code-block{background:#0d1117;border-radius:8px;padding:14px;font-family:var(--font-mono);font-size:11px;color:#c9d1d9;overflow-x:auto;margin-top:10px;line-height:1.6;border:1px solid rgba(255,255,255,0.06)}
.tool-modal-body .kql-block{background:#0a0f1a;border:1px solid rgba(78,205,196,0.2);border-radius:8px;padding:14px;font-family:var(--font-mono);font-size:11px;color:#c9d1d9;overflow-x:auto;margin-top:8px}
.tool-modal-body .scenario-card{background:rgba(0,0,0,0.3);border:1px solid rgba(239,68,68,0.2);border-radius:10px;padding:16px;margin-top:10px}
.tool-modal-body .tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tool-modal-body .tag{padding:4px 10px;border-radius:4px;font-size:11px;font-family:var(--font-mono)}

/* Scroll Reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--text-tertiary), var(--text-accent)); z-index: 1000; transform-origin: left; transform: scaleX(0); }

/* Card Hover Effects */
.card, .exp-item, .achievement-card, .quick-card, .resource-card, .metric {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glitch Effect */
.glitch-hover { position: relative; }
.glitch-hover::before, .glitch-hover::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none;
}
.glitch-hover:hover::before {
  opacity: 1; color: var(--text-tertiary); animation: glitch-text 0.3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.glitch-hover:hover::after {
  opacity: 1; color: var(--text-accent); animation: glitch-text 0.3s infinite reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes glitch-text {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
  100% { transform: translate(0); }
}

/* Profile Glitch */
.profile-img-container:hover .profile-img { opacity: 0; }
.profile-img-container:hover .profile-img-hover { opacity: 1; animation: glitch 0.15s infinite; }
@keyframes glitch {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -3px); }
  80% { transform: translate(2px, 3px); }
  100% { transform: translate(0, 0); }
}
