/* ===================================================================
   Adedeji Gbenga — Portfolio
   Design: dark modern, single accent, system-first type scale
   =================================================================== */

:root {
  --bg: #0a0e14;
  --bg-alt: #0d1220;
  --surface: #121826;
  --surface-2: #171f30;
  --border: #232b3d;
  --text: #e7ebf3;
  --text-dim: #9aa5b8;
  --text-faint: #6b7688;
  --accent: #a855f7;
  --accent-2: #ec4899;
  --accent-soft: rgba(168, 85, 247, 0.12);
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f7f8fb;
    --bg-alt: #eef1f6;
    --surface: #ffffff;
    --surface-2: #f1f3f8;
    --border: #e2e6ee;
    --text: #14181f;
    --text-dim: #4b5567;
    --text-faint: #7a8496;
    --shadow: 0 10px 40px -12px rgba(20, 24, 31, 0.15);
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px circle at 15% 0%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(500px circle at 85% 20%, rgba(236, 72, 153, 0.08), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

section { padding: 110px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 56px;
  font-size: 17px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06131a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(168, 85, 247, 0.45); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 20px 24px 28px; gap: 18px; transform: translateY(-140%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-role {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}
.stat .num span { color: var(--accent); }
.stat .label { font-size: 13.5px; color: var(--text-faint); margin-top: 2px; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.hero-card-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.hero-card-role { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 380px; }
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 16.5px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.fact-card .n { font-size: 26px; font-weight: 800; color: var(--accent); }
.fact-card .l { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill-card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.skill-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags span {
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

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

/* ---------- experience timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 2px; }
.timeline-org { font-size: 14.5px; color: var(--text-dim); margin-bottom: 10px; font-weight: 500; }
.timeline-item p { color: var(--text-dim); font-size: 15px; max-width: 640px; }

/* ---------- projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.project-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { font-size: 17.5px; }
.project-body p { color: var(--text-dim); font-size: 14.5px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
}
.project-link { font-size: 13.5px; font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; }

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

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-item:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-item .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}
.contact-item .label { font-size: 12.5px; color: var(--text-faint); }
.contact-item .value { font-size: 15px; font-weight: 600; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.field input, .field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 12px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-faint);
}
.footer-socials { display: flex; gap: 18px; }
.footer-socials a { color: var(--text-dim); transition: color 0.2s ease; }
.footer-socials a:hover { color: var(--accent); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- resume page specific ---------- */
.resume-page {
  padding-top: 110px;
  --rp1: #7c3aed;
  --rp2: #db2777;
  --r-side-text: #f5f0ff;
  --r-side-text-dim: #cbb8ef;
  --r-main-bg: #ffffff;
  --r-text: #1c1533;
  --r-text-dim: #625c78;
  --r-border: #ece6fb;
  --r-chip-bg: #f4edff;
}
.resume-toolbar {
  max-width: 980px; margin: 0 auto 24px; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.resume-doc {
  max-width: 980px;
  margin: 0 auto 80px;
  background: var(--r-main-bg);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* ----- sidebar ----- */
.resume-sidebar {
  background: linear-gradient(165deg, #1e1245 0%, #4c1d95 55%, #831843 100%);
  color: var(--r-side-text);
  padding: 44px 32px;
}
.resume-photo {
  width: 108px; height: 108px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  margin-bottom: 18px;
}
.resume-sidebar h1 { font-size: 22px; color: #fff; margin-bottom: 4px; line-height: 1.2; }
.resume-sidebar .role { font-size: 13px; color: var(--r-side-text-dim); font-weight: 600; margin-bottom: 30px; }
.resume-side-section { margin-bottom: 28px; }
.resume-side-section:last-child { margin-bottom: 0; }
.resume-side-section h4 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #f0abfc; margin-bottom: 14px; font-weight: 700;
}
.resume-contact-list { display: flex; flex-direction: column; gap: 11px; }
.resume-contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--r-side-text); line-height: 1.5; word-break: break-word; }
.resume-contact-list .ico { flex-shrink: 0; width: 20px; text-align: center; color: #f0abfc; }
.resume-skill-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.resume-skill-pills span { font-size: 11px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 5px 10px; border-radius: 999px; }
.resume-highlights { display: flex; flex-direction: column; gap: 14px; }
.resume-highlight .num { font-size: 22px; font-weight: 800; color: #fff; }
.resume-highlight .num span { color: #f0abfc; }
.resume-highlight .lbl { font-size: 11.5px; color: var(--r-side-text-dim); }

/* ----- main column ----- */
.resume-main { padding: 44px 40px; color: var(--r-text); }
.resume-section { margin-bottom: 30px; }
.resume-section:last-child { margin-bottom: 0; }
.resume-section h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--rp1); margin-bottom: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.resume-section h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--r-border), transparent); }
.resume-summary-text { font-size: 14.5px; color: var(--r-text-dim); line-height: 1.7; border-left: 3px solid var(--rp1); padding-left: 16px; }

.resume-entry { position: relative; padding-left: 22px; margin-bottom: 20px; border-left: 2px solid var(--r-border); }
.resume-entry:last-child { margin-bottom: 0; }
.resume-entry::before {
  content: ""; position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rp1); box-shadow: 0 0 0 3px var(--r-chip-bg);
}
.resume-entry:nth-child(even)::before { background: var(--rp2); }
.resume-entry-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.resume-entry h3 { font-size: 15px; color: var(--r-text); }
.resume-entry .org { color: var(--rp1); font-size: 13px; font-weight: 700; margin-top: 1px; }
.resume-entry .date { font-size: 11px; color: var(--rp1); background: var(--r-chip-bg); padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-weight: 700; }
.resume-entry p { font-size: 13.5px; color: var(--r-text-dim); margin-top: 6px; line-height: 1.6; }

.resume-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.resume-skills span { font-size: 12px; background: var(--r-chip-bg); color: var(--rp1); font-weight: 600; padding: 5px 12px; border-radius: 6px; }

.resume-achievements-box {
  background: linear-gradient(120deg, var(--r-chip-bg), #fdf2ff);
  border: 1px solid var(--r-border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--r-text);
  line-height: 1.7;
}

@media print {
  body::before { display: none; }
  .nav, .to-top, .resume-toolbar { display: none !important; }
  body { background: #fff; }
  .resume-page { padding-top: 0; }
  .resume-doc { box-shadow: none; border-radius: 0; margin: 0; max-width: 100%; }
}

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .resume-doc { grid-template-columns: 1fr; }
  .resume-sidebar { padding: 32px 28px; }
  .resume-main { padding: 32px 28px; }
}
