/* ═══════════════════════════════════════════════════
   YANNIS ZONGO PORTFOLIO — style.css
   Design tokens: Space Grotesk + DM Serif Display
   Palette: Navy #0f1923 · Amber #f5a623 · Off-white #f8f6f1
═══════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');

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

:root {
  --navy:      #0f1923;
  --navy-mid:  #1c2e3e;
  --amber:     #f5a623;
  --amber-dim: #c47e0a;
  --off-white: #f8f6f1;
  --gray-100:  #f0eeea;
  --gray-300:  #d0cec8;
  --gray-500:  #8a8880;
  --gray-700:  #4a4844;
  --text:      #1a1816;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--off-white);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ── Typography Helpers ─────────────────────────── */
.section-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

/* ════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════ */
#desktop-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6rem;
  height: 4.5rem;
  background: rgba(248, 246, 241, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-300);
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  cursor: default;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
}

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

/* ── Hamburger nav ────────────────────────────── */
#hamburger-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 4.5rem;
  background: rgba(248, 246, 241, 0.95);
  border-bottom: 1px solid var(--gray-300);
}

.hamburger-menu { position: relative; }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-icon.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.menu-links {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  list-style: none;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  width: 220px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.menu-links.open { max-height: 280px; }

.menu-links li a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}

.menu-links li:last-child a { border-bottom: none; }
.menu-links li a:hover { background: var(--gray-100); }

/* ════════════════════════════════════════════════
   SECTIONS (shared)
════════════════════════════════════════════════ */
section {
  padding: 6rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════
   HERO / PROFILE
════════════════════════════════════════════════ */
#profile {
  min-height: 88vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-top: 4rem;
}

.hero-text { flex: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 1.2rem;
}

.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--amber-dim);
}

.dot { color: var(--amber); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Buttons */
.btn-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}

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

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: white;
}

/* Socials */
.socials-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon {
  width: 2rem;
  height: 2rem;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  filter: brightness(0) saturate(100%);
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Hero badge grid */
.hero-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex-shrink: 0;
  width: 260px;
}

.badge-card {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.badge-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.badge-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════ */
#about { background: white; max-width: 100%; padding: 6rem; }
#about > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
#about .section-eyebrow,
#about .section-title { max-width: 1100px; margin-left: auto; margin-right: auto; display: block; }
#about .section-title { margin-bottom: 2.5rem; }

.about-layout {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

.about-pic-wrap {
  flex: 0 0 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}

.about-pic {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.about-text-block { flex: 1; }

.about-text-block p {
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.chip {
  background: var(--gray-100);
  color: var(--navy-mid);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  border: 1px solid var(--gray-300);
}

/* ════════════════════════════════════════════════
   EXPERIENCE (Timeline)
════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), var(--gray-300));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.tl-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--amber);
  border: 3px solid var(--off-white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--amber);
}

.tl-card {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.tl-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.tl-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-dim);
  margin-bottom: 0.4rem;
}

.tl-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.tl-place {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.tl-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════════ */
/* Filter buttons */
.project-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: white;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.project-card[hidden] { display: none; }

.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.proj-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
}

/* Tag color variants — add more as needed */
.tag-data     { background: #e8f4f0; color: #0f6e56; }
.tag-embedded { background: #f0f0fe; color: #534AB7; }
.tag-software { background: #fdf0e6; color: #854F0B; }
.tag-web      { background: #e6f1fb; color: #185FA5; }
.tag-research { background: #f0eefe; color: #534AB7; }

.proj-year {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.65;
  flex: 1;
}

.proj-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.proj-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-dim);
  transition: color 0.2s;
}

.proj-link:hover { color: var(--navy); }

.proj-link-placeholder {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-style: italic;
}

/* ════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════ */
#contact {
  background: var(--navy);
  color: white;
  max-width: 100%;
  text-align: center;
}

#contact > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

#contact .section-eyebrow { color: var(--amber); display: block; }
#contact .section-title   { color: white; }

.contact-sub {
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: -1rem auto 2.5rem;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  min-width: 260px;
  transition: background 0.2s, transform 0.2s;
  text-align: left;
}

.contact-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.15rem;
}

.contact-value {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}