/* ============================================================
   CHINYERE JOHN-NNAH — Portfolio Stylesheet (refined)
   Direction: same purple/dark soul, sharper craft.
   - Better type hierarchy (Syne for display, Inter for body)
   - More breathing room (8pt rhythm, generous line-height)
   - Signature SVG accents instead of glow-everything
   - Asymmetric layout details for personality
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --purple:        #a855f7;
  --purple-bright: #c084fc;
  --purple-soft:   #7c3aed;
  --purple-dim:    rgba(168,85,247,0.10);
  --purple-border: rgba(168,85,247,0.22);
  --pink:          #f472b6;
  --pink-bright:   #f9a8d4;
  --white:         #f5f3ff;
  --white-soft:    rgba(245,243,255,0.78);
  --white-mute:    rgba(245,243,255,0.55);
  --white-dim:     rgba(245,243,255,0.35);
  --dark:          #0a0612;
  --dark-2:        #110a1f;
  --dark-3:        #181028;
  --easing:        cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

section.page {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}

/* Quieter background grid + ambient orb (kept the bones, dialed down) */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 80%);
}
body::after {
  content: '';
  position: fixed;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.10) 0%, transparent 60%);
  top: -300px; right: -250px;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,6,18,0.72);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(168,85,247,0.12);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--white);
  cursor: pointer;
  user-select: none;
  transition: color 0.25s var(--easing);
  position: relative;
  padding: 0.25rem 0;
}
.nav-logo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-bright), var(--pink));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.35s var(--easing);
}
.nav-logo:hover { color: var(--purple-bright); }
.nav-logo:hover::after { transform: scaleX(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white-soft);
  text-decoration: none;
  transition: color 0.25s var(--easing);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--purple-bright), var(--pink));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--easing);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .nav-links { gap: 1.25rem; }
  .nav-link { font-size: 0.8rem; }
}

/* ── Page animations ─────────────────────────────── */
.page { display: block; min-height: 100vh; position: relative; z-index: 1; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   HOME PAGE — refined hero with signature accent
───────────────────────────────────────── */

.home-hero {
  height: 78vh;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 2rem 2rem;
}

.hero-hello {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.hero-hello::before,
.hero-hello::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink));
}
.hero-hello::before { right: calc(100% + 18px); transform: scaleX(-1); }
.hero-hello::after { left: calc(100% + 18px); }

.hero-name {
  font-family: 'Syne', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  line-height: 1;
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  /* No text-transform — name is in normal case now. */
}
.hero-name .first {
  display: block;
  color: var(--white);
  font-weight: 300;
}
.hero-name .last {
  display: block;
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  margin-top: 0.1em;
}

.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-top: 1.5rem;
  margin-bottom: 0;
  text-shadow: 0 0 20px rgba(192,132,252,0.35);
}

/* Lower intro: socials block redesigned */
.home-intro {
  padding: 1rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,6,18,0) 0%, rgba(10,6,18,0.6) 100%);
}
.home-intro-left { text-align: center; }

.social-icons { display: flex; gap: 0.75rem; justify-content: center; }
.social-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--purple-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.35s var(--easing);
  background: rgba(168,85,247,0.05);
  color: var(--white);
  text-decoration: none;
}
.social-icon:hover {
  transform: translateY(-4px) rotate(-2deg);
  border-color: var(--purple-bright);
  background: rgba(168,85,247,0.18);
  box-shadow: 0 12px 30px rgba(168,85,247,0.30);
  color: var(--white);
}

/* ─────────────────────────────────────────
   ABOUT PAGE — refined typography & rhythm
───────────────────────────────────────── */

.about-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 130px 3rem 6rem;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.page-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.page-heading em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, var(--purple-bright), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hand-drawn page underline (replaces the boring 80px bar) */
.page-underline {
  width: 110px; height: 12px;
  margin-bottom: 3.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 12' fill='none'><path d='M2 6 Q 18 2, 35 6 T 70 5 Q 90 2, 108 6' stroke='%23c084fc' stroke-width='2.2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
}

.bio-section {
  background: rgba(17,10,31,0.55);
  border: 1px solid var(--purple-border);
  border-radius: 14px;
  padding: 2.5rem 2.75rem;
  margin-bottom: 2.5rem;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.bio-section::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-bright) 20%, var(--pink) 80%, transparent);
}
.bio-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.35em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 1.5rem;
}
.bio-section p {
  font-size: 1.025rem;
  color: var(--white-soft);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  letter-spacing: -0.005em;
}
.bio-section p:last-child { margin-bottom: 0; }

/* Hand-drawn highlight under emphasized bio words */
.bio-section em,
.bio-section .highlight {
  font-style: normal;
  position: relative;
  color: var(--white);
  display: inline-block;
}
.bio-section em::after,
.bio-section .highlight::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: -3px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' fill='none' preserveAspectRatio='none'><path d='M2 4 Q 30 1, 60 4 T 118 3' stroke='%23f472b6' stroke-width='2' stroke-linecap='round' opacity='0.55'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.col-card {
  background: rgba(17,10,31,0.55);
  border: 1px solid var(--purple-border);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.col-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-bright) 20%, var(--pink) 80%, transparent);
}
.col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.3em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 2rem;
}

/* Timeline — refined with better date treatment */
.tl { display: flex; flex-direction: column; gap: 1.75rem; }
.tl-entry {
  position: relative;
  padding-left: 1.5rem;
  transition: transform 0.3s var(--easing);
}
.tl-entry:hover { transform: translateX(4px); }
.tl-entry::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 12px rgba(192,132,252,0.8), 0 0 0 3px rgba(168,85,247,0.15);
}
.tl-entry::after {
  content: '';
  position: absolute;
  left: 4px; top: 22px; bottom: -22px; width: 1px;
  background: linear-gradient(to bottom, rgba(168,85,247,0.25), transparent);
}
.tl-entry:last-child::after { display: none; }
.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.4rem;
}
.tl-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.tl-sub {
  font-size: 0.82rem;
  color: var(--white-dim);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.tl-body {
  font-size: 0.9rem;
  color: var(--white-mute);
  line-height: 1.75;
}

/* "Currently" personality block — appears at the bottom of about */
.currently {
  margin-top: 2.5rem;
  padding: 2rem 2.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(244,114,182,0.05));
  border: 1px dashed rgba(168,85,247,0.35);
  position: relative;
}
.currently::before {
  content: '\2192'; /* arrow */
  position: absolute;
  left: -14px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--purple-bright);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 0 0 4px var(--dark), 0 0 16px rgba(192,132,252,0.5);
}
.currently-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink-bright);
  margin-bottom: 1rem;
  display: inline-block;
}
.currently-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.currently-item-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.4rem;
}
.currently-item-value {
  font-size: 0.92rem;
  color: var(--white-soft);
  line-height: 1.5;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   PROJECTS PAGE — bigger numbers, sharper cards
───────────────────────────────────────── */

.projects-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 130px 3rem 6rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.proj-card {
  background: rgba(17,10,31,0.55);
  border: 1px solid var(--purple-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s var(--easing);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  position: relative;
}
.proj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--easing);
  pointer-events: none;
  border-radius: 14px;
}
.proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-bright);
  box-shadow: 0 24px 60px rgba(168,85,247,0.20), 0 0 0 1px rgba(192,132,252,0.30);
}
.proj-card:hover::before { opacity: 1; }
.proj-card:hover .proj-thumb-num {
  transform: translate(-4px, -2px);
  color: rgba(192,132,252,0.55);
}
.proj-card:hover .proj-link { transform: translateX(6px); color: var(--white); }

.proj-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(168,85,247,0.15);
  position: relative; overflow: hidden;
}
.proj-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(168,85,247,0.18), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(244,114,182,0.10), transparent 50%);
}
.proj-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}
.proj-thumb-num {
  font-family: 'Syne', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(168,85,247,0.30);
  position: relative; z-index: 1;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: all 0.4s var(--easing);
}

.proj-body {
  padding: 1.75rem 1.6rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.25em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--purple-bright);
  opacity: 0.85;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.proj-num::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}
.proj-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.proj-desc {
  font-size: 0.92rem;
  color: var(--white-mute);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.proj-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(168,85,247,0.10);
  color: #d8b4fe;
  border: 1px solid rgba(168,85,247,0.22);
  text-transform: lowercase;
}
.proj-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--purple-bright);
  cursor: pointer; border: none; background: none; padding: 0;
  transition: all 0.35s var(--easing);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 960px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .currently-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 0.9rem 1.2rem; }
  .home-hero { padding: 110px 1.5rem 2rem; }
  .home-intro { padding: 1rem 1.5rem 3rem; }
  .about-wrap, .projects-wrap { padding: 110px 1.5rem 4rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .bio-section { padding: 1.75rem 1.5rem; }
  .col-card { padding: 1.75rem 1.5rem; }
  .currently { padding: 1.5rem 1.5rem 1.5rem 2rem; }
}
