/* ==========================================================================
   ER. ASHISH KUMAR - LEAD DEVSECOPS & CLOUD PLATFORM ARCHITECT PORTFOLIO
   Design System & Modern Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-pill: rgba(56, 189, 248, 0.08);
  --bg-pill-hover: rgba(56, 189, 248, 0.16);
  --bg-terminal: #050811;

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-bright: rgba(56, 189, 248, 0.35);
  --border-card: rgba(255, 255, 255, 0.07);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-sky: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-pill: rgba(2, 132, 199, 0.08);
  --bg-pill-hover: rgba(2, 132, 199, 0.16);
  --bg-terminal: #0f172a;

  --border-subtle: rgba(148, 163, 184, 0.25);
  --border-bright: rgba(2, 132, 199, 0.4);
  --border-card: rgba(0, 0, 0, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #0284c7;

  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #7c3aed 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.12), transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Background Ambient Glow & Grid */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

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

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.88);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none !important;
}

.brand-badge {
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.brand-text {
  letter-spacing: -0.3px;
}

.brand-sub {
  color: var(--text-accent);
  font-weight: 500;
}

/* Right-aligned Navigation Cluster (Links + Icons) */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

/* 3 Navigation Links: Experience, Skills, Certs */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none !important;
  position: relative;
  padding: 0.35rem 0;
  letter-spacing: -0.1px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-accent);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Subtle Vertical Divider between Links & Action Icons */
.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

/* Nav Actions (Icons & Dropdowns) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Dropdown Wrapper & Trigger Buttons */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.15rem;
  position: relative;
}

.nav-icon-btn:hover, .nav-icon-btn.active {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* Dedicated PDF Action Button with Red Accent */
.nav-pdf-btn {
  border-color: rgba(239, 68, 68, 0.35);
}

.nav-pdf-btn:hover, .nav-pdf-btn.active {
  border-color: rgba(239, 68, 68, 0.7) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28) !important;
}

/* Floating Dropdown Menus */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 290px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(56, 189, 248, 0.15);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-header {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-accent);
  margin-bottom: 0.4rem;
}

.dropdown-val-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.dropdown-copy-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-accent);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropdown-copy-btn:hover {
  border-color: var(--border-bright);
  background: var(--border-bright);
  color: #ffffff;
}

.dropdown-action-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.dropdown-action-link:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem 0;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.btn-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge-wrapper {
  margin-bottom: 1.3rem;
}

.live-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 0.82rem;
  color: var(--accent-emerald);
  line-height: 1.45;
}

.live-badge .pulse-dot {
  margin-top: 5px;
}

.badge-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.badge-role {
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 0.84rem;
}

.badge-loc {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0.6;
  animation: pulseRing 1.8s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.14;
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: 1.3rem;
  font-family: var(--font-display);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* --- HERO INTERACTIVE TERMINAL CLI --- */
.hero-terminal-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-buttons {
  display: flex;
  gap: 0.45rem;
}

.term-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.term-btn.red { background: #ef4444; }
.term-btn.yellow { background: #f59e0b; }
.term-btn.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Terminal Quick Command Chips Bar */
.terminal-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.term-hint-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-hint-btn:hover {
  color: var(--text-accent);
  border-color: var(--border-bright);
}

/* Terminal Interactive Output Body */
.terminal-body {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.6;
  height: 310px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.term-prompt {
  color: var(--accent-emerald);
  font-weight: 600;
}

.term-cmd {
  color: #f8fafc;
  font-weight: 600;
}

.term-output {
  margin: 0.25rem 0 0.8rem;
  color: #94a3b8;
}

.term-key {
  color: #f472b6;
}

.term-val-str {
  color: #a7f3d0;
}

.term-val-num {
  color: #fbbf24;
}

/* Terminal Input Bar */
.terminal-input-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-subtle);
  padding: 0.7rem 1.1rem;
  gap: 0.6rem;
}

.terminal-prompt-sym {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: bold;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #f8fafc;
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--text-accent);
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}

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

/* --- METRICS COUNTER BAR --- */
.metrics-section {
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-value .unit {
  font-size: 1.6rem;
  color: var(--text-accent);
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- SECTION HEADINGS --- */
.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.8rem;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 0.75rem;
}

.section-description {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* --- ARCHITECTURE PILLARS (CORE CAPABILITIES) --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.pillar-card p {
  font-size: 0.93rem;
  line-height: 1.62;
  margin-bottom: 1.2rem;
}

.pillar-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--bg-pill);
  color: var(--text-accent);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* --- INTERACTIVE SKILLS SECTION --- */
.skills-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.filter-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.skills-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.skill-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  transition: all var(--transition-base);
  position: relative;
}

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

.skill-box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.skill-icon {
  font-size: 1.25rem;
}

.skill-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-tag-item {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--bg-pill);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* --- EXPERIENCE TIMELINE --- */
.timeline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--border-subtle) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.8rem;
}

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

.timeline-marker {
  position: absolute;
  left: 17px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  border-color: var(--accent-sky);
}

.exp-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all var(--transition-base);
}

.exp-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.exp-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.exp-company {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-accent);
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.exp-tag {
  background: var(--bg-pill);
  color: var(--text-accent);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

.exp-stack-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  background: var(--bg-pill);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0 1rem;
  border-left: 3px solid var(--accent-cyan);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.exp-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--text-accent);
  font-weight: bold;
}

.exp-bullets strong {
  color: var(--text-primary);
}

/* Early Career Table inside Timeline */
.early-career-card {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid var(--border-subtle);
}

.early-item {
  display: grid;
  grid-template-columns: 180px 1fr 140px;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  align-items: center;
}

.early-item:last-child {
  border-bottom: none;
}

.early-company {
  font-weight: 700;
  color: var(--text-primary);
}

.early-desc {
  color: var(--text-secondary);
}

.early-date {
  text-align: right;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* --- CERTIFICATIONS & EDUCATION --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
}

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

.cert-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.cert-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cert-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-accent);
  margin-top: 0.8rem;
  background: var(--bg-pill);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  background: var(--bg-secondary);
  transition: background var(--transition-base);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--text-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-lg);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: auto;
    padding: 0.75rem 0;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-menu {
    gap: 1.2rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .early-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .early-date {
    text-align: left;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .timeline-wrapper::before {
    left: 12px;
  }
  .timeline-marker {
    left: 5px;
  }
  .timeline-item {
    padding-left: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}
