body {
    margin: 0;
    padding: 0;
    background-color: #F2EDE9;
    overflow-x: hidden;
}

/* Container fills screen */
.container {
    position: relative;
    height: 100vh;
    width: 100%;
}

/* ====== HEADSHOT ====== */

.headshot-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 44vh;
  width: auto;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headshot-default,
.headshot-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 44vh;        /* ← matches wrapper height */
  width: auto;
  transition: opacity 0.4s ease;
}

.headshot-default {
  opacity: 1;
  animation: fade-in 1s ease-out 0.5s both;
}

.headshot-hover {
  opacity: 0;
}

.headshot-wrapper:hover .headshot-default {
  opacity: 0;
}

.headshot-wrapper:hover .headshot-hover {
  opacity: 1;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Headshot top and bottom layers */
@keyframes fade-in-from-top-small {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%) translateY(-20px); /* ← adjust 20px for starting offset */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -60%) translateY(0);
  }
}

@keyframes fade-in-from-bottom-small {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(20px); /* ← adjust 20px for starting offset */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -40%) translateY(0);
  }
}

.headshot-top {
  position: absolute;
  top: 31%;
  left: 49.8%;
  transform: translate(-50%, -60%);
  height: 10vh;
  width: auto;
  opacity: 0;
  animation: fade-in-from-top-small 1s ease-out 1s forwards; /* ← delay matches .center */
}

.headshot-bottom {
  position: absolute;
  top: 69%;
  left: 49.9%;
  transform: translate(-50%, -40%);
  height: 8.5vh;
  width: auto;
  opacity: 0;
  animation: fade-in-from-bottom-small 1s ease-out 1s forwards; /* ← delay matches .center */
}

/* ====== END HEADSHOT ====== */

/* ====== SIDE IMAGES ====== */
.side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 25vh;
    z-index: 1;
}

/* Left image */
.left {
    left: 50%;
    transform: translate(-140%, -50%);
}

/* Right image */
.right {
    left: 50%;
    transform: translate(40%, -50%);
}

@keyframes fade-in-from-left {
  0% {
    opacity: 0;
    transform: translate(-140%, -50%) translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translate(-140%, -50%) translateX(0);
  }
}

@keyframes fade-in-from-right {
  0% {
    opacity: 0;
    transform: translate(40%, -50%) translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translate(40%, -50%) translateX(0);
  }
}

.left {
  animation: fade-in-from-left 1s ease-out forwards;
}

.right {
  animation: fade-in-from-right 1s ease-out forwards;
}

/* ====== SIDE IMAGE FLOAT ANIMATIONS ====== */

@keyframes float-left {
  0%, 100% {
    transform: translate(-140%, -50%) translateX(0);
  }
  50% {
    transform: translate(-140%, -50%) translateX(-8px); /* ← adjust px for float distance */
  }
}

@keyframes float-right {
  0%, 100% {
    transform: translate(40%, -50%) translateX(0);
  }
  50% {
    transform: translate(40%, -50%) translateX(8px); /* ← adjust px for float distance */
  }
}

.left {
  animation: fade-in-from-left 1s ease-out forwards,
             float-left 3s ease-in-out 1s infinite; /* ← float starts after fade-in, adjust 3s for speed */
}

.right {
  animation: fade-in-from-right 1s ease-out forwards,
             float-right 3s ease-in-out 1s infinite; /* ← float starts after fade-in, adjust 3s for speed */
}

/* ====== END SIDE IMAGE FLOAT ANIMATIONS ====== */
/* ====== END SIDE IMAGES ====== */

/* Down arrow */
.down-arrow {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 6vmin;
  height: auto;
  z-index: 10;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

/* Nav wrapper — fixed to top of screen */
@keyframes fade-in-from-top {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px); /* ← adjust 20px for how far above it starts */
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.header-nav {
  position: fixed;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  z-index: 100;
  border-radius: 500px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  animation: fade-in-from-top 1s ease-out 0.3s forwards;
}

/* Header bar image — fills the nav naturally */
.header-bar {
  display: block;
  width: 85vh;
  height: auto;
  border-radius: 12px;   /* ← same value as header-nav */
}

/* Items row — overlaid on top of the bar image */
.nav-items {
  position: absolute;
  top: 35%;
  left: 2.5vw;
  transform: translateY(-5%);
  display: flex;
  align-items: center;
  gap: 2.7vw;
}

/* Right nav items */
.nav-items-right {
  position: absolute;
  top: 36%;
  right: 2.5vw;
  transform: translateY(-5%);
  display: flex;
  align-items: center;
  gap: 2.7vw;
}

/* Heart icon — matches nav text height */
.heart-icon {
  height: 14px;
  width: auto;
}

/* WORK / ABOUT links */
.nav-link {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/* Remove underline/style from arrow link wrapper */
.down-arrow-link {
  position: absolute;
  bottom: 0vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
}

/* Move down-arrow positioning to the link wrapper instead */
.down-arrow {
  width: 6vmin;
  height: auto;
  animation: bounce 1.8s ease-in-out infinite;
}

/* Work section */
.work-section {
  width: 100%;
  height: 100vh;
  background-color: #F2EDE9;
  position: relative;
}

/* Work section arrows — anchored to work section */
.work-up-arrow-link {
  position: absolute;
  top: 15vh;
  left: 50%;
  z-index: 200;
  display: flex;
}

.work-down-arrow-link {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  z-index: 10;
  display: flex;
}

.work-up-arrow,
.work-down-arrow {
  width: 6vmin;
  height: auto;
  animation: bounce 1.8s ease-in-out infinite;
}

/* Showcase wrapper — holds arrows + thumbnails in a row */
.showcase-wrapper {
  position: absolute;
  top: 24vh;
  left: 10%;
  right: 10%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1vw;              /* ← adjust: gap between arrows and thumbnail row */
}

/* Left and right arrows */
.showcase-arrow {
  width: 2.5vw;            /* ← adjust: arrow width */
  height: auto;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.showcase-arrow:hover {
  opacity: 1;
}

/* Showcase — now inside wrapper, no longer needs position: absolute */
.showcase {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1vw;
}

/* Each work item */
.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 200;
  cursor: pointer;
}

/* Thumbnail size */
.showcase-thumb {
  width: 7vw;         /* ← thumbnail width */
  height: auto;
  object-fit: cover;
}

.work-detail {
  position: absolute;
  top: 43vh;
  bottom: 12vh;
  left: 10%;
  right: 10%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4vw;
}

/* Enlarged image on the left */
.detail-image {
  width: 32vw;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}

/* Text block on the right */
.detail-text {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
  align-self: flex-start;
}

.detail-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.03em;
  margin: 0;
}

.detail-desc {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin: 0;
  opacity: 0.7;
  white-space: pre-line;
}

/* Title line: bold name + bullet + company */
.detail-title {
  font-family: 'Crimson Text', serif;
  font-size: 24px;
  line-height: 1.2;
}

#detail-title-bold {
  font-weight: 700;
}

.detail-title-separator {
  font-weight: 400;
}

.detail-company {
  font-weight: 400;
}

/* Description */
.detail-desc {
  font-family: 'Crimson Text', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 1vh;
  opacity: 0.85;
}

/* Labels + successes wrapper */
.detail-labels-row {
  display: flex;
  flex-direction: column;
}

/* Label images row */
.detail-labels {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1vw;    /* ← adjust: gap between label images */
  margin-bottom: 1vh;
}

/* Individual label image */
.detail-label {
  height: 5vh;    /* ← adjust: label image width */
  width: auto;
}

/* Successes row — sits on top of labels */
.detail-successes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;         /* ← wraps to next row after 3 items */
  align-items: flex-start;
  gap: 1vh 5vw;           /* ← vertical gap between rows, 10vw horizontal gap between items */
  max-width: 30vw;         /* ← forces wrap after ~3 items at 10vw gap — adjust if needed */
}

/* Single success block */
.success-item {
  display: flex;
  flex-direction: column;
  gap: 0.2vh;
}

/* "My Role" label — unbolded */
.success-label {
  font-family: 'Crimson Text', serif;
  font-size: 15px;    /* ← adjust */
  font-weight: 400;
  margin-bottom: 0.5vh;
  opacity: 50%;
}

/* "UI Designer" value — bolded */
.success-value {
  font-family: 'Crimson Text', serif;
  font-size: 15px;    /* ← adjust */
  font-weight: 700;
  margin: 0;
}

.showcase-header {
  position: absolute;
  top: 20vh;    /* ← adjust */
  left: 10%;    /* ← adjust */
  right: 10%;    /* ← adjust */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vh;    /* ← adjust */
}

.showcase-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;    /* ← adjust */
  letter-spacing: 0.40em;  /* ← 40% letter spacing */
  white-space: nowrap;
}

.line-break-img {
  height: 1vh;    /* ← adjust */
  width: auto;
}

/* Line break between thumbnails and work detail */
.section-line-break {
  position: absolute;
  top: 38vh;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 1vh;
  object-fit: fill;
}

/* Thumbnail size */
.showcase-thumb {
  width: 7vw;
  height: auto;
  object-fit: cover;
  transition: width 0.4s ease;   /* ← smooth size animation */
}

/* Active thumbnail — slightly larger */
.showcase-item.active .showcase-thumb {
  width: 8.5vw;    /* ← adjust */
}

.work-detail {
  position: absolute;
  top: 43vh;
  bottom: 12vh;
  left: 10%;
  right: 10%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4vw;
  opacity: 1;
  transition: opacity 0.3s ease;  /* ← smooth fade */
}

/* ====== WORK SECTION FADE IN ====== */

.work-section {
  opacity: 0;
  transition: opacity 4s ease;
}

.work-section.visible {
  opacity: 1;
}

/* ====== END WORK SECTION FADE IN ====== */

/* ====== ABOUT SECTION ====== */

.about-section {
  width: 100%;
  height: 100vh;
  background-color: #F2EDE9;
  position: relative;
}

.about-up-arrow-link {
  position: absolute;
  top: 13vh;             /* ← matches work-up-arrow-link top value */
  left: 50%;
  z-index: 200;
  display: flex;
}

.about-up-arrow {
  width: 6vmin;
  height: auto;
  animation: arrow-bounce-up 1.8s ease-in-out infinite;
}

@keyframes arrow-bounce-up {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(12px); /* ← bounces downward since arrow points up */
  }
}

/* About section left/right arrows */
.about-arrows {
  position: absolute;
  top: 50%;    /* ← adjust: vertical position */
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 8vw;    /* ← adjust: gap from each edge */
}

.about-side-arrow {
  width: 4vw;    /* ← adjust: arrow width */
  height: auto;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.about-side-arrow:hover {
  opacity: 1;
}

@keyframes arrow-bounce-left {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px); /* ← adjust: bounce distance */
  }
}

@keyframes arrow-bounce-right {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px); /* ← adjust: bounce distance */
  }
}

/* About section arrows */
.about-side-arrow:first-child {
  animation: arrow-bounce-left 1.8s ease-in-out infinite;
}

.about-side-arrow:last-child {
  animation: arrow-bounce-right 1.8s ease-in-out infinite;
}

/* Work section showcase arrows */
.left-arrow {
  animation: arrow-bounce-left 1.8s ease-in-out infinite;
}

.right-arrow {
  animation: arrow-bounce-right 1.8s ease-in-out infinite;
}

/* ====== ABOUT SLIDES ====== */

.about-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;   /* ← adjust: slide fade speed */
  pointer-events: none;
}

.about-slide.active-slide {
  opacity: 1;
  pointer-events: all;
}

/* ABOUT title row — same style as NOTABLE WORKS */
.about-header {
  position: absolute;
  top: 20vh;               /* ← adjust: gap below up arrow */
  left: 10%;
  right: 10%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vh;
}

.about-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.40em;
  white-space: nowrap;
}

/* About photo */
.about-photo {
  position: absolute;
  top: 26vh;               /* ← adjust: gap below ABOUT header */
  height: 25vh;            /* ← adjust: photo height */
  width: auto;
}

/* Placeholder for slide 2 */
.about-slide-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.1em;
  opacity: 0.4;
}

/* BIO label */
.about-bio-label {
  position: absolute;
  top: 54vh;               /* ← adjust: sits below the photo */
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.3em;
  margin: 0;
}

/* Line break below BIO */
.about-line-break {
  position: absolute;
  top: 57vh;               /* ← adjust: sits below BIO label */
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 1vh;
}

/* Bio text */
.about-bio-text {
  position: absolute;
  top: 60vh;               /* ← adjust: sits below line break */
  left: 50%;
  transform: translateX(-50%);
  width: 35vw;             /* ← adjust: text box width */
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.8;        /* ← adjust: line spacing */
  text-align: center;
  margin: 0;
  white-space: pre-line;   /* ← respects the line breaks between paragraphs */
}

/* ====== TIMELINE ====== */

/* Timeline base line + title wrapper */
.timeline-container {
  position: absolute;
  top: 20.5vh;               /* ← adjust: vertical position of the timeline */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-line {
  height: 1vh;             /* ← adjust: thickness of timeline line */
  width: auto;
}

/* EXPERIENCES title overlaid on the line */
.timeline-title {
  position: absolute;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.40em;
  white-space: nowrap;
  background-color: #F2EDE9; /* ← matches page bg so it "cuts" through the line */
  padding: 0 1.5vw;          /* ← adjust: breathing room around the text */
}

/* Row of hanging items — sits just below the timeline line */
.timeline-items {
  position: absolute;
  top: 20.4vh;               /* ← matches .timeline-container top */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3vw;                /* ← adjust: horizontal gap between experiences */
}

/* Each individual experience group */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* title, date, desc, CTA will stack below the image naturally */
}

/* The hanging image (pin + line + logo) */
.timeline-img {
  height: auto;            /* ← adjust: how long the hanging portion is */
  width: 6vw;
}

/* Timeline date */
.timeline-date {
  font-family: 'Crimson Text', serif;
  font-weight: 700;
  font-size: 16px;
  margin: 2vh 0 0 0;     /* ← 2vh gap above, no gap on other sides */
  text-align: center;
}

/* Timeline role label */
.timeline-role {
  height: 5vh;         /* ← adjust: label height */
  width: auto;
  margin-top: 2vh;     /* ← adjust: gap between date and label */
}

/* Timeline description */
.timeline-desc {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 13px;         /* ← adjust: text size */
  letter-spacing: 0.02em;
  line-height: 1.3;        /* ← adjust: line spacing */
  text-align: center;
  max-width: 15vw;          /* ← adjust: wrapping width */
  margin: 2vh 0 0 0;       /* ← 2vh gap above, no gap on other sides */
}

/* Timeline image hover wrapper */
.timeline-img-wrapper {
  position: relative;
  width: 6vw;              /* ← matches timeline-img width */
  cursor: pointer;
}

.timeline-img {
  width: 6vw;
  height: auto;
  transition: opacity 0.4s ease;  /* ← crossfade speed */
  display: block;
}

.timeline-img-default {
  opacity: 1;
}

.timeline-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.timeline-img-wrapper:hover .timeline-img-default {
  opacity: 0;
}

.timeline-img-wrapper:hover .timeline-img-hover {
  opacity: 1;
}

/* ====== END TIMELINE ====== */

/* ====== END ABOUT SLIDES ====== */

/* ====== END ABOUT SECTION ====== */
