/* ==============================================================================
   PORTFOLIO STYLE_LIGHT.CSS — GOOGLE ANTIGRAVITY LIGHT EDITION
   Ultra-Clean, High-Contrast, Sleek Typography & Particle Physics
   ============================================================================== */

/* ── CSS Custom Properties & Design Tokens ── */
:root {
  /* Google Antigravity Accents */
  --g-blue: #4285F4;
  --g-red: #EA4335;
  --g-yellow: #FBBC05;
  --g-green: #34A853;
  --g-purple: #8B5CF6;
  --g-slate: #0F172A;

  /* Theme Brand Tokens */
  --primary: #0F172A;
  --primary-accent: #2563EB;
  --primary-glow: rgba(37, 99, 235, 0.12);
  --accent: #EA4335;
  --accent-glow: rgba(234, 67, 53, 0.12);

  /* Backgrounds */
  --bg-base: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);
  --bg-pill: #F1F5F9;
  --bg-pill-hover: #E2E8F0;

  /* Borders */
  --border: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.05);
  --border-strong: rgba(15, 23, 42, 0.15);
  --border-glow: rgba(66, 133, 244, 0.35);

  /* Typography Colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-on-dark: #FFFFFF;

  /* Layout & Dimensions */
  --nav-h: 72px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 8px 28px -4px rgba(15, 23, 42, 0.04), 0 3px 8px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 44px -6px rgba(15, 23, 42, 0.08), 0 8px 18px -3px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 35px rgba(66, 133, 244, 0.18);

  /* Spectrum Glow — Antigravity multi-colour aura */
  --spectrum-opacity: 0.55;
  --spectrum-opacity-hover: 0.80;
  --spectrum-blur: 32px;
  --spectrum-blur-hover: 40px;
  --spectrum-spread: -6px;
  --spectrum-gradient: conic-gradient(
    from 210deg,
    rgba(66,133,244,0.82)  0deg,
    rgba(234,67,53,0.70)   80deg,
    rgba(251,188,5,0.65)   155deg,
    rgba(52,168,83,0.70)   220deg,
    rgba(66,133,244,0.82)  280deg,
    rgba(139,92,246,0.60)  340deg,
    rgba(66,133,244,0.82)  360deg
  );

  /* Transitions & Fonts */
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background-color: var(--bg-base);
  color-scheme: light;
}

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: var(--font); }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Accessibility ── */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-nav:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Container ── */
.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* ── Section Base ── */
.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-pill);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── Antigravity Styled Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: var(--bg-pill);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full { width: 100%; justify-content: center; }

/* ==============================================================================
   NAVIGATION (Frosted Glass & Pill Links)
   ============================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-bracket {
  color: var(--g-blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

.logo-text {
  color: var(--text-primary);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(241, 245, 249, 0.7);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.nav-link {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-surface); }
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

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

.nav-cta {
  padding: 9px 20px;
  background: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}
.nav-cta:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  gap: 6px;
}
.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-link:hover { color: var(--text-primary); background: var(--bg-pill); }

/* ==============================================================================
   HERO SECTION (Google Antigravity Particle Field & Grand Typography)
   ============================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  background: radial-gradient(circle at 50% 35%, #F8FAFC 0%, #FFFFFF 70%);
}

.antigravity-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.18) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(234, 67, 53, 0.14) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}
.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(251, 188, 5, 0.16) 0%, transparent 70%);
  top: 30%; left: 45%;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

.hero-content {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--g-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 168, 83, 0.6);
  animation: pulseGreen 2s ease-in-out infinite;
}

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

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.title-line {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--text-secondary);
}

.title-name {
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.05;
}

.title-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--primary-accent);
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--g-red);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 680px;
}

.hero-desc strong { color: var(--text-primary); font-weight: 600; }
.hero-desc em { color: var(--g-red); font-style: normal; font-weight: 600; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 30px;
  padding: 16px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

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

.stat-num {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-actions .btn {
  padding: 11px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .hero-actions {
    flex-wrap: nowrap;
  }
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: 310px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: visible;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: var(--spectrum-spread);
  border-radius: inherit;
  background: var(--spectrum-gradient);
  filter: blur(var(--spectrum-blur));
  opacity: var(--spectrum-opacity);
  z-index: -1;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.hero-card:hover::before {
  opacity: var(--spectrum-opacity-hover);
  filter: blur(var(--spectrum-blur-hover));
}

.floating {
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.hcard-dots { display: flex; gap: 5px; }
.hcard-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.hcard-dots span:nth-child(1) { background: #EA4335; }
.hcard-dots span:nth-child(2) { background: #FBBC05; }
.hcard-dots span:nth-child(3) { background: #34A853; }

.hcard-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hcard-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 85px;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.chart-bar {
  flex: 1;
  background: #E2E8F0;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  transition: var(--transition);
}

.chart-bar.active {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.chart-bar.active span { color: white; font-weight: 700; }
.chart-bar span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hcard-stats {
  display: flex;
  justify-content: space-between;
}

.hstat { display: flex; flex-direction: column; gap: 2px; }
.hstat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}
.hstat span:not(.hstat-val) {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 320px;
}

.tech-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.tech-tag:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-1px);
}
.tech-tag.highlight {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-indicator span {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 0.4; }
}

/* ==============================================================================
   ABOUT SECTION
   ============================================================================== */
.about-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.photo-frame {
  position: relative;
  width: 300px;
  height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.photo-frame:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.photo-frame:hover .profile-img { transform: scale(1.04); }

.photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(15, 23, 42, 0.4) 100%);
  pointer-events: none;
}

.about-photo-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.about-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-role {
  font-size: 0.95rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin-bottom: 24px;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 28px;
}
.about-text p { margin-bottom: 16px; }
.about-text strong { color: var(--text-primary); font-weight: 600; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.highlight-item:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-pill);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ==============================================================================
   CAREER TIMELINE SECTION
   ============================================================================== */
.timeline-section { background: var(--bg-base); }

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-left: 36px;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: #E2E8F0;
}

.timeline-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 36px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid #94A3B8;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-card.current .timeline-dot {
  border-color: var(--primary-accent);
  background: var(--primary-accent);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.15);
}

.timeline-period {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.timeline-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ==============================================================================
   SKILLS & MASTERY MATRIX
   ============================================================================== */
.skills-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.skill-category {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.skill-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-pill);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.skill-category h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

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

.skill-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.skill-tag:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}
.skill-tag.primary {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
  font-weight: 700;
}

/* ==============================================================================
   PORTFOLIO PROJECTS SECTION (14 Systems & Creative Showcases)
   ============================================================================== */
.projects-section { background: var(--bg-base); }

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover {
  background: var(--bg-pill);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: visible;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: var(--spectrum-spread);
  border-radius: inherit;
  background: var(--spectrum-gradient);
  filter: blur(var(--spectrum-blur));
  opacity: calc(var(--spectrum-opacity) * 0.7);
  z-index: -1;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}
.project-card:hover::before {
  opacity: var(--spectrum-opacity-hover);
  filter: blur(var(--spectrum-blur-hover));
}

/* Spatial Featured Card (SketchUp / Enscape 3D) */
.featured-spatial-card {
  grid-column: 1 / -1;
  border-color: rgba(230, 126, 34, 0.35);
  background: #FFFFFF;
  box-shadow: 0 10px 35px -5px rgba(230, 126, 34, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* Mockup Frames */
.project-mockup {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 4px;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
}

.mockup-dots { display: flex; gap: 4px; }
.mockup-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #EA4335; }
.mockup-dots span:nth-child(2) { background: #FBBC05; }
.mockup-dots span:nth-child(3) { background: #34A853; }

.mockup-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.mockup-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
  max-height: 420px;
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-mockup {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #F1F5F9;
}

.mockup-img-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
}

.card-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.project-card:hover .card-hero-img { transform: scale(1.04); }

.mockup-content {
  padding: 14px 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F8FAFC;
}

.mock-stat-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-badge-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.mock-badge-pill.highlight {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.mock-graph-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 60px;
}
.mock-graph-lines span {
  display: block;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.mock-bars-visual {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  width: 40px;
}
.mbar {
  flex: 1;
  background: #CBD5E1;
  border-radius: 2px 2px 0 0;
}
.mbar.active { background: var(--primary); }

.mock-geo-ring {
  width: 22px; height: 22px;
  border: 2px solid var(--primary-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGreen 2s infinite;
}
.mock-geo-dot {
  width: 6px; height: 6px;
  background: var(--primary-accent);
  border-radius: 50%;
}

.mock-grid-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.mock-grid-icons span {
  width: 8px; height: 8px;
  background: #94A3B8;
  border-radius: 2px;
}

.mock-receipt-paper {
  width: 32px; height: 24px;
  background: #E2E8F0;
  border-radius: 3px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-receipt-paper span {
  display: block;
  height: 2px;
  background: #64748B;
  border-radius: 1px;
}

/* Project Header & Badges */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.project-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-live { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-pwa { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.badge-android { background: #F5F3FF; color: #5B21B6; border: 1px solid #DDD6FE; }
.badge-iot { background: #FFF7ED; color: #9A3412; border: 1px solid #FFEDD5; }
.badge-ai { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.badge-offline { background: #F8FAFC; color: #475569; border: 1px solid #E2E8F0; }
.badge-wp { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.badge-featured { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.badge-brand { background: #F0FDFA; color: #115E59; border: 1px solid #99F6E4; }
.badge-ads { background: #FEFCE8; color: #854D0E; border: 1px solid #FEF08A; }
.badge-edu { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-photo { background: #FAF5FF; color: #6B21A8; border: 1px solid #E9D5FF; }
.badge-vector { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }

.project-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.68;
  flex: 1;
}
.project-desc strong { color: var(--text-primary); }

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

.project-tech span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-pill);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.feature-dot {
  width: 5px; height: 5px;
  background: var(--primary-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.project-impact-box {
  margin-top: auto;
  padding: 12px 16px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #065F46;
}

.impact-value {
  font-size: 0.84rem;
  color: #064E3B;
  line-height: 1.5;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-card-demo {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-card-demo:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.btn-card-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-card-code:hover {
  background: var(--bg-pill-hover);
  transform: translateY(-1px);
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-card.hidden { display: none !important; }

/* ==============================================================================
   ECOSYSTEM SECTION
   ============================================================================== */
.ecosystem-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.eco-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.eco-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--primary);
  margin: 0 auto 14px;
}

.eco-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.eco-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==============================================================================
   CONTACT SECTION
   ============================================================================== */
.contact-section { background: var(--bg-base); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

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

.contact-intro {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.contact-link {
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: -8px -12px;
}
.contact-link:hover {
  background: var(--bg-pill);
  transform: translateX(6px);
}
.contact-link:hover .contact-value { color: var(--primary-accent); }

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  font-weight: 600;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 14px 18px;
  border-radius: var(--radius);
}

.avail-dot {
  width: 10px; height: 10px;
  background: var(--g-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 168, 83, 0.6);
  animation: pulseGreen 2s ease-in-out infinite;
  flex-shrink: 0;
}

.contact-availability strong { color: #065F46; }

.contact-form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-message.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.footer {
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .logo-bracket { color: var(--g-blue); font-family: var(--font-mono); }
.footer-brand .logo-text { font-weight: 800; color: var(--text-primary); }

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.ai-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  font-weight: 600;
}

/* ==============================================================================
   FLOATING THEME SWITCHER WIDGET
   ============================================================================== */
.floating-theme-switch {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.floating-theme-switch:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  color: white;
}

/* ==============================================================================
   SCROLL REVEAL UTILITIES
   ============================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ==============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content { margin-inline: auto; }
  .hero-title { align-items: center; }
  .title-tagline { justify-content: center; }
  .hero-stats { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-highlights { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .section { padding: 70px 0; }
  /* Hero stats — 3 individual round pills in a row, not one tall oval */
  .hero-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    width: 100%;
    justify-content: center;
  }
  .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 0;
  }
  .stat-divider { display: none; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.68rem; white-space: normal; text-align: center; }
  .about-photo-wrap { width: 100%; max-width: 280px; }
  .photo-frame { width: 100%; max-width: 280px; height: 340px; }
  .timeline-wrapper { padding-left: 20px; }
  .timeline-card { padding: 22px; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Floating theme button — icon-only on mobile so it never covers content */
  .floating-theme-switch {
    bottom: 20px;
    right: 16px;
    padding: 10px 12px;
    font-size: 0;
    gap: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  .floating-theme-switch svg,
  .floating-theme-switch .theme-icon { font-size: 1.1rem; margin: 0; }
  .floating-theme-switch span { display: none; }

  /* Hero badge — allow wrapping on very small screens */
  .hero-badge {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    padding: 6px 14px;
    max-width: calc(100vw - 48px);
  }

  /* Spectrum glow — lighter blur for mobile GPU performance */
  :root {
    --spectrum-blur: 18px;
    --spectrum-blur-hover: 24px;
    --spectrum-opacity: 0.40;
    --spectrum-opacity-hover: 0.65;
    --spectrum-spread: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .orb { animation: none !important; }
  .floating { animation: none !important; }
  .badge-dot { animation: none !important; }
  .cursor { animation: none !important; }
  .scroll-arrow { animation: none !important; }
}

/* ==============================================================================
   ANTIGRAVITY SPECTRUM GLOW — Timeline, Skill & Eco Cards
   ============================================================================== */

/* ── Timeline cards ── */
.timeline-card {
  position: relative;
  overflow: visible;
}
.timeline-card::before {
  content: '';
  position: absolute;
  inset: var(--spectrum-spread);
  border-radius: inherit;
  background: var(--spectrum-gradient);
  filter: blur(var(--spectrum-blur));
  opacity: calc(var(--spectrum-opacity) * 0.55);
  z-index: -1;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}
.timeline-card:hover::before {
  opacity: var(--spectrum-opacity-hover);
  filter: blur(var(--spectrum-blur-hover));
}

/* ── Skill category cards ── */
.skill-category {
  position: relative;
  overflow: visible;
}
.skill-category::before {
  content: '';
  position: absolute;
  inset: calc(var(--spectrum-spread) + 2px);
  border-radius: inherit;
  background: var(--spectrum-gradient);
  filter: blur(calc(var(--spectrum-blur) + 4px));
  opacity: calc(var(--spectrum-opacity) * 0.45);
  z-index: -1;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}
.skill-category:hover::before {
  opacity: calc(var(--spectrum-opacity-hover) * 0.85);
  filter: blur(var(--spectrum-blur-hover));
}

/* ── Eco / contact cards ── */
.eco-card {
  position: relative;
  overflow: visible;
}
.eco-card::before {
  content: '';
  position: absolute;
  inset: var(--spectrum-spread);
  border-radius: inherit;
  background: var(--spectrum-gradient);
  filter: blur(var(--spectrum-blur));
  opacity: calc(var(--spectrum-opacity) * 0.5);
  z-index: -1;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}
.eco-card:hover::before {
  opacity: var(--spectrum-opacity-hover);
  filter: blur(var(--spectrum-blur-hover));
}

/* ── Hero synergy / chart card ── */
.hero-synergy-card {
  position: relative;
  overflow: visible;
}
.hero-synergy-card::before {
  content: '';
  position: absolute;
  inset: var(--spectrum-spread);
  border-radius: inherit;
  background: var(--spectrum-gradient);
  filter: blur(var(--spectrum-blur));
  opacity: calc(var(--spectrum-opacity) * 0.65);
  z-index: -1;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}

/* ── Featured / spatial card ── */
.featured-spatial-card {
  position: relative;
  overflow: visible;
}
.featured-spatial-card::before {
  content: '';
  position: absolute;
  inset: var(--spectrum-spread);
  border-radius: inherit;
  background: var(--spectrum-gradient);
  filter: blur(calc(var(--spectrum-blur) + 6px));
  opacity: calc(var(--spectrum-opacity) * 0.5);
  z-index: -1;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}
.featured-spatial-card:hover::before {
  opacity: var(--spectrum-opacity-hover);
}

/* ══════════════════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER & INTERNATIONAL PROFILES (Upwork, English CV)
   ══════════════════════════════════════════════════════════════════════════════ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.lang-switch-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  line-height: 1.2;
}
.lang-switch-btn:hover {
  color: var(--text-primary);
}
.lang-switch-btn.active {
  background: var(--bg-surface);
  color: var(--g-blue);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* CV Nav Link */
.nav-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  text-decoration: none;
}
.nav-cv-btn:hover {
  background: var(--bg-surface);
  border-color: var(--g-blue);
  color: var(--g-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Upwork Buttons & Badges */
.upwork-icon,
.btn-upwork img,
.contact-item-upwork img,
.badge-upwork-cv img,
.cv-btn-upwork img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}
.btn-upwork {
  background: #14a800 !important;
  color: #ffffff !important;
  border: 1px solid #14a800 !important;
  box-shadow: 0 4px 14px rgba(20, 168, 0, 0.28) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-upwork .upwork-icon,
.btn-upwork img {
  width: 19px !important;
  height: 19px !important;
  max-width: 19px !important;
  max-height: 19px !important;
  filter: brightness(0) invert(1);
}
.btn-upwork:hover {
  background: #118d00 !important;
  border-color: #118d00 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 168, 0, 0.38) !important;
}

.btn-cv-hero {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.btn-cv-hero:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
}

/* Upwork Contact Card */
.contact-item-upwork {
  border-color: rgba(20, 168, 0, 0.25) !important;
  background: rgba(20, 168, 0, 0.03) !important;
}
.contact-item-upwork:hover {
  border-color: #14a800 !important;
  background: rgba(20, 168, 0, 0.08) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 168, 0, 0.15) !important;
}
.contact-item-upwork .contact-item-icon {
  background: rgba(20, 168, 0, 0.14) !important;
  border-color: rgba(20, 168, 0, 0.35) !important;
  color: #14a800 !important;
}

/* Mobile Lang Bar */
.mobile-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-pill);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* ==============================================================================
   HRIS DEEP DIVE MODAL & ADVANCED SYSTEM SHOWCASE
   ============================================================================== */
.btn-hris-deepdive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
  margin-top: 10px;
  text-decoration: none;
}
.btn-hris-deepdive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}
.btn-hris-deepdive svg {
  transition: transform 0.25s ease;
}
.btn-hris-deepdive:hover svg {
  transform: scale(1.15);
}

.hris-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.hris-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hris-modal-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.hris-modal-overlay.active .hris-modal-container {
  transform: translateY(0) scale(1);
}

.hris-modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.hris-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hris-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.hris-modal-subtitle {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.5;
}
.hris-modal-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.hris-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.hris-modal-body {
  padding: 24px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hris-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hris-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  transition: transform 0.2s ease;
}
.hris-metric-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.hris-metric-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: #1e40af;
  line-height: 1.1;
  margin-bottom: 4px;
}
.hris-metric-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hris-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.hris-module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.hris-module-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.09);
  transform: translateY(-2px);
}
.hris-module-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hris-module-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hris-module-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.hris-module-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}
.hris-module-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.83rem;
  color: #334155;
  line-height: 1.55;
}
.hris-module-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hris-module-bullets li::before {
  content: "✓";
  color: #059669;
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.hris-arch-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hris-arch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
}
.hris-arch-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hris-pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hris-pipe-node {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
  min-width: 130px;
}
.hris-pipe-arrow {
  color: #38bdf8;
  font-weight: 900;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hris-modal-header { padding: 18px 20px; }
  .hris-modal-body { padding: 18px 20px 28px; gap: 18px; }
  .hris-modal-title { font-size: 1.2rem; }
  .hris-metrics-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hris-modules-grid { grid-template-columns: 1fr; gap: 14px; }
  .hris-pipeline-row { flex-direction: column; align-items: stretch; }
  .hris-pipe-arrow { transform: rotate(90deg); align-self: center; }
}


