/* ====================================================================
   WISDOM OGECHI OWABOR - REFINED PORTFOLIO ARCHITECTURE
   Inspired by Serge Studios (sergestudios.com)
   Palette: Deep Matte Charcoal (#0c0d11), Electric Blue (#2ea8ff),
   Acid Green (#00f56b), Neon Pink (#f91072), Violet (#907aea)
==================================================================== */

:root {
  --bg-main: #141722;
  --bg-card: #1e2332;
  --bg-card-hover: #262c3e;
  --bg-elevated: #2d3449;
  --bg-pill: rgba(255, 255, 255, 0.08);
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-card: rgba(255, 255, 255, 0.16);
  --border-glow-blue: rgba(56, 189, 248, 0.45);
  --border-glow-green: rgba(0, 245, 107, 0.45);

  --text-main: #ffffff;
  --text-muted: #b0bad0;
  --text-dim: #79869e;

  /* Serge Studios Inspired Design Tokens - Luminous Vibrant Accents */
  --token-blue: #38bdf8;
  --token-green: #00f56b;
  --token-pink: #f43f5e;
  --token-purple: #a78bfa;
  --token-yellow: #fbbf24;
  --token-bone: #f8fafc;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fragment Mono', monospace;

  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background grain & ambient glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(167, 139, 250, 0.10) 40%, rgba(0, 245, 107, 0.04) 65%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

/* ==================== NAVIGATION (FLOATING CAPSULE) ==================== */
.navbar-wrapper {
  position: sticky;
  top: 1.25rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.navbar-pill {
  background: rgba(28, 33, 47, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  padding: 0.55rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.nav-avatar-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--token-blue);
  box-shadow: 0 0 10px rgba(46, 168, 255, 0.4);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.nav-brand-status {
  font-size: 0.7rem;
  color: var(--token-green);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-brand-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--token-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--token-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

.nav-cta-btn {
  background: #ffffff;
  color: #141722 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  background: var(--token-blue);
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: #141722;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--token-blue);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* ==================== HERO SECTION (HOMEPAGE) ==================== */
.hero-wrapper {
  padding: 3rem 0 4rem;
}

.hero-profile-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-avatar-large {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(46, 168, 255, 0.2);
  transition: var(--transition-smooth);
}

.hero-avatar-large:hover {
  transform: scale(1.03);
  border-color: var(--token-blue);
}

.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 245, 107, 0.1);
  border: 1px solid rgba(0, 245, 107, 0.3);
  color: var(--token-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.4rem;
}

.hero-status-tag .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--token-green);
  box-shadow: 0 0 6px var(--token-green);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  max-width: 960px;
}

.hero-title .highlight-blue { color: var(--token-blue); }
.hero-title .highlight-green { color: var(--token-green); }

.hero-summary {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.hero-action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Key Metrics Ribbon */
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==================== THE THREE PILLARS (HOMEPAGE) ==================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.pillar-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.badge-cs {
  background: rgba(0, 245, 107, 0.12);
  color: var(--token-green);
  border: 1px solid rgba(0, 245, 107, 0.25);
}

.badge-it {
  background: rgba(46, 168, 255, 0.12);
  color: var(--token-blue);
  border: 1px solid rgba(46, 168, 255, 0.25);
}

.badge-sec {
  background: rgba(144, 122, 234, 0.12);
  color: var(--token-purple);
  border: 1px solid rgba(144, 122, 234, 0.25);
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pillar-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ==================== PAGES: ABOUT / EXPERIENCE ==================== */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-card);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--token-blue);
  box-shadow: 0 0 10px var(--token-blue);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-company {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.timeline-role {
  font-size: 1rem;
  color: var(--token-blue);
  font-weight: 600;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.timeline-bullets {
  list-style: none;
  margin-top: 1rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--token-green);
  font-weight: 700;
}

/* ==================== PROJECTS & LIVE LABS ==================== */
.filter-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.filter-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.filter-tab.active {
  background: #ffffff;
  color: #141722;
  border-color: #ffffff;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.project-card-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.project-card-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-sandbox {
  background: rgba(56, 189, 248, 0.14);
  color: var(--token-blue);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  transition: var(--transition-smooth);
}

.btn-sandbox:hover {
  background: var(--token-blue);
  color: #141722;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* ==================== CONTACT FORM ==================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  background: rgba(16, 19, 28, 0.65);
  border: 1px solid var(--border-card);
  color: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--token-blue);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==================== CMS ADMIN PORTAL ==================== */
.admin-profile-uploader {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: center;
}

.admin-preview-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--token-blue);
  box-shadow: 0 0 20px rgba(46, 168, 255, 0.3);
}

/* ==================== MODAL OVERLAY ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 17, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover { color: #ffffff; }

.modal-body {
  padding: 2rem;
}

/* Sandbox Terminal Window */
.terminal-window {
  background: #10131d;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  font-family: var(--font-mono);
  overflow: hidden;
  margin-top: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.terminal-bar {
  background: #1b202e;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: var(--token-pink); }
.dot-yellow { background: var(--token-yellow); }
.dot-green { background: var(--token-green); }

.terminal-content {
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--token-blue);
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ==================== INTERACTIVE LAB SANDBOX STYLES ==================== */
.lab-box {
  background: #111522;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 1.75rem;
  margin-top: 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  position: relative;
}

.hud-stat-box {
  background: #181d2c;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hud-stat-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hud-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.hud-stat-num.emerald { color: var(--token-green); }
.hud-stat-num.cyan { color: var(--token-blue); }
.hud-stat-num.amber { color: var(--token-yellow); }
.hud-stat-num.rose { color: var(--token-pink); }

.terminal-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.3rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .metrics-ribbon { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .admin-profile-uploader { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .nav-links { display: none; }
}
