/* ==========================================================================
   Chidinma Blessing Obiozo — Marketing Portfolio
   Shared stylesheet (merged from the Claude Design prototypes).
   Palette: navy #0e1a33 / deep #0b1528 / gold #f5d061 / text #f5f7fb / muted #9fb0cc
   Fonts:   Anton (display) · Space Grotesk (body) · Space Mono (labels)
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0e1a33;
  color: #f5f7fb;
  font-family: 'Space Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a.nlink { position: relative; transition: color .3s ease; }
a.nlink:hover { color: #f5d061; }
a.gold-link { color: #f5d061; transition: opacity .25s ease; }
a.gold-link:hover { opacity: .7; }
::selection { background: #f5d061; color: #0e1a33; }

/* ---- Keyframes ---- */
@keyframes marq  { 0% { transform: translateX(0);}      100% { transform: translateX(-50%);} }
@keyframes marqR { 0% { transform: translateX(-50%);}   100% { transform: translateX(0);} }
@keyframes riseIn { from { opacity:0; transform: translateY(34px);} to { opacity:1; transform: translateY(0);} }
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@keyframes pulse  { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.4; transform:scale(.7);} }

/* ---- Navigation ---- */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(14,26,51,.8); border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  position: relative; max-width: 1360px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px clamp(20px,4vw,40px);
}
.nav-logo { font-family: 'Anton', sans-serif; font-size: 24px; letter-spacing: .03em; }
.nav-logo span { color: #f5d061; }
.nav-menu { display: flex; align-items: center; gap: clamp(18px,2.4vw,38px); }
.nav-links { display: flex; gap: clamp(18px,2.4vw,38px); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #9fb0cc; }
.nav-links a.nlink { color: #9fb0cc; }
.nav-links a.nlink:hover, .nav-links a.nlink.is-active { color: #f5d061; }
.nav-cta {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .04em;
  color: #0e1a33; background: #f5d061; padding: 11px 20px; font-weight: 700; white-space: nowrap;
}
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 0 9px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.16); border-radius: 8px;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: #f5f7fb; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 61;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0b1528; border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 6px clamp(20px,4vw,40px) 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    max-height: 0; overflow: hidden; transition: opacity .25s ease, transform .25s ease;
  }
  .nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; max-height: 80vh; overflow: auto; }
  .nav-links { flex-direction: column; gap: 0; width: 100%; }
  .nav-links a.nlink { padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-cta { margin-top: 16px; text-align: center; }
}

/* ---- Buttons ---- */
.btn-solid { transition: transform .3s ease, box-shadow .3s ease; }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(245,208,97,.28); }
.btn-ghost { transition: background .3s ease, color .3s ease, border-color .3s ease; }
.btn-ghost:hover { background: #f5f7fb; color:#0e1a33; border-color:#f5f7fb; }

/* ---- Home: selected-work cards ---- */
.card-hover { transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease, background .4s ease; }
.card-hover:hover { transform: translateY(-8px); border-color: rgba(245,208,97,.55) !important; }
.card-hover:hover .card-img { transform: scale(1.06); }
.card-img { transition: transform .7s cubic-bezier(.16,1,.3,1); }
.card-hover:hover .card-arrow { transform: translate(4px,-4px); color:#f5d061; }
.card-arrow { transition: transform .4s ease, color .3s ease; }

/* ---- Blog: posts + featured ---- */
.post { transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease; }
.post:hover { transform: translateY(-8px); border-color: rgba(245,208,97,.55) !important; }
.post:hover h3 { color:#f5d061; }
.post h3 { transition: color .3s ease; }
.post:hover .card-arrow { transform: translate(4px,-4px); color:#f5d061; }
.feat:hover .feat-img { transform: scale(1.05); }
.feat-img { transition: transform .8s cubic-bezier(.16,1,.3,1); }
.feat:hover h2 { color:#f5d061; }
.feat h2 { transition: color .3s ease; }
.subInput::placeholder { color: rgba(14,26,51,.55); }

/* ---- Projects: filters + project cards ---- */
.filt { cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.filt:hover { border-color:#f5d061 !important; color:#f5f7fb !important; }
.pcard { transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease, opacity .4s ease; }
.pcard:hover { transform: translateY(-8px); border-color: rgba(245,208,97,.55) !important; }
.pcard:hover .pcard-img { transform: scale(1.06); }
.pcard-img { transition: transform .7s cubic-bezier(.16,1,.3,1); }
.pcard:hover .card-arrow { transform: translate(4px,-4px); color:#f5d061; }

/* ---- About: skill chips + timeline ---- */
.skill-chip { transition: background .35s ease, color .35s ease, transform .35s ease, border-color .35s ease; }
.skill-chip:hover { background:#f5d061; color:#0e1a33; transform: translateY(-4px); border-color:#f5d061; }
.tl-row { transition: border-color .4s ease; }
.tl-row:hover { border-color: rgba(245,208,97,.5) !important; }
.tl-row:hover .tl-co { color:#f5d061; }
.tl-co { transition: color .3s ease; }

/* ---- Detail pages: back link + next-case card ---- */
.back-link:hover .ba { transform: translateX(-4px); }
.ba { transition: transform .3s ease; display: inline-block; }
.nextcard { transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease; }
.nextcard:hover { transform: translateY(-6px); border-color: rgba(245,208,97,.55) !important; }
.nextcard:hover .card-arrow { transform: translate(4px,-4px); color: #f5d061; }

/* ---- Blog article typography (Blog Post page) ---- */
.article p { font-size: clamp(17px,1.5vw,19px); line-height: 1.85; color: #c3ccdb; margin: 0 0 26px; }
.article .lead { font-size: clamp(19px,1.8vw,23px); line-height: 1.7; color: #f5f7fb; font-weight: 500; }
.article h2 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(26px,3vw,38px); text-transform: uppercase; color: #f5f7fb; margin: 44px 0 18px; line-height: 1.05; }
.article h2 .num { color: #f5d061; font-size: .7em; margin-right: 14px; }
.article h3 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 24px; text-transform: uppercase; color: #f5f7fb; margin: 36px 0 14px; }
.article strong { color: #f5f7fb; }
.article a { color: #f5d061; }
.article ul, .article ol { margin: 0 0 26px; padding-left: 22px; color: #c3ccdb; line-height: 1.8; }
.article blockquote { margin: 34px 0; border-left: 3px solid #f5d061; padding: 6px 0 6px 24px; font-size: clamp(20px,2.2vw,26px); line-height: 1.4; color: #f5f7fb; font-weight: 500; }
.article img, .detail-body img { max-width: 100%; height: auto; display: block; margin: 24px 0; border: 1px solid rgba(255,255,255,.08); }

/* ---- Project case-study body (Project Detail page) ---- */
.detail-body h3 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 26px; text-transform: uppercase; color: #f5f7fb; margin: 0 0 16px; }
.detail-body p { margin: 0 0 28px; }
.detail-body ul.did { margin: 0 0 28px; padding: 0; list-style: none; }
.detail-body ul.did li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.detail-body ul.did li .n { color: #f5d061; font-family: 'Space Mono', monospace; }
.detail-body ul, .detail-body ol { margin: 0 0 28px; padding-left: 22px; line-height: 1.8; }
.detail-body ul.did { padding-left: 0; }
.detail-body a { color: #f5d061; }
.detail-body strong { color: #f5f7fb; }
.detail-body blockquote { margin: 0 0 28px; border-left: 3px solid #f5d061; padding: 6px 0 6px 24px; font-size: clamp(20px,2.2vw,26px); line-height: 1.4; color: #f5f7fb; font-weight: 500; }

/* ---- Contact: form fields + info cards ---- */
.field { transition: border-color .3s ease, background .3s ease; }
.field:focus { border-color:#f5d061 !important; background:rgba(245,208,97,.05) !important; }
.field::placeholder { color:#5c6c8a; }
.cinfo { transition: border-color .35s ease, transform .35s ease; }
.cinfo:hover { border-color: rgba(245,208,97,.5) !important; transform: translateY(-4px); }
.cinfo:hover .cinfo-label { color:#f5d061; }
.cinfo-label { transition: color .3s ease; }

/* ==========================================================================
   Responsive overrides
   ========================================================================== */

/* Two-column heroes (Home, About) collapse to a single stacked column. */
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr !important; align-items: start !important; }
  .hero-split .hero-media { max-width: 460px; }
}

/* Trim oversized hero display type on small phones so nothing clips. */
@media (max-width: 480px) {
  .hero-split .hero-media { height: clamp(300px, 80vw, 420px) !important; }
}

/* Experience timeline: horizontal table on desktop, stacked on mobile. */
@media (max-width: 720px) {
  .tl-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 26px 0 !important;
  }
  /* The year gets a subtle label feel above the role. */
  .tl-row > div:first-child { letter-spacing: .1em; }
}
