/* ============================================================
   Emmanuella Oseni — Portfolio
   The uploaded images are the design. This stylesheet only
   frames, stacks, and wires them together as a live website.
   ============================================================ */

:root {
  --cream: #e7dfcd;        /* matches the light uploaded sections */
  --cream-solid: #ece5d6;  /* header surface when scrolled */
  --ink: #1c1813;
  --muted: #6f675a;
  --accent: #2e7d32;       /* the "online" green dot from the hero */
  --maxw: 1180px;
  --header-h: 64px;
  --footer-h: 60px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }

a { color: inherit; text-decoration: none; }

/* ---------------- Stacked Sections ---------------- */
main { display: block; }

.section {
  scroll-margin-top: var(--header-h);
}

/* Images are the design — render full, flush, high quality */
.section-img {
  width: 100%;
  max-width: var(--maxw);
  height: auto;
  margin: 0 auto;
}

.img-link { display: block; }
.card-link {
  transition: transform .4s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.card-link:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 18px 40px rgba(28, 24, 19, 0.18));
}

/* Give the last image section breathing room before contact */
#offerings { padding-bottom: 0; }

/* ---------------- Clickable image hotspots ----------------
   Some uploaded images bake their own buttons/links (intro's
   "View Projects" + "Download Resume", contact's email +
   LinkedIn). The wrapper is the positioning context; each
   hotspot is a percentage-placed overlay so it stays aligned
   with the artwork across every breakpoint. */
.img-wrap {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.img-wrap .section-img { max-width: 100%; }

.hotspot {
  position: absolute;
  display: block;
  z-index: 2;
  border-radius: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.hotspot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* hero.jpeg baked-in header + bottom navigation */
.hotspot--home          { left: 3%;   top: 1.5%;  width: 33%;  height: 9%; }
.hotspot--touch         { left: 83%;  top: 2%;    width: 15%;  height: 7.5%; }
.hotspot--nav-projects  { left: 19%;  top: 91.5%; width: 14%;  height: 7.5%; }
.hotspot--nav-offerings { left: 43%;  top: 91.5%; width: 14%;  height: 7.5%; }
.hotspot--nav-about     { left: 68%;  top: 91.5%; width: 14%;  height: 7.5%; }

/* intro.jpg buttons */
.hotspot--projects { left: 4.8%;  top: 86.5%; width: 17.8%; height: 9%; }
.hotspot--resume   { left: 23%;   top: 86.5%; width: 24%;   height: 9%; }

/* contact.jpg links */
.hotspot--email    { left: 3.5%;  top: 52%;   width: 36%;   height: 8%; }
.hotspot--linkedin { left: 3.5%;  top: 62.5%; width: 48%;   height: 8%; }

/* ---------------- Sticky navigation (the Hero's own nav, pinned) ----------------
   The Hero bakes its navigation into hero.jpeg across two cream bars: a top
   header strip (brand + "Get in touch") and a bottom strip (Projects /
   Offerings / About). To keep that navigation reachable on scroll WITHOUT
   redesigning, recreating or cropping the asset, we pin live slices of the
   very same image. Each `.strip` is a fixed-aspect window over hero.jpeg —
   the brand strip aligns the image to its top, the nav strip aligns it to its
   bottom — so what shows is exactly the approved artwork. The bar is parked
   off-screen and slides in only once the Hero's own nav has scrolled away,
   so navigation is never duplicated on screen. */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--cream);
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 8px 28px rgba(28, 24, 19, 0.14);
  will-change: transform;
}
.sticky-nav.is-visible { transform: translateY(0); }

.sticky-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--cream);
}

.strip {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.strip img {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
}
/* brand + "Get in touch": top 112px band of the 1447×1006 hero */
.strip--brand { aspect-ratio: 1447 / 112; }
.strip--brand img { top: 0; }
/* Projects / Offerings / About: bottom 105px band of the hero */
.strip--nav { aspect-ratio: 1447 / 105; }
.strip--nav img { bottom: 0; }

/* Hotspots positioned within each strip (percentages of the strip box) */
.hs--home      { left: 3%;  top: 13%; width: 33%; height: 80%; }
.hs--touch     { left: 83%; top: 18%; width: 15%; height: 67%; }
.hs--projects  { left: 19%; top: 19%; width: 14%; height: 72%; }
.hs--offerings { left: 43%; top: 19%; width: 14%; height: 72%; }
.hs--about     { left: 68%; top: 19%; width: 14%; height: 72%; }

/* ---------------- Contact Section ---------------- */
.section--contact {
  background: var(--cream);
  padding-bottom: 80px;
}

/* ---------------- About modal (opened from the Hero "About" nav) ---------------- */
.about-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.about-modal[hidden] { display: none; }
.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 19, 0.62);
  backdrop-filter: saturate(120%) blur(5px);
}
.about-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(28, 24, 19, 0.45);
  animation: about-pop .28s cubic-bezier(.2,.7,.2,1);
}
.about-modal__dialog img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.about-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 24, 19, 0.72);
  color: #f3ede0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.about-modal__close:hover { background: rgba(28, 24, 19, 0.9); }
@keyframes about-pop {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 600px) {
  .about-modal { padding: 14px; }
}
