/* ============================================
   Ebelechukwu Lucy Okafor — Portfolio
   Theme: Dark Navy & Gold
   ============================================ */

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --navy-card: #0f3460;
  --gold: #e2b96f;
  --gold-light: #f0d080;
  --white: #ffffff;
  --grey: #a8b2c8;
  --light: #e8edf5;
  --bg-main: #12121f;
  --bg-card: #1e1e35;
  --bg-section: #161625;
  --font: 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--light);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10,22,40,0.97);
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 64px;
  z-index: 1000;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

/* ── SECTIONS ── */
section {
  padding: 100px 8%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--gold); }

.section-line {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 2.5rem;
  border-radius: 2px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8% 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-tag {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--grey);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  touch-action: manipulation;
  display: inline-block;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(245,166,35,0.2);
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(226,185,111,0.15);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p { color: var(--grey); font-size: 0.95rem; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tag {
  background: rgba(245,166,35,0.15);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.card-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-link:hover { text-decoration: underline; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid rgba(226,185,111,0.15);
  border-radius: 10px;
  padding: 1.5rem;
}

.skill-group h3 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-list li {
  background: rgba(245,166,35,0.1);
  color: var(--light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ── TIMELINE (resume) ── */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 3px;
  background: rgba(245,166,35,0.3);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
}

.timeline-date {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.timeline-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-org {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-desc { color: var(--grey); font-size: 0.95rem; }

/* ── CERT BADGES ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cert-badge {
  background: var(--navy-card);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-badge .cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cert-badge h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cert-badge p {
  color: var(--gold);
  font-size: 0.8rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--grey);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text p span { color: var(--gold); font-weight: 600; }

.values-list { list-style: none; }

.values-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(245,166,35,0.1);
  color: var(--grey);
  display: flex;
  gap: 0.8rem;
}

.values-list li span:first-child { color: var(--gold); font-weight: 700; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info p {
  color: var(--grey);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: var(--grey);
}

.contact-item a {
  color: var(--gold);
  text-decoration: none;
}

.contact-item a:hover { text-decoration: underline; }

.contact-icon { font-size: 1.3rem; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid rgba(245,166,35,0.15);
  color: var(--grey);
  font-size: 0.9rem;
}

footer span { color: var(--gold); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 8% 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--grey);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 4%; }
  .nav-links { gap: 1rem; }
  section { padding: 80px 5%; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 100px 5% 60px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}