/* ==========================================================================
   Jack Hao Portfolio — Modern Design System (Linear / Vercel Aesthetic)
   ========================================================================== */

:root {
  /* Color Palette - Deep Slate / Zinc Dark Theme */
  --bg-primary: #090a10;
  --bg-secondary: #0f121d;
  --bg-tertiary: #161b2a;
  --bg-card: rgba(18, 23, 37, 0.7);
  --bg-card-hover: rgba(26, 33, 53, 0.85);
  --bg-glass: rgba(15, 18, 29, 0.65);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(129, 140, 248, 0.3);

  /* Brand Accents */
  --accent-primary: #6366f1;
  /* Indigo */
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #06b6d4;
  /* Cyan */
  --accent-emerald: #10b981;
  /* Emerald Green */
  --accent-amber: #f59e0b;
  /* Amber */
  --accent-purple: #a855f7;
  /* Purple */
  --accent-rose: #f43f5e;
  /* Rose */

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glows */
  --glow-indigo: 0 0 50px -10px rgba(99, 102, 241, 0.35);
  --glow-cyan: 0 0 50px -10px rgba(6, 182, 212, 0.3);
  --glow-emerald: 0 0 50px -10px rgba(16, 185, 129, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  /* Layout */
  --container-max: 1140px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Ambient Glow Backgrounds */
.glow-bg {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  z-index: 0;
}

.top-glow {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, #6366f1 0%, #06b6d4 100%);
}

.right-glow {
  top: 35%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #a855f7 0%, #3b82f6 100%);
  opacity: 0.12;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: #38bdf8;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 6px 26px 0 rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-accent {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-secondary {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-pulse {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
}

.badge-pulse::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(9, 10, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-base), border var(--transition-base);
}

.site-header.scrolled {
  background: rgba(9, 10, 16, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-symbol {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

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

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

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

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Status Pill */
.status-pill-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.opportunity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #a5b4fc;
}

/* Hero Typography */
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-heading);
}

.name-highlight {
  color: #ffffff;
}

.hero-role {
  display: inline-block;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 800;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 840px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-lead strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Hero Socials */
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.copy-email-btn {
  cursor: pointer;
}

.copy-badge {
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

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

/* ==========================================================================
   Bento Grid & Projects
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Card Sizing in Bento */
.bento-card-large {
  grid-column: span 6;
}

.bento-card-medium {
  grid-column: span 6;
}

.bento-card-small {
  grid-column: span 3;
}

/* Hero Cards Special Styling */
.prompt-havoc-card {
  border-color: rgba(99, 102, 241, 0.25);
}

.prompt-havoc-card:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

.mock-havoc-card {
  border-color: rgba(6, 182, 212, 0.25);
}

.mock-havoc-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.2);
}

.pte-rs-card {
  border-color: rgba(245, 158, 11, 0.25);
}

.pte-rs-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.2);
}

.bento-card-full {
  grid-column: span 12;
}

.enterprise-card {
  grid-column: span 12;
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(18, 23, 37, 0.7) 100%);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.project-name a:hover {
  color: var(--accent-secondary);
}

.project-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: #93c5fd;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.highlight-icon {
  font-size: 1rem;
  line-height: 1;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

.link-icon {
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.link-icon:hover {
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline-container {
  position: relative;
  padding-left: 32px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.timeline-block {
  position: relative;
  margin-bottom: 40px;
}

.timeline-block:last-child {
  margin-bottom: 0;
}

.timeline-dot-wrapper {
  position: absolute;
  left: -32px;
  top: 24px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
}

.timeline-dot.pulse-dot {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 12px #10b981;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(14px);
  transition: all var(--transition-base);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.timeline-block.current-role .timeline-card {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(18, 23, 37, 0.7) 100%);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.role-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
}

.company-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.role-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.role-period {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
}

.role-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.role-bullets {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.role-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.role-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chip {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(99, 102, 241, 0.08);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Skills Matrix Section
   ========================================================================== */
.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  transition: all var(--transition-base);
}

.skill-category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bg-purple-glow {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.bg-blue-glow {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.bg-emerald-glow {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bg-amber-glow {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}

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

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  font-size: 0.825rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.skill-pill.active-pill {
  background: rgba(99, 102, 241, 0.12);
  color: #e0e7ff;
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 500;
}

/* ==========================================================================
   Education & Certifications
   ========================================================================== */
.edu-certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: transform var(--transition-base);
}

.edu-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.edu-year {
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

.edu-school {
  font-size: 0.925rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.edu-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.cert-icon-wrap {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.cert-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.contact-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-top: 16px;
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Resume Modal & Print Area
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #0f121d;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

.modal-close-btn {
  color: var(--text-secondary);
  font-size: 1.25rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
}

/* Printable Resume Sheet */
.resume-sheet {
  background: #ffffff;
  color: #1e293b;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

.resume-sheet-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.resume-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.resume-sheet-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4338ca;
  margin-bottom: 4px;
}

.resume-contact-line {
  font-size: 0.85rem;
  color: #64748b;
}

.resume-contact-line a {
  color: #2563eb;
  text-decoration: underline;
}

.resume-section {
  margin-bottom: 20px;
}

.resume-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.resume-p {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.55;
}

.resume-entry {
  margin-bottom: 14px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #0f172a;
}

.entry-sub {
  font-size: 0.825rem;
  color: #475569;
  font-weight: 500;
  margin-bottom: 4px;
}

.entry-list {
  list-style-type: disc;
  padding-left: 18px;
}

.entry-list li {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 3px;
  line-height: 1.45;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.6s;
}

/* ==========================================================================
   Print Styles (Optimized for One-Click PDF Export)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  .modal-backdrop,
  .modal-dialog,
  .modal-body,
  .print-area,
  .print-area * {
    visibility: visible;
  }

  .modal-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent;
    padding: 0;
    display: block !important;
    opacity: 1 !important;
  }

  .modal-dialog {
    box-shadow: none;
    border: none;
    max-width: 100%;
    margin: 0;
  }

  .modal-header,
  .site-header,
  .site-footer,
  .glow-bg,
  .toast {
    display: none !important;
  }

  .modal-body {
    padding: 0;
    overflow: visible;
  }

  .resume-sheet {
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-card-large {
    grid-column: span 12;
  }

  .bento-card-medium {
    grid-column: span 12;
  }

  .bento-card-small {
    grid-column: span 6;
  }

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

  .skills-matrix-grid {
    grid-template-columns: 1fr;
  }

  .edu-certs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(9, 10, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    transition: transform var(--transition-base);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .bento-card-small {
    grid-column: span 12;
  }

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

  .hero-socials {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-badge {
    margin-left: 0;
  }

  .card-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .role-meta {
    align-items: flex-start;
  }

  .resume-sheet {
    padding: 20px;
  }
}