/* ═══════════════════════════════════════════════════
   OGECHI DANIEL NDUBUISI — Portfolio Styles v2
   style.css — Enhanced Dynamic Edition
   ═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ────────────────────────────────── */
:root {
  /* Palette — dark theme (default) */
  --bg:          #0D0F14;
  --bg-alt:      #111318;
  --bg-card:     #161A22;
  --bg-card-hover: #1C2130;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);

  --text-primary:   #E8EAF0;
  --text-secondary: #8B90A0;
  --text-muted:     #555B6E;

  --copper:        #B87333;
  --copper-light:  #D4924A;
  --copper-glow:   rgba(184,115,51,0.25);
  --copper-faint:  rgba(184,115,51,0.08);

  --green-status:  #4ade80;
  --red-error:     #f87171;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Figtree', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Fira Code', monospace;

  /* Layout */
  --max-w:      1160px;
  --nav-h:      68px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --ease-spring:cubic-bezier(0.34,1.56,0.64,1);
  --dur:        0.25s;
}

/* ── LIGHT THEME OVERRIDES ────────────────────────── */
[data-theme="light"] {
  --bg:          #F4F2EE;
  --bg-alt:      #EEEBE5;
  --bg-card:     #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --border:      rgba(0,0,0,0.08);
  --border-mid:  rgba(0,0,0,0.14);
  --text-primary:   #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted:     #999;
  --copper-faint:   rgba(184,115,51,0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* Hide default cursor on desktop when custom cursor is active */
@media (pointer: fine) {
  body * { cursor: none !important; }
}

a { color: var(--copper); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--copper-light); }

img { max-width: 100%; display: block; }
ul  { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}


/* ── SCROLL PROGRESS BAR ──────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  z-index: 1000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}


/* ── CUSTOM CURSOR ────────────────────────────────── */
#customCursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s linear, width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s;
  opacity: 0.7;
}
#customCursor.grow {
  width: 56px; height: 56px;
  opacity: 0.4;
  border-color: var(--copper-light);
}
#cursorDot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: none;
}

/* ── NAVIGATION ───────────────────────────────────── */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}
#mainNav.scrolled {
  background: rgba(13,15,20,0.88);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] #mainNav.scrolled {
  background: rgba(244,242,238,0.88);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: -0.01em;
}
.nav-logo em {
  font-style: italic;
  color: var(--copper);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 100px;
  transition: color var(--dur), background var(--dur);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--copper-faint);
}
.nav-cta-btn {
  background: var(--copper) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
}
.nav-cta-btn:hover {
  background: var(--copper-light) !important;
}

/* Nav utility buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-icon-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--border-mid);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.nav-icon-btn:hover {
  background: var(--copper-faint);
  border-color: var(--copper);
  color: var(--copper);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
}
.bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 90px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 901;
  display: flex; flex-direction: column; gap: 8px;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: background var(--dur), color var(--dur);
}
.nav-drawer a:hover { background: var(--copper-faint); color: var(--text-primary); }
.drawer-cta {
  background: var(--copper) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center;
  margin-top: 16px;
}
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 899;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }


/* ── HERO SECTION ─────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: var(--nav-h) 0 60px;
  position: relative;
  overflow: hidden;
}

/* Animated network canvas */
#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

/* Hero entrance animations */
.hero-stagger {
  opacity: 0;
  transform: translateY(28px);
}
.hero-animate-in {
  animation: heroFadeUp 0.7s var(--ease-spring) forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--copper-faint);
  border: 1px solid rgba(184,115,51,0.2);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--green-status);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0.1); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.name-accent {
  font-style: italic;
  color: var(--copper);
  display: block;
}

/* Typing role line */
.hero-role-line {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-role-line::before {
  content: '>';
  color: var(--copper);
  font-weight: 700;
}
#typingText {
  color: var(--copper-light);
}
.cursor-blink {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--copper);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  width: fit-content;
}
.stat {
  padding: 20px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--copper);
  line-height: 1;
}
.stat-num sup { font-size: 0.55em; vertical-align: super; }
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Terminal hint */
.terminal-hint {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  transition: border-color var(--dur), color var(--dur);
}
.terminal-hint:hover { border-color: var(--copper); color: var(--copper); }
.terminal-hint kbd {
  background: var(--copper-faint);
  border: 1px solid var(--copper);
  color: var(--copper);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.8em;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur), background var(--dur), color var(--dur);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 4px 20px var(--copper-glow);
}
.btn-primary:hover {
  background: var(--copper-light);
  box-shadow: 0 6px 28px var(--copper-glow);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-mid);
}
.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: var(--copper-faint);
}


/* ── HERO PHOTO PANEL ─────────────────────────────── */
.hero-photo-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-ring-spin {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1.5px dashed rgba(184,115,51,0.3);
  animation: rotateSpin 20s linear infinite;
  pointer-events: none;
}
@keyframes rotateSpin { to { transform: rotate(360deg); } }

.photo-ring-solid {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(184,115,51,0.15);
  pointer-events: none;
}

.photo-frame {
  width: 290px; height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-mid);
  position: relative;
  z-index: 2;
  background: var(--bg-alt);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px var(--border);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.photo-dots {
  position: absolute;
  width: 120px; height: 120px;
  right: -24px; top: -24px;
  background-image: radial-gradient(circle, var(--copper) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.photo-chip {
  position: absolute;
  z-index: 3;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  animation: chipFloat 4s ease-in-out infinite;
}
.chip-top { top: 12px; right: -40px; animation-delay: 0s; }
.chip-side { bottom: 60px; left: -40px; animation-delay: 2s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.photo-bracket {
  position: absolute; z-index: 1;
  width: 28px; height: 28px;
  pointer-events: none;
}
.photo-bracket-tl {
  top: 8px; left: 8px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
  border-radius: 4px 0 0 0;
}
.photo-bracket-br {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
  border-radius: 0 0 4px 0;
}

.photo-avail-badge {
  position: absolute;
  bottom: -18px;
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  z-index: 4;
}
.avail-dot {
  width: 8px; height: 8px;
  background: var(--green-status);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.photo-years-badge {
  position: absolute;
  bottom: 20px; right: -20px;
  background: var(--copper);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  z-index: 4;
  box-shadow: 0 8px 24px var(--copper-glow);
}
.years-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.years-num sup { font-size: 0.5em; }
.years-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ── SECTIONS ─────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--copper);
  opacity: 0.4;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-heading em { font-style: italic; color: var(--copper); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
}


/* ── REVEAL ANIMATION ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ── ABOUT ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.8;
}
.about-text strong { color: var(--text-primary); }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--dur), transform var(--dur);
}
.about-card:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
}
.about-card-icon { font-size: 1.4rem; margin-bottom: 10px; }
.about-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.about-card-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}
.copper { color: var(--copper); }


/* ── SKILLS ───────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), transparent);
  opacity: 0;
  transition: opacity var(--dur);
}
.skill-card:hover {
  border-color: rgba(184,115,51,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.skill-card:hover::before { opacity: 1; }

.skill-card-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.skill-icon-wrap {
  width: 44px; height: 44px;
  background: var(--copper-faint);
  border: 1px solid rgba(184,115,51,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.skill-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Animated skill bars (new!) */
.skill-bars { margin-bottom: 16px; }
.skill-bar-row {
  margin-bottom: 10px;
}
.skill-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.skill-bar-track {
  background: var(--border);
  border-radius: 100px;
  height: 5px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  background: rgba(184,115,51,0.1);
  border: 1px solid rgba(184,115,51,0.18);
  color: var(--copper-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  transition: background var(--dur), border-color var(--dur);
}
.skill-card:hover .tag {
  background: rgba(184,115,51,0.18);
  border-color: rgba(184,115,51,0.3);
}
.tag-mono { font-family: var(--font-mono); }


/* ── EXPERIENCE ───────────────────────────────────── */
.exp-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.exp-grid::before {
  content: '';
  position: absolute;
  left: 144px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-mid);
}

.exp-item {
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: 0 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.exp-item:last-child { border-bottom: none; }

/* Timeline dot */
.exp-item::after {
  content: '';
  position: absolute;
  left: 138px;
  top: 38px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--copper);
  z-index: 1;
}

.exp-meta { padding-top: 4px; }
.exp-period {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper);
  margin-bottom: 6px;
  line-height: 1.6;
}
.exp-company {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.exp-location { font-size: 0.76rem; color: var(--text-muted); }

.exp-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.exp-bullets {
  display: flex; flex-direction: column; gap: 8px;
}
.exp-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}
.exp-bullets li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--copper);
  font-size: 0.7em;
  top: 4px;
}


/* ── PROJECTS ─────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--dur), border-color var(--dur), box-shadow var(--dur);
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184,115,51,0.3);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}
.project-card:hover::after { transform: scaleX(1); }

.project-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  width: 56px; height: 56px;
  background: var(--copper-faint);
  border: 1px solid rgba(184,115,51,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }


/* ── CERTIFICATIONS ───────────────────────────────── */
.certs-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.certs-list { display: flex; flex-direction: column; gap: 12px; }
.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color var(--dur), transform var(--dur);
}
.cert-card:hover {
  border-color: rgba(184,115,51,0.3);
  transform: translateX(4px);
}
.cert-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cert-badge.cisco { background: rgba(0,145,218,0.15); }
.cert-badge.ibm   { background: rgba(30,90,255,0.1); }
.cert-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.cert-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}
.edu-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.edu-degree {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.edu-school {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.affil-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 14px;
}
.affil-icon { font-size: 1.1rem; margin-top: 2px; }
.affil-text strong { display: block; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 2px; }
.affil-text span   { font-size: 0.78rem; color: var(--text-muted); }


/* ── CONTACT ──────────────────────────────────────── */
.contact-section {
  background: var(--bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.contact-row:hover {
  border-color: var(--copper);
  color: var(--text-primary);
  background: var(--copper-faint);
}
.contact-row-icon {
  width: 32px; height: 32px;
  background: var(--copper-faint);
  border: 1px solid rgba(184,115,51,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--copper);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-glow);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-btn {
  background: var(--copper);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur), transform var(--dur) var(--ease-spring), box-shadow var(--dur);
  box-shadow: 0 4px 20px var(--copper-glow);
  width: fit-content;
}
.form-btn:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--copper-glow);
}
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-success {
  padding: 12px 18px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: var(--radius);
  color: var(--green-status);
  font-size: 0.88rem;
  display: none;
}
.form-success.show { display: block; }
.form-note {
  font-size: 0.76rem;
  color: var(--text-muted);
}


/* ── TERMINAL PANEL ───────────────────────────────── */
#terminalPanel {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  width: min(680px, 95vw);
  background: #0A0C10;
  border: 1px solid rgba(184,115,51,0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(184,115,51,0.1);
  z-index: 800;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), opacity 0.4s;
  opacity: 0;
}
#terminalPanel.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #111318;
  border-bottom: 1px solid rgba(184,115,51,0.15);
}
.term-dots { display: flex; gap: 7px; }
.term-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }

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

#termClose {
  background: none; border: none;
  color: var(--text-muted); font-size: 1.1rem;
  padding: 2px 6px; border-radius: 4px;
  transition: color var(--dur);
}
#termClose:hover { color: var(--text-primary); }

#termOutput {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #cdd6f4;
  padding: 16px 18px;
  height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
}
#termOutput .tc-prompt { color: var(--copper); }
#termOutput .tc-cmd    { color: var(--copper-light); font-weight: 600; }
#termOutput .tc-comment{ color: #6c7086; }
#termOutput .tc-highlight { color: #cba6f7; }
#termOutput .tc-error  { color: var(--red-error); }
#termOutput .tc-output { color: #a6e3a1; margin-bottom: 6px; padding-left: 4px; }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid rgba(184,115,51,0.15);
  background: #0A0C10;
}
.term-input-row span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--copper);
  flex-shrink: 0;
}
#termInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cdd6f4;
  caret-color: var(--copper);
}


/* ── FOOTER ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--copper); }
.footer-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  color: var(--green-status);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  padding: 6px 14px;
  border-radius: 100px;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--green-status);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}


/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-photo-panel { order: -1; justify-content: center; }
  .hero-text { text-align: center; }
  .hero-eyebrow, .hero-ctas { justify-content: center; }
  .hero-stats { margin: 0 auto 40px; }
  .hero-bio { margin: 0 auto 36px; }
  .hero-role-line { justify-content: center; }
  .chip-side { left: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .exp-grid::before { display: none; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .exp-item::after { display: none; }

  .about-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero-stats { flex-direction: column; width: 100%; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  #customCursor, #cursorDot { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .about-cards { grid-template-columns: 1fr 1fr; }
}

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(184,115,51,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper); }

/* Input light mode fixes */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: white;
  color: #1A1A1A;
  border-color: #ddd;
}
[data-theme="light"] #terminalPanel {
  background: #1e1e2e;
}

/* new styles */


/* ── SCROLL PROGRESS BAR ──────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  z-index: 999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}


/* ── CUSTOM CURSOR (desktop only) ─────────────────── */
#customCursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
  transition: width .18s ease, height .18s ease, opacity .18s ease;
}
#customCursor.grow {
  width: 50px; height: 50px;
  opacity: 0.3;
}
#cursorDot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}
@media (pointer: coarse) {
  #customCursor, #cursorDot { display: none; }
}
/* Hide native cursor on desktop when custom one is active */
@media (pointer: fine) {
  body, body * { cursor: none !important; }
}


/* ── NAV UTILITY BUTTONS (terminal + theme) ────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.nav-icon-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.nav-icon-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: var(--copper-bg);
}
/* Hide nav-actions on mobile — hamburger takes over */
@media (max-width: 900px) {
  .nav-actions { display: none; }
}


/* ── NETWORK CANVAS IN HERO ────────────────────────── */
#hero { position: relative; overflow: hidden; }

#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
/* Everything inside hero sits on top of canvas */
.hero-inner { position: relative; z-index: 1; }


/* ── TYPING ANIMATION ─────────────────────────────── */
/* Wraps the animated role text — sits between .hero-name and .hero-bio */
.hero-role-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-role-line::before {
  content: '>';
  color: var(--copper);
  font-weight: 700;
}
#typingText {
  color: var(--copper-dark);
  font-weight: 600;
}
.cursor-blink {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--copper);
  margin-left: 1px;
  vertical-align: middle;
  animation: cur-blink 1s step-end infinite;
}
@keyframes cur-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ── HERO STAGGER ENTRANCE ANIMATION ─────────────── */
.hero-stagger {
  opacity: 0;
  transform: translateY(22px);
}
.hero-animate-in {
  animation: heroUp 0.65s cubic-bezier(0.34,1.2,0.64,1) forwards;
}
@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ── SKILL BARS ───────────────────────────────────── */
/* Add these inside each .skill-card, above .skill-tags */
.skill-bars { margin-bottom: 16px; }

.skill-bar-row { margin-bottom: 10px; }

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-light);
  margin-bottom: 5px;
}

.skill-bar-track {
  background: var(--border-light);
  border-radius: 100px;
  height: 5px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;                          /* starts at 0, JS animates to data-level */
  border-radius: 100px;
  background: linear-gradient(90deg, var(--copper-dark), var(--copper-light));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}


/* ── TERMINAL EASTER EGG PANEL ────────────────────── */
#terminalPanel {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 36px));
  width: min(660px, 94vw);
  background: #1C1917;          /* your --ink dark tone */
  border: 1px solid rgba(194,105,42,0.35);
  border-radius: 14px;
  box-shadow: 0 24px 72px rgba(28,25,23,0.5);
  z-index: 800;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34,1.2,0.64,1), opacity 0.38s ease;
}
#terminalPanel.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #141210;
  border-bottom: 1px solid rgba(194,105,42,0.15);
}
.term-dots       { display: flex; gap: 6px; }
.term-dot        { width: 12px; height: 12px; border-radius: 50%; }
.term-dot:nth-child(1) { background: #FF5F57; }
.term-dot:nth-child(2) { background: #FEBC2E; }
.term-dot:nth-child(3) { background: #28C840; }

.term-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #78716C;
}
#termClose {
  background: none; border: none;
  color: #78716C; font-size: 1rem;
  cursor: pointer; padding: 2px 6px;
  border-radius: 4px;
  transition: color .2s;
}
#termClose:hover { color: #F7F3EE; }

#termOutput {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #D6CFC8;
  padding: 14px 16px;
  height: 230px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Terminal output colour classes */
#termOutput .tc-prompt    { color: var(--copper); font-weight: 600; }
#termOutput .tc-cmd       { color: var(--copper-light); font-weight: 600; }
#termOutput .tc-dim       { color: #78716C; }
#termOutput .tc-highlight { color: #E8845A; }
#termOutput .tc-error     { color: #EF4444; }
#termOutput .tc-output    { color: #A3B899; margin-bottom: 4px; padding-left: 2px; }

/* Scrollbar inside terminal */
#termOutput::-webkit-scrollbar       { width: 4px; }
#termOutput::-webkit-scrollbar-track { background: transparent; }
#termOutput::-webkit-scrollbar-thumb { background: rgba(194,105,42,0.3); border-radius: 2px; }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-top: 1px solid rgba(194,105,42,0.15);
  background: #141210;
}
.term-input-row > span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--copper);
  flex-shrink: 0;
}
#termInput {
  flex: 1;
  background: none; border: none; outline: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #D6CFC8;
  caret-color: var(--copper);
}


/* ── TERMINAL HINT BUTTON (in hero) ──────────────── */
.terminal-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.terminal-hint:hover {
  border-color: var(--copper);
  color: var(--copper-dark);
  background: var(--copper-bg);
}
.terminal-hint kbd {
  background: var(--copper-bg);
  border: 1px solid rgba(194,105,42,0.3);
  color: var(--copper);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}
