/* ===== VARIABLES ===== */
:root {
  --bg: #000000;
  --bg-2: #050505;
  --bg-3: #0a0a0a;
  --bg-card: #0d0d0d;
  --border: rgba(0, 255, 65, 0.12);
  --border-accent: rgba(0, 255, 65, 0.35);
  --accent: #00ff41;
  --accent-dim: #00cc33;
  --accent-glow: rgba(0, 255, 65, 0.08);
  --green: #00ff41;
  --green-dim: #00aa28;
  --green-glow: rgba(0, 255, 65, 0.08);
  --text: #00ff41;
  --text-2: #00aa28;
  --text-3: #005c16;
  --radius: 4px;
  --radius-lg: 6px;
  --font-mono: 'Fira Code', 'Share Tech Mono', 'Courier New', monospace;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 0 20px rgba(0, 255, 65, 0.08);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Subtle scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-mono); font-weight: 700; line-height: 1.2; color: var(--accent); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1rem; }

/* ===== TERMINAL PROMPT PREFIX ===== */
.section-label {
  font-size: 0.78rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}
.section-label::before { content: '> '; color: var(--accent); }
.section-title { margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-2); font-size: 0.9rem; font-family: var(--font-mono); }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; scroll-margin-top: 80px; }
.stats-bar { scroll-margin-top: 80px; }

/* ===== TERMINAL CARD (used everywhere) ===== */
.term-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.term-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 28px;
  background: rgba(0, 255, 65, 0.06);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.term-card::after {
  content: '● ● ●';
  position: absolute; top: 7px; left: 12px;
  font-size: 0.55rem; letter-spacing: 4px;
  color: var(--text-3);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0; transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  color: var(--accent);
}
.nav-logo::before { content: '~/'; color: var(--text-3); }
.nav-logo span { color: var(--text-2); }
.nav-links { display: flex; gap: 0.1rem; align-items: center; }
.nav-links a {
  padding: 0.35rem 0.5rem; font-size: clamp(0.64rem, calc(1.05vw - 1px), 0.82rem);
  white-space: nowrap;
  color: var(--text-2); transition: var(--transition); font-family: var(--font-mono);
  border: 1px solid transparent; border-radius: var(--radius);
}
.nav-links a::before { content: './'; color: var(--text-3); font-size: 0.75rem; }
.nav-links a:hover { color: var(--accent); border-color: var(--border); background: var(--accent-glow); }
.nav-links a.active { color: var(--accent); border-color: var(--border-accent); }
.nav-hire {
  background: var(--accent) !important; color: #000 !important;
  font-weight: 700 !important; border-color: var(--accent) !important;
}
.nav-hire::before { content: '' !important; }
.nav-hire:hover { background: #33ff66 !important; box-shadow: 0 0 15px rgba(0,255,65,0.4) !important; }

/* Scroll progress under navbar */
.scroll-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  overflow: hidden;
}
#scrollProgressBar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.15s ease-out;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.4rem;
  background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 1px; background: var(--accent); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.99);
  z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; color: var(--text-2); transition: var(--transition); }
.mobile-nav a::before { content: '> '; color: var(--text-3); }
.mobile-nav a:hover { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; font-weight: 600;
  font-size: 0.85rem; transition: var(--transition); cursor: pointer;
  border: 1px solid var(--accent); font-family: var(--font-mono);
  border-radius: var(--radius); background: transparent; color: var(--accent);
  will-change: transform;
}
.btn::before { content: '$ '; color: var(--text-3); font-size: 0.8rem; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary::before { content: '$ '; color: rgba(0,0,0,0.5); }
.btn-primary:hover { background: #33ff66; box-shadow: 0 0 20px rgba(0,255,65,0.4); }
.btn-outline:hover { background: var(--accent-glow); box-shadow: 0 0 15px rgba(0,255,65,0.2); }
.btn-green { background: var(--accent); color: #000; }
.btn-green:hover { background: #33ff66; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 0 4rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background: var(--bg);
}
/* Matrix grid */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,65,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center;
}
.hero-available {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border-accent);
  padding: 0.3rem 0.9rem; font-size: 0.78rem;
  font-family: var(--font-mono); color: var(--accent);
  margin-bottom: 1.25rem; background: var(--accent-glow);
  border-radius: var(--radius);
}
.hero-available::before {
  content: ''; width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; animation: blink-dot 1s step-end infinite;
  box-shadow: 0 0 6px var(--accent);
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
.hero-name { margin-bottom: 0.5rem; }
.hero-name::before { content: '$ whoami\A'; white-space: pre; font-size: 0.78rem; color: var(--text-3); display: block; margin-bottom: 0.25rem; }
.hero-name .accent { color: var(--accent); text-shadow: 0 0 20px rgba(0,255,65,0.4); }
.hero-title {
  font-family: var(--font-mono); font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-2); margin-bottom: 1.25rem;
}
.hero-title::before { content: '> role: '; color: var(--text-3); }
.typing-caret { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-desc {
  color: var(--text-2); font-size: 0.88rem; max-width: 520px;
  line-height: 1.9; margin-bottom: 2rem; font-family: var(--font-mono);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-2); font-size: 0.8rem; transition: var(--transition);
  padding: 0.35rem 0.7rem; border: 1px solid transparent;
  border-radius: var(--radius); font-family: var(--font-mono);
  cursor: pointer;
}
.hero-link:hover { color: var(--accent); border-color: var(--border); background: var(--accent-glow); }

/* ===== PHOTO ===== */
.hero-photo-wrap { position: relative; flex-shrink: 0; }
.hero-photo-ring {
  width: 230px; height: 230px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 3px;
  box-shadow: 0 0 0 4px rgba(0,255,65,0.05), 0 0 30px rgba(0,255,65,0.15), inset 0 0 30px rgba(0,255,65,0.03);
  animation: glow-pulse 3s ease-in-out infinite;
  position: relative;
}
.hero-photo-ring::before {
  content: 'photo.jpg';
  position: absolute; top: -24px; left: 0; right: 0;
  font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-3);
  background: rgba(0,255,65,0.06); border: 1px solid var(--border);
  border-bottom: none; padding: 3px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,255,65,0.05), 0 0 20px rgba(0,255,65,0.12); }
  50% { box-shadow: 0 0 0 4px rgba(0,255,65,0.08), 0 0 35px rgba(0,255,65,0.22); }
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}
.hero-photo-ring.photo-missing::after {
  content: '👤';
  position: absolute; inset: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; background: var(--bg-3);
  border-radius: var(--radius);
}
.hero-photo-badge {
  position: absolute; bottom: -12px; right: -8px;
  background: var(--bg); border: 1px solid var(--border-accent);
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  white-space: nowrap; font-family: var(--font-mono);
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0,255,65,0.15);
}

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 2rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner { display: flex; justify-content: center; flex-wrap: wrap; }
.stat-item {
  text-align: center; padding: 0.5rem 3rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700;
  color: var(--accent); line-height: 1;
  text-shadow: 0 0 15px rgba(0,255,65,0.4);
}
.stat-lbl { font-size: 0.75rem; color: var(--text-2); margin-top: 0.25rem; font-family: var(--font-mono); }

/* ===== ABOUT ===== */
#about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--text-2); line-height: 1.9; margin-bottom: 1.25rem; font-size: 0.88rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-highlights { display: flex; flex-direction: column; gap: 1rem; }
.highlight-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  transition: var(--transition); display: flex; gap: 1rem; align-items: flex-start;
  border-left: 3px solid var(--accent-dim);
}
.highlight-card:hover { border-color: var(--border-accent); border-left-color: var(--accent); box-shadow: var(--shadow); }
.highlight-icon {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--accent-glow); border: 1px solid var(--border-accent);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.highlight-card h4 { font-size: 0.85rem; margin-bottom: 0.25rem; color: var(--accent); }
.highlight-card p { font-size: 0.82rem; color: var(--text-2); line-height: 1.5; }

/* ===== SKILLS ===== */
#skills { background: var(--bg-2); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.skill-category {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem 1.5rem 1.5rem;
  transition: var(--transition); position: relative;
}
.skill-category::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background: rgba(0,255,65,0.05); border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.skill-category::after {
  content: '● ● ●';
  position: absolute; top: 7px; left: 10px;
  font-size: 0.5rem; letter-spacing: 4px; color: var(--text-3);
}
.skill-category:hover { border-color: var(--border-accent); box-shadow: var(--shadow); }
.skill-cat-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.skill-cat-icon { font-size: 1rem; }
.skill-cat-header h3 { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.skill-cat-header h3::before { content: '// '; color: var(--text-3); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.2rem 0.6rem; font-size: 0.75rem;
  color: var(--text-2); font-family: var(--font-mono); transition: var(--transition);
}
.skill-tag:hover { border-color: var(--border-accent); color: var(--accent); }
.skill-tag.highlight { border-color: var(--border-accent); color: var(--accent); background: var(--accent-glow); }

/* ===== EXPERIENCE ===== */
#experience { background: var(--bg); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.4rem; top: 6px;
  width: 10px; height: 10px;
  background: var(--accent); border: 1px solid var(--bg);
  box-shadow: 0 0 8px rgba(0,255,65,0.6);
}
.timeline-dot.current {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0,255,65,0.8);
  animation: blink-dot 2s step-end infinite;
}
.timeline-header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.timeline-company {
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--accent);
  text-shadow: 0 0 10px rgba(0,255,65,0.3);
}
.timeline-badge {
  font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.6rem;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid var(--border-accent); font-family: var(--font-mono);
  border-radius: var(--radius);
}
.timeline-badge.current { animation: blink-border 2s ease-in-out infinite; }
@keyframes blink-border {
  0%,100% { border-color: var(--border-accent); } 50% { border-color: var(--accent); box-shadow: 0 0 8px rgba(0,255,65,0.3); }
}
.timeline-role { font-size: 0.88rem; font-weight: 600; color: var(--text-2); margin-bottom: 0.25rem; }
.timeline-role::before { content: '└─ '; color: var(--text-3); }
.timeline-period { font-size: 0.78rem; color: var(--text-3); margin-bottom: 1rem; font-family: var(--font-mono); }
.timeline-bullets { display: flex; flex-direction: column; gap: 0.5rem; }
.timeline-bullets li {
  font-size: 0.84rem; color: var(--text-2); line-height: 1.6;
  padding-left: 1.2rem; position: relative; font-family: var(--font-mono);
}
.timeline-bullets li::before {
  content: '>'; position: absolute; left: 0; color: var(--accent); font-size: 0.75rem; top: 1px;
}
.timeline-tech { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.tech-chip {
  font-size: 0.7rem; padding: 0.15rem 0.5rem;
  background: transparent; border: 1px solid var(--border); color: var(--text-3);
  font-family: var(--font-mono); border-radius: var(--radius);
}

/* ===== ACHIEVEMENTS ===== */
#achievements { background: var(--bg-2); }
.achievements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.achievement-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem 1.75rem 1.75rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.achievement-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background: rgba(0,255,65,0.05); border-bottom: 1px solid var(--border);
}
.achievement-card::after {
  content: '● ● ●';
  position: absolute; top: 7px; left: 10px;
  font-size: 0.5rem; letter-spacing: 4px; color: var(--text-3);
}
.achievement-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow); }
.achievement-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.achievement-metric {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0,255,65,0.5);
}
.achievement-card h3 { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text); }
.achievement-card p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; font-family: var(--font-mono); }

/* ===== CERTIFICATIONS ===== */
#certifications { background: var(--bg); }
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; align-items: center; gap: 0.9rem;
  transition: var(--transition);
}
.cert-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow); }
.cert-logo {
  width: 40px; height: 40px; min-width: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; font-family: var(--font-mono);
  border: 1px solid var(--border-accent); background: var(--accent-glow);
  color: var(--accent);
}
.cert-info h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--text); }
.cert-info span { font-size: 0.72rem; color: var(--text-2); font-family: var(--font-mono); }

/* ===== EDUCATION ===== */
#education { background: var(--bg-2); padding: 4rem 0; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 700px; }
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  border-left: 3px solid var(--accent-dim);
  transition: var(--transition);
}
.edu-card:hover { border-left-color: var(--accent); box-shadow: var(--shadow); }
.edu-icon { font-size: 1.4rem; margin-bottom: 0.75rem; }
.edu-card h3 { font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--text); }
.edu-card .school { font-size: 0.8rem; color: var(--accent); margin-bottom: 0.2rem; }
.edu-card .year { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); }

/* ===== CONTACT ===== */
#contact { background: var(--bg); }
.contact-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 3.5rem;
  text-align: center; max-width: 700px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: rgba(0,255,65,0.06); border-bottom: 1px solid var(--border);
}
.contact-inner::after {
  content: '● ● ●  contact.sh';
  position: absolute; top: 7px; left: 12px;
  font-size: 0.55rem; letter-spacing: 3px; color: var(--text-3);
  font-family: var(--font-mono);
}
.contact-inner h2 { margin-bottom: 0.75rem; position: relative; margin-top: 0.5rem; }
.contact-inner > p { color: var(--text-2); margin-bottom: 2.5rem; position: relative; font-size: 0.88rem; }
.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; position: relative; }
.contact-link-card {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.25rem;
  transition: var(--transition); min-width: 190px;
  cursor: pointer;
}
.contact-link-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow); }
.contact-link-card .icon { font-size: 1rem; }
.contact-link-card .text { text-align: left; }
.contact-link-card .text span { display: block; font-size: 0.68rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono); }
.contact-link-card .text strong { font-size: 0.82rem; color: var(--text); font-family: var(--font-mono); }

/* ===== TOAST (copy feedback) ===== */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-card); border: 1px solid var(--border-accent);
  color: var(--accent); font-family: var(--font-mono);
  font-size: 0.8rem; padding: 0.55rem 1.1rem;
  border-radius: var(--radius); z-index: 10000;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 1.5rem 0; text-align: center;
}
.footer p { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); }
.footer p::before { content: '# '; color: var(--text-3); }
.footer span { color: var(--accent); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ===== AI STACK SECTION ===== */
.ai-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.ai-flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-width: 0;
}
.ai-flow-hub {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.05), transparent);
}
.ai-flow-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.ai-flow-sub {
  font-size: 0.68rem;
  color: var(--text-2);
  line-height: 1.5;
}
.ai-flow-arrow {
  align-self: center;
  color: var(--accent-dim);
  font-size: 0.8rem;
  letter-spacing: -2px;
  white-space: nowrap;
  animation: flow-pulse 2.4s ease-in-out infinite;
}
@keyframes flow-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.ai-flow-alt {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font-size: 0.66rem;
  color: var(--text-2);
  letter-spacing: 0.5px;
  flex-wrap: wrap;
}
.ai-flow-alt span:nth-child(2) { color: var(--accent-dim); letter-spacing: -2px; }
@media (max-width: 900px) {
  .ai-flow { grid-template-columns: 1fr; }
  .ai-flow-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-photo-wrap { order: -1; display: flex; justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-links { justify-content: center; }
  .hero-photo-ring { width: 190px; height: 190px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; max-width: 400px; }
  .stat-item { padding: 0.5rem 1.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 0; }
  .contact-inner { padding: 2.5rem 1.5rem; }
  .certs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-photo-ring { width: 160px; height: 160px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stat-item { padding: 0.5rem 1rem; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}