/* ============================================================
   WAJAHAT ULLAH — HSE PORTFOLIO
   Design System: Industrial Authority
   Psychology: Trust · Credibility · Zero-Harm Precision
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Core Palette — Industrial Authority */
  --navy-900:   #050c1a;
  --navy-800:   #071428;
  --navy-700:   #0a1e3d;
  --navy-600:   #0e2a52;
  --navy-500:   #153567;

  --amber-400:  #f59e0b;
  --amber-500:  #d97706;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --safety-green: #22c55e;
  --safety-glow:  rgba(34, 197, 94, 0.2);

  --white:      #ffffff;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;

  /* Surfaces */
  --surface-glass:  rgba(14, 42, 82, 0.45);
  --surface-light:  rgba(255, 255, 255, 0.04);
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-amber:   rgba(245, 158, 11, 0.35);

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow:  0 0 40px rgba(245, 158, 11, 0.15);
  --shadow-green: 0 0 30px rgba(34, 197, 94, 0.15);

  /* Typography */
  --font-body:  'Inter', system-ui, sans-serif;
  --font-head:  'Outfit', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --duration:   0.55s;

  /* Layout */
  --max-w: 1100px;
  --nav-h: 72px;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --navy-900:   #f0f4f8;
  --navy-800:   #e2eaf3;
  --navy-700:   #d0dcea;
  --navy-600:   #c2d1e4;
  --navy-500:   #b0c3d8;

  --white:      #0f172a;
  --gray-100:   #1e293b;
  --gray-200:   #334155;
  --gray-400:   #475569;
  --gray-600:   #64748b;

  --surface-glass:  rgba(255, 255, 255, 0.72);
  --surface-light:  rgba(15, 23, 42, 0.05);
  --border-subtle:  rgba(15, 23, 42, 0.1);
  --border-amber:   rgba(245, 158, 11, 0.45);

  --shadow-card:  0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-glow:  0 0 40px rgba(245, 158, 11, 0.12);
  --shadow-green: 0 0 30px rgba(34, 197, 94, 0.12);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(200, 220, 245, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #f0f4f8 0%, #e8eef7 100%);
}

[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
}

[data-theme="light"] #preloader {
  background: #f0f4f8;
}

[data-theme="light"] .preloader-text {
  color: #0f172a;
}

[data-theme="light"] .navbar {
  background: rgba(240, 244, 248, 0.85);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 244, 248, 0.96);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

[data-theme="light"] .nav-links {
  background: #f0f4f8;
}

[data-theme="light"] .nav-brand { color: #0f172a; }

[data-theme="light"] .theme-toggle {
  color: #475569;
  border-color: rgba(15,23,42,0.12);
}

[data-theme="light"] .hamburger span { background: #334155; }

[data-theme="light"] .site-footer {
  background: rgba(224, 232, 243, 0.7);
  border-top-color: rgba(15,23,42,0.08);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(15,23,42,0.08);
}

[data-theme="light"] ::-webkit-scrollbar-track { background: #f0f4f8; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c2d1e4; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--amber-400); }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.15; }

/* ── GLOBAL GRID ── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

/* ── BACKGROUND — Grid & Gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(21,53,103,0.7) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(245,158,11,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* Hide old stars canvas */
#stars-canvas { display: none; }

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s var(--ease-inout), visibility 0.8s;
}
#preloader.fade-out { opacity: 0; visibility: hidden; }

.preloader-content { text-align: center; padding: 0 2rem; }

.preloader-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,158,11,0.12);
  border: 1px solid var(--border-amber);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.preloader-text {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}
.preloader-text span { color: var(--amber-400); }

.preloader-bar {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-400), var(--safety-green));
  margin: 2rem auto 0;
  max-width: 320px;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--amber-glow);
  animation: preloaderBar 2s var(--ease-inout) 0.6s forwards;
}

body.preloader-active { overflow: hidden; }

@keyframes preloaderBar { to { width: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 12, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--duration) var(--ease-inout),
              box-shadow var(--duration) var(--ease-inout);
}

.navbar.scrolled {
  background: rgba(5, 12, 26, 0.92);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand span { color: var(--amber-400); }

.nav-brand-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--amber-400);
  background: rgba(245,158,11,0.1);
  border: 1px solid var(--border-amber);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links li a {
  text-decoration: none;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--amber-400);
  transition: width 0.3s var(--ease-out);
}
.nav-links li a:hover { color: var(--white); }
.nav-links li a:hover::after { width: 100%; }

.theme-toggle {
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  color: var(--gray-400);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--border-amber); color: var(--amber-400); border-color: var(--amber-400); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--gray-400);
  border-radius: 4px;
  transition: all 0.35s var(--ease-out);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--amber-400); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--amber-400); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-text { order: 1; }
.hero-visual { order: 2; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--safety-green);
  letter-spacing: 0.5px;
  margin-bottom: 1.8rem;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--safety-green);
  box-shadow: 0 0 8px var(--safety-green);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.hero h1 .name-accent { color: var(--amber-400); }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--amber-400);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-400);
  letter-spacing: -1px;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── PROFILE CARD (visual side) ── */
.profile-card {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
}
.profile-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--amber-glow);
  filter: blur(60px);
  pointer-events: none;
}

.profile-img-container {
  width: 140px; height: 140px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.profile-img-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--amber-400), var(--safety-green)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring { to { transform: rotate(360deg); } }

.profile-img {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.profile-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.profile-title {
  font-size: 0.8rem;
  color: var(--amber-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.profile-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-200);
  text-align: left;
}
.profile-badge i {
  color: var(--amber-400);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.profile-badge.highlight {
  border-color: var(--border-amber);
  background: rgba(245,158,11,0.06);
  color: var(--amber-400);
}

.profile-location {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-400);
  color: var(--navy-900);
  border-color: var(--amber-400);
  box-shadow: 0 4px 20px var(--amber-glow);
}
.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-subtle);
}
.btn-outline:hover {
  background: var(--surface-light);
  border-color: var(--amber-400);
  color: var(--amber-400);
  transform: translateY(-3px);
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(0,0,0,0.15);
}
@keyframes ripple-animation { to { transform: scale(4); opacity: 0; } }

/* ── SECTION BASE ── */
section { padding: 100px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--amber-400);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 1rem;
}
.section-title .accent { color: var(--amber-400); }

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 4rem;
  line-height: 1.7;
}

.section-header { margin-bottom: 3.5rem; }

/* Centered variant */
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto 4rem; }

/* ── ABOUT ── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-card {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.about-card:hover { border-color: var(--border-amber); box-shadow: var(--shadow-glow); }

.about-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(245,158,11,0.1);
  border: 1px solid var(--border-amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--amber-400);
  margin-bottom: 1.2rem;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.about-card p {
  font-size: 0.92rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.about-summary {
  grid-column: 1 / -1;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-amber);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-glow);
}
.about-summary p {
  font-size: 1rem;
  color: var(--gray-200);
  line-height: 1.8;
}

/* ── CORE COMPETENCIES ── */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.comp-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.comp-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--amber-400), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.comp-card:hover { border-color: var(--border-amber); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.comp-card:hover::after { transform: scaleX(1); }

.comp-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(245,158,11,0.08);
  border: 1px solid var(--border-amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--amber-400);
  margin-bottom: 1.2rem;
}

.comp-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.comp-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-400);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ── EXPERIENCE ── */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }

.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 27px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--amber-400) 15%, var(--safety-green) 70%, transparent);
}

.timeline-item {
  position: relative;
  padding-left: 76px;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--navy-700);
  border: 1.5px solid var(--border-amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--amber-400);
  z-index: 2;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.08);
}
.timeline-item:hover .timeline-dot {
  background: var(--amber-400);
  color: var(--navy-900);
  box-shadow: 0 0 20px var(--amber-glow);
  transform: scale(1.05);
}

.timeline-content {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem 2rem 1.8rem;
  transition: all 0.3s var(--ease-out);
}
.timeline-item:hover .timeline-content { border-color: var(--border-amber); box-shadow: var(--shadow-glow); }

.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.4rem; flex-wrap: wrap; }

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--amber-400);
  background: rgba(245,158,11,0.08);
  border: 1px solid var(--border-amber);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-company i { font-size: 0.7rem; }

.styled-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.styled-list li {
  font-size: 0.88rem;
  color: var(--gray-400);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}
.styled-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--amber-400);
  font-size: 0.7rem;
  top: 4px;
}

/* Current role highlight */
.timeline-item.current .timeline-content {
  border-color: rgba(34,197,94,0.25);
}
.timeline-item.current .timeline-dot {
  border-color: var(--safety-green);
  color: var(--safety-green);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.08);
}
.timeline-item.current:hover .timeline-dot {
  background: var(--safety-green);
  color: var(--navy-900);
  box-shadow: 0 0 20px var(--safety-glow);
}
.timeline-item.current:hover .timeline-content {
  border-color: rgba(34,197,94,0.35);
  box-shadow: var(--shadow-green);
}
.current-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--safety-green);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  padding: 2px 8px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── EDUCATION & CERTS ── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.edu-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
}
.edu-card:hover { border-color: var(--border-amber); box-shadow: var(--shadow-glow); transform: translateY(-4px); }

.edu-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(245,158,11,0.08);
  border: 1px solid var(--border-amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--amber-400);
  margin-bottom: 1rem;
}

.edu-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.edu-meta {
  font-size: 0.78rem;
  color: var(--amber-400);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.edu-card p, .edu-card ul {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--gray-400);
  line-height: 1.5;
}
.cert-list li i {
  color: var(--amber-400);
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.cert-list li strong { color: var(--gray-200); }

/* ── SKILLS / TOOLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.skill-tag {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s;
}
.skill-tag i { color: var(--amber-400); font-size: 0.8rem; }
.skill-tag:hover { border-color: var(--border-amber); color: var(--white); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.contact-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease-out);
}
.contact-card:hover { border-color: var(--border-amber); box-shadow: var(--shadow-glow); transform: translateY(-5px); }

.contact-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(245,158,11,0.08);
  border: 1px solid var(--border-amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--amber-400);
  margin: 0 auto 1rem;
}

.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.contact-card p {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 500;
  word-break: break-word;
}

/* ── FOOTER ── */
.site-footer {
  padding: 80px 0 36px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5,12,26,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 5rem;
  margin-bottom: 60px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.footer-brand span { color: var(--amber-400); }
.footer-bio { font-size: 0.88rem; color: var(--gray-400); line-height: 1.75; max-width: 300px; }

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--amber-400); }

.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact p {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--gray-400);
}
.footer-contact i { color: var(--amber-400); font-size: 0.8rem; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.credit-link { color: var(--amber-400); text-decoration: none; font-weight: 600; }
.credit-link:hover { text-decoration: underline; }

/* ── FLOATING ACTIONS ── */
.floating-actions {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 1001;
}
.float-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: all 0.3s var(--ease-out);
  animation: pulse 2.5s ease-in-out infinite;
}
.float-btn:hover { transform: scale(1.1) translateY(-4px); box-shadow: 0 12px 32px rgba(37,211,102,0.5); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  60%       { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
}

.float-credit {
  position: fixed;
  bottom: 2rem; left: 2rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-decoration: none;
  z-index: 1001;
  transition: all 0.3s;
}
.float-credit strong { color: var(--amber-400); }
.float-credit:hover { border-color: var(--border-amber); color: var(--white); }

/* ── IMPACT BY NUMBERS ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.impact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--amber-400), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.impact-card:hover {
  border-color: var(--border-amber);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}
.impact-card:hover::before { opacity: 1; }

.impact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid var(--border-amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--amber-400);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.impact-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--amber-400);
  letter-spacing: -2px;
  line-height: 1;
}

.impact-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.impact-desc {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.65;
  flex-grow: 1;
}

.impact-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--amber-400);
  opacity: 0.7;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .impact-grid { grid-template-columns: 1fr; }
}

/* ── ZERO LTI FEATURED CARD ── */
.impact-card--featured {
  grid-column: 1 / -1;   /* spans full row */
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
  padding: 2.4rem;
  gap: 0;
}
.impact-card--featured::before {
  background: linear-gradient(to bottom, var(--safety-green), transparent);
}
.impact-card--featured:hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: var(--shadow-green);
  transform: translateY(-4px);
}
.impact-card--featured:hover::before { opacity: 1; }

.impact-featured-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.impact-featured-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 140px;
  text-align: center;
  border-right: 1px solid rgba(34, 197, 94, 0.15);
  padding-right: 3rem;
  gap: 0.4rem;
}

.impact-featured-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.impact-icon--green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--safety-green);
  width: 56px; height: 56px;
  font-size: 1.4rem;
  margin-bottom: 0;
}

.impact-num--green {
  font-size: 4rem;
  color: var(--safety-green);
  letter-spacing: -3px;
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.impact-feat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--safety-green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

.impact-feat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.impact-feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--safety-green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
}
.impact-feat-pill i { font-size: 0.65rem; }

.impact-tag--green {
  color: var(--safety-green);
  border-top-color: rgba(34, 197, 94, 0.15);
  margin-top: 1.5rem;
}

/* featured card responsive */
@media (max-width: 768px) {
  .impact-featured-inner { flex-direction: column; gap: 1.5rem; }
  .impact-featured-left {
    border-right: none;
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
    padding-right: 0;
    padding-bottom: 1.5rem;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    min-width: auto;
    text-align: left;
  }
  .impact-num--green { font-size: 3rem; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-400); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .competencies-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--navy-800);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.5s var(--ease-out);
    z-index: 1001;
    border-left: 1px solid var(--border-subtle);
  }
  .nav-links.active { right: 0; }
  .nav-links li a { font-size: 1.3rem; font-weight: 700; }
  .hamburger { display: flex; }
  .theme-toggle { margin-right: 1rem; }

  .competencies-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bio { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  section { padding: 72px 0; }
  .timeline-line { left: 20px; }
  .timeline-item { padding-left: 56px; }
  .timeline-dot { width: 42px; height: 42px; border-radius: 12px; font-size: 0.9rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
