/* ============================================
   THE EXECUTIVE DIPLOMAT — Design System
   Dr. Emeka Wachuku Personal Site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Core Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Gold & Bronze Accents */
  --gold: #c9a84c;
  --gold-light: #e4c76e;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gold-glow: rgba(201, 168, 76, 0.3);
  --bronze: #b08d57;

  /* Text */
  --text-primary: #f0ece4;
  --text-secondary: rgba(240, 236, 228, 0.7);
  --text-muted: rgba(240, 236, 228, 0.4);
  --text-accent: var(--gold-light);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(201, 168, 76, 0.25);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold-dim);
  color: var(--gold-light);
}

/* --- Utility --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 40px;
  line-height: 1.2;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition-med), padding var(--transition-med), box-shadow var(--transition-med);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-med);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

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

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.3; transform: translate(0, 0) scale(1); }
  100% { opacity: 0.5; transform: translate(-40px, 30px) scale(1.1); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-name .gold {
  color: var(--gold-light);
  display: block;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-bio {
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-bio p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 36px;
}

.credential-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  color: var(--gold-light);
  background: var(--gold-dim);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-med);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
  color: var(--bg-primary);
}

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

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

/* Hero Image */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero-float-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 3;
}

.hero-float-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-float-badge .badge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-med);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- Competency Cards --- */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.competency-card {
  padding: 32px;
}

.competency-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  display: inline-block;
}

.competency-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.competency-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Timeline (Experience) --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--border-subtle) 100%);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item .timeline-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Skills Tags --- */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-dim);
}

/* --- Lineage Section --- */
.lineage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lineage-card {
  padding: 36px;
  border-left: 3px solid var(--gold);
}

.lineage-card .lineage-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.lineage-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.lineage-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Awards Section --- */
.awards-list {
  display: grid;
  gap: 16px;
}

.award-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.award-item:hover {
  border-color: var(--border-gold);
  background: var(--bg-glass);
}

.award-year {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 50px;
}

.award-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact-card {
  text-align: center;
  padding: 36px 24px;
}

.contact-card .contact-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer .footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* --- Divider --- */
.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 0 40px 0;
}

/* ============================================
   BLOG PAGE STYLES
   ============================================ */

/* Blog Hero */
.blog-hero {
  padding-top: 140px;
  padding-bottom: 40px;
}

/* Blog List */
.blog-list {
  display: grid;
  gap: 24px;
}

.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 28px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  color: inherit;
}

.blog-card-image {
  width: 200px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-read {
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-card-read {
  gap: 12px;
}

/* Blog Post View */
.blog-post-view {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 140px;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.blog-post-back:hover {
  color: var(--gold-light);
}

.blog-post-header {
  margin-bottom: 48px;
}

.blog-post-header .blog-post-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.blog-post-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.blog-post-header .blog-post-excerpt {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

/* Blog Post Body — Markdown Rendered Content */
.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-post-body h2 { font-size: 1.6rem; }
.blog-post-body h3 { font-size: 1.3rem; }
.blog-post-body h4 { font-size: 1.1rem; }

.blog-post-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.blog-post-body a {
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dim);
}

.blog-post-body a:hover {
  border-bottom-color: var(--gold);
}

.blog-post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.blog-post-body code {
  font-size: 0.9em;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--gold-light);
}

.blog-post-body pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin: 28px 0;
}

.blog-post-body pre code {
  background: none;
  padding: 0;
}

.blog-post-body ul, .blog-post-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.blog-post-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-post-body img {
  border-radius: 12px;
  margin: 28px 0;
  border: 1px solid var(--border-subtle);
}

.blog-post-body hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 40px 0;
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
}

.blog-empty p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image-wrap {
    order: 1;
  }

  .hero-credentials {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image-frame {
    width: 280px;
    height: 340px;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-bio {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-image-frame {
    width: 220px;
    height: 280px;
  }

  .hero-float-badge {
    bottom: -10px;
    left: -10px;
  }

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