@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* =========================
   GLOBAL STYLES
========================= */
body {
  background: #ffffe6;
  color: #000;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: #0000ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover,
a:focus {
  text-decoration-thickness: 3px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 0.5rem;   
  margin-bottom: 0.75rem;
}

p {
  max-width: 65ch;
  margin-bottom: 1rem;
}

/* =========================
   HEADER + NAV
========================= */
header {
  background: #fff;
  border-bottom: 3px solid #8FB8ED;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 1rem 1.5rem;
}

nav a {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000;
}
/* =========================
   FOOTER
========================= */
footer {
  background: #fff;
  border-top: 3px solid #8FB8ED;
   width: 100%;
}

footer nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
}

footer nav a {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000;
}

footer nav a:focus-visible {
  outline: 3px solid #8FB8ED;
  outline-offset: 4px;
}

/* =========================
   LAYOUT
========================= */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* =========================
   INTRO / ABOUT
========================= */
#about {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
}

#about img {
  width: 100%;
  height: auto;
}

/* =========================
   RESUME GRID
========================= */
.resume {
  display: grid;
  row-gap: 1.25rem;
}

.resume-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 2rem;
}

.resume-date {
  white-space: nowrap;
}

.resume-role {
  font-weight: 700;
}

/* =========================
   CV IMAGE STRIP — CLEAN GRID
========================= */
.experience-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;              /* clean spacing */
  margin-top: 1.5rem;
}

.experience-gallery figure {
  margin: 0;
}

.experience-gallery img {
  width: 100%;
  height: auto;              /* allow full natural height */
  object-fit: contain;       /* ensure no cropping */
  border-radius: 12px;
  display: block;
}

/* =========================
   EXPANDABLE BASE
========================= */
.expandable {
  cursor: zoom-in;
}

/* =========================
   SPOTLIGHT (FIXED + SAFE)
========================= */
img.spotlight {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;

  z-index: 2000;
  cursor: zoom-out;
}

.spotlight-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1500;
}

.spotlight-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* =========================
   TOOLKITS BACKGROUND FIX
========================= */
#toolkits,
.archive-block,
.archive-intro {
  background: transparent;
  border: none;
}

/* =========================
   COLLAGE GALLERIES
========================= */
.collage-gallery {
  position: relative;
  margin-top: 3rem;
}

/* prevent section spillover */
.beehive-collage {
  height: 620px;
}

.toolkits-collage {
  height: 360px;
}

/* collage items */
.collage-item {
  position: absolute;
}

/* collage images — NO FRAMES */
.collage-item img {
  width: 100%;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* =========================
   COLLAGE SIZING
========================= */
.beehive-collage .item-1,
.beehive-collage .item-2,
.beehive-collage .item-3,
.beehive-collage .item-4 {
  width: 320px;
}

.beehive-collage .item-5 {
  width: 200px;
}

.toolkits-collage .collage-item {
  width: 320px;
}

/* =========================
   COLLAGE POSITIONS — BEEHIVE
========================= */
.beehive-collage .item-1 {
  top: 0;
  left: 6%;
  transform: rotate(-6deg);
}

.beehive-collage .item-2 {
  top: 80px;
  left: 36%;
  transform: rotate(4deg);
}

.beehive-collage .item-3 {
  top: 190px;
  left: 10%;
  transform: rotate(-2deg);
}

.beehive-collage .item-4 {
  top: 230px;
  left: 46%;
  transform: rotate(5deg);
}

.beehive-collage .item-5 {
  top: 40px;          /* raise it near item-1 height */
  left: 68%;          /* keep it on the right side */
  transform: rotate(6deg);  /* opposite tilt */
  z-index: 0;         /* send behind other collage items */
}

/* =========================
   COLLAGE POSITIONS — TOOLKITS
========================= */
.toolkits-collage .item-1 {
  top: 0;
  left: 12%;
  transform: rotate(-4deg);
}

.toolkits-collage .item-2 {
  top: 40px;
  left: 44%;
  transform: rotate(3deg);
}

/* =========================
   PROJECTS SPACING FIX
========================= */
#projects {
  margin-top: 10rem;
}

/* =========================
   MOBILE FALLBACK
========================= */
@media (max-width: 700px) {

  /* REAL FIX: prevent layout overflow and zoomed-in default */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header {
    width: 100%;
  }

  .collage-gallery {
    height: auto;
  }

  .collage-item {
    position: static;
    width: 100%;
    transform: none !important;
    margin-bottom: 1.5rem;
  }

  /* ABOUT: stack text first, image second */
  #about {
    grid-template-columns: 1fr;
  }

  #about > div {
    order: 1;
  }

  #about figure {
    order: 2;
    margin-top: 1.5rem;
  }

  /* HEADER: full-width feel on mobile */
  nav ul {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* RESUME: add breathing room on mobile */
  .resume-item {
    column-gap: 1rem;
  }

  .resume-item > div {
    padding-right: 0.5rem;
  }
   /* CV gallery mobile layout: 2 x 2 */
.experience-gallery {
  grid-template-columns: repeat(2, 1fr);
}
}


















