/* ═══════════════════════════════════════════════════
   Portfolio Styles — Babasanmi Adeyemi
   ═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #0b0f19;
  --surface: #131829;
  --card: #1a2035;
  --accent: #4f8cff;
  --accent-hover: #6fa0ff;
  --text: #e8ecf4;
  --text-muted: #8892a8;
  --heading: #ffffff;
  --radius: 10px;
  --max-w: 1080px;
  --transition: .25s ease;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition)
}

a:hover {
  color: var(--accent-hover)
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700
}

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

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, .85);
  backdrop-filter: blur(12px);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(11, 15, 25, .97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .4)
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -.3px;
}

.nav-logo:hover {
  color: var(--accent)
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--heading)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

@media(max-width:768px) {
  .hamburger {
    display: flex
  }

  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }

  .nav-links.open {
    max-height: 320px;
    padding: 16px 0
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 1.05rem
  }
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  background: linear-gradient(160deg, var(--bg) 0%, #111830 50%, var(--bg) 100%);
}

.hero-content {
  max-width: 640px
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(79, 140, 255, .2);
}

#hero h1 {
  font-size: 2.6rem;
  margin-bottom: 8px
}

.tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted)
}

/* ── Sections ── */
section {
  padding: 80px 0
}

section:nth-child(even) {
  background: var(--surface)
}

section h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── About ── */
#about p {
  max-width: 720px;
  margin: 0 auto 16px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
}

/* ── Skills Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.skill-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform var(--transition), border-color var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent)
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent)
}

.skill-card p {
  font-size: .92rem;
  color: var(--text-muted)
}

/* ── Certifications ── */
.cert-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.cert-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 1rem;
  color: var(--text);
}

.cert-list li:last-child {
  border-bottom: none
}

.cert-link {
  text-align: center;
  margin-top: 20px
}

.cert-link a {
  font-weight: 600
}

/* ── Projects ── */
.project-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color var(--transition);
}

.project-card:hover {
  border-color: var(--accent)
}

.project-card.featured {
  border-color: var(--accent);
  position: relative;
  background: linear-gradient(135deg, var(--card) 0%, rgba(79, 140, 255, .08) 100%);
}

.featured-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 8px
}

.tech-stack {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .3px;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px)
}

.btn-sm {
  padding: 7px 16px;
  font-size: .82rem;
  margin-top: 0;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Contact ── */
#contact .container {
  text-align: center
}

#contact p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-links li {
  font-size: 1rem
}

.contact-links a {
  font-weight: 500
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links span {
  margin: 0 6px;
  color: var(--text-muted);
}

/* ── Page Section (multi-page standalone) ── */
.page-section {
  padding-top: 120px;
  min-height: calc(100vh - 100px);
}

/* ── Your Spotify CTA / Cross-link ── */
.your-spotify-cta {
  text-align: center;
  padding: 40px 24px;
  font-size: 1rem;
  color: var(--text-muted);
}

.your-spotify-cta a {
  font-weight: 600;
}

/* ── Policy Update Banner ── */
.policy-banner {
  background: rgba(79, 140, 255, .12);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 80px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.policy-banner p {
  color: var(--text);
  font-size: .95rem;
  margin: 0;
}

.policy-ack-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.policy-ack-btn:hover {
  background: var(--accent-hover);
}

/* ── Data Management ── */
.data-management {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.data-management h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.data-management p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: .95rem;
}

.delete-data-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background var(--transition);
}

.delete-data-btn:hover {
  background: #c82333;
}

/* ── Auth Error Banner ── */
.auth-error-banner {
  background: rgba(220, 53, 69, .15);
  border: 1px solid #dc3545;
  border-radius: var(--radius);
  padding: 12px 24px;
  margin: 80px 24px 0;
  color: #ff6b7a;
  font-size: .95rem;
  text-align: center;
}

/* ── Experience Timeline ── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(79, 140, 255, .15) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px rgba(79, 140, 255, .25);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(79, 140, 255, .4);
}

.timeline-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color var(--transition);
}

.timeline-content:hover {
  border-color: var(--accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.timeline-company {
  color: var(--accent);
  font-weight: 500;
  font-size: .92rem;
}

.timeline-date {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(79, 140, 255, .08);
  padding: 4px 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.timeline-details li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.6;
}

.timeline-details li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .75rem;
  top: 3px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(79, 140, 255, .1);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .3px;
}

/* ── Education ── */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color var(--transition);
}

.education-card:hover {
  border-color: var(--accent);
}

.education-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.honors {
  font-weight: 400;
  color: var(--accent);
  font-size: .95rem;
}

.edu-institution {
  color: var(--accent);
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 2px;
}

.edu-date {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 8px;
}

.edu-details {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ── Skills Detail Grid ── */
.skills-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-category {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color var(--transition);
}

.skill-category:hover {
  border-color: var(--accent);
}

.skill-category h3 {
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tags span {
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, .08);
}

/* ── Cert Grid ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color var(--transition), transform var(--transition);
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cert-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.cert-card h3 {
  font-size: .92rem;
  margin-bottom: 4px;
}

.cert-level {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 500;
}

/* ── Responsive ── */
@media(max-width:600px) {
  #hero h1 {
    font-size: 1.9rem
  }

  .tagline {
    font-size: 1.05rem
  }

  .profile-pic {
    width: 110px;
    height: 110px
  }

  section {
    padding: 60px 0
  }

  section h2 {
    font-size: 1.6rem
  }

  .skills-grid {
    grid-template-columns: 1fr
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-date {
    align-self: flex-start;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .skills-detail-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}