/* LANDING PAGE PROJECTS & HEADER */

.cv-page .landing::after {
  display: none;
}

.landing.cv-bg {
      min-height: 100svh;
  background-image: none;
  background-color: var(--bg-section);
}

.landing.cv-bg::before {
  content: none;
}

.header-nav {
  width: 100%;
}

.nav-left {
  display: none;
}

.cv-page .nav-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-page .header-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.home-icon i {
  display: flex;
  align-items: center;
  color: var(--text-nav);
  transition: color 0.3s ease, transform 0.3s ease;
}

.home-icon:hover i {
  color: var(--icon-hover);
  transform: scale(1.08);
}

/* keep underline only for text links */
.nav-right a {
  position: relative;
  display: inline-block;
  color: var(--text-nav);
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: var(--primary-light);
  transform: scale(1.04);
}

.projects-page .hero-content {
  max-width: 900px;
  margin: auto;
  padding: var(--space-2xl) clamp(24px, 5vw, 40px);
  align-items: center;
  text-align: center;
}

.projects-page .hero-text {
  max-width: 100%;
  margin: 0 auto;
  color: var(--text-light);
  font-size: clamp(19px, 1.8vw, 23px);
}

.cv-content {
    min-height: 100svh;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: clamp(80px, 10vw, 130px) clamp(32px, 6vw, 96px);

    width: 100%;

    box-sizing: border-box;
}

.cv-left-col .myname {
  display: block;
  margin: 0;
  
  font-size: .85rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--primary);
}

.cv-left-col h2 {
  margin: 30px 0px 20px;

  font-size: clamp(3.6rem, 5vw, 5.4rem);
  line-height: .95;

  font-weight: 500;
}

.cv-left-col .profession {
  margin: 0px 0px 25px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 2.6rem;
  font-style: normal;
  color: var(--primary-light);
  white-space: nowrap;
  line-height: 2.65rem;
}

.cv-left-col .me-description {
  max-width: 620px;
  margin: 0px 0px 25px;

  line-height: 1.8;
  font-size: 1.05rem;
}

/* btn download change X-Y hover */

.download-btn:hover .hero-btn-icon {
  transform: translateY(-3px);
}

.portrait-glow {
  width: 420px;
  aspect-ratio: 0.82;

  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  filter:
    drop-shadow(0 0 12px rgba(217, 123, 155, .28))
    drop-shadow(0 0 28px rgba(217, 123, 155, .14));
}

.hex-outline-1 {
  position: absolute;

  width: 450px;
  height: 450px;

  top: 70%;
  left: 75%;

  transform: translate(-50%, -50%) rotate(12deg);

  opacity: .45;
  pointer-events: none;
  z-index: 0;

  animation: rotateHex 60s linear infinite;
}

.hex-outline-2 {
  position: absolute;

  width: 400px;
  height: 400px;

  top: 30%;
  left: 23%;

  transform: translate(-50%, -50%) rotate(-18deg);

  opacity: .35;
  pointer-events: none;
  z-index: 0;

  animation: rotateHexReverse 80s linear infinite;
}

.portrait-wrapper {
  position: relative;
  z-index: 1;

  width: clamp(360px, 35vw, 470px);
  height: 100%;
  overflow: hidden;
  aspect-ratio: 1;

  clip-path: url(#portrait-hex-round);
  -webkit-clip-path: url(#portrait-hex-round);

  transition:
    transform .4s ease,
    filter .4s ease;
}

.portrait-wrapper:hover {
  transform: translateY(-6px);
}

@keyframes rotateHexReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes rotateHex {
  from {
    transform: translate(-50%, -50%) rotate(12deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(372deg);
  }
}

.portrait img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center 15%;
}

.sm-section {
  min-height: 40vh;
}

/* ==========================
   TOOLS HEX BADGES
========================== */

.skills-section {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.skills {
  padding: var(--space-xl) 0;
  display: flex;
  justify-content: space-between;
}

.skills h2 {
  margin-right: 60px;
}

.skills .hex-card {
  width: 125px;
  height: 150px;
  aspect-ratio: unset;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skills .hex-face {
  clip-path: url(#hex-round-pointy);
  -webkit-clip-path: url(#hex-round-pointy);
}

/* FRONT — acts as the border layer, resting state matches education cards */
.skills .hex-front {
  background: var(--border);
  padding: 0;
  transition: background 0.3s ease;
}

/* the actual fill, inset to reveal the border ring underneath */
.skills .hex-front::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  clip-path: url(#hex-round-pointy);
  -webkit-clip-path: url(#hex-round-pointy);
  z-index: 0;
}

/* content sits above the fill */
.skills .hex-content {
  position: relative;
  z-index: 2;
}

.skills .hex-card:hover .hex-front {
  background: var(--primary-soft);
}

.skills .hex-card:hover {
  transform: translateY(-4px);
  filter:
    drop-shadow(0 0 0 1px rgba(217, 123, 155, .1))
    drop-shadow(0 0 20px rgba(217, 123, 155, .15))
    drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
}

.skills .hex-icon svg {
  fill: var(--primary-light);
  filter: drop-shadow(0 0 8px rgba(217, 123, 155, .4));
}

.skills .hex-content h4 {
  margin: 0;
  color: var(--text-subtle);
  text-shadow: none;
}


/* ==========================
   WORK HISTORY SECTION
========================== */

.work-history {
  width: 100%;
  display: flex;
  position: relative;
}

.journey-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}

/* ==========================
   TIMELINE — TOKENS
========================== */

.vertical-timeline {
  --axis-x: 20px;    /* single source of truth for the line's x position — bumped from 6px so the bee has clearance from section padding */
  --dot-size: 10px;
  --bee-size: 30px;
  --row-gap: 2.2rem;  /* space between items — tune this one value for density */

  flex: 2;
  min-width: 0;
  position: relative;
  padding: 2.5rem 0;
}

/* ==========================
   AXIS — LINE, PROGRESS, DOT, BEE
========================== */

.timeline-line,
.timeline-progress,
.timeline-dot,
.bee {
  position: absolute;
  left: var(--axis-x);
  transform: translateX(-50%); /* same centering formula for all four — keeps them locked in alignment */
}

.timeline-line,
.timeline-progress {
  width: 2px;
  border-radius: 999px;
  top: 0.3rem;
}

.timeline-line {
  bottom: 0.3rem; /* symmetric with top — no magic number guess */
  background: var(--bee-trail);
  z-index: 1;
}

.timeline-progress {
  height: 0;
  background: var(--primary-light);
  z-index: 2;
  transition: height 0.3s ease;
}

.timeline-dot {
  top: 0.3rem;
  width: var(--dot-size);
  height: var(--dot-size);
  background: var(--primary-light);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 6px 2px var(--glow-medium);
  opacity: 1;
  transition: opacity 0.25s ease;
}

.timeline-dot.hidden {
  opacity: 0;
}

.bee {
  top: 0;
  width: var(--bee-size);
  height: var(--bee-size);
  z-index: 4;
  transition: top 0.35s ease;
}

.bee img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(180deg);
}

.bee.up img { transform: rotate(0deg); }
.bee.down img { transform: rotate(180deg); }

/* ==========================
   TIMELINE ITEMS
========================== */

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.timeline-item + .timeline-item {
  margin-top: var(--row-gap); /* one clean rhythm value, no min-height fighting content */
}

/* ==========================
   TIMELINE CONTENT
========================== */

.timeline-content {
  width: 100%;
  margin-left: calc(var(--axis-x) + 2.25rem); /* derives from axis-x, so it always clears the line regardless of axis position */
  display: flex;
  justify-content: space-between;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.timeline-content .date {
  color: var(--text-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-right: 15px;
}

.timeline-content .date.active {
  display: inline-block;
  color: var(--primary);
  transform: scale(1.15);
  font-weight: 600;
}

.view-details {
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.timeline-content .company {
  margin: 0 0 0.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.timeline-content .role {
  margin: 0.4rem 0 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-subtle);
  line-height: 1.3;
}

.timeline-content .desc {
  margin: 0;
  max-width: 50ch;
  font-size: 1rem;
  color: var(--text-subtle);
  line-height: 1.55;
  opacity: 0.85;
}

/* ==========================
   JOB DETAIL PANEL
========================== */

.content-project.job-detail-panel {
  flex: 1;
  min-width: 0;
  width: 100%;   /* override the min(620px, 100%) cap since this sits in a narrower column */
  /* width: 35%; */
  position: sticky;
  top: 100px;
  /* height: 100%; */
  height: calc(100vh - 180px);
  overflow-y: auto;
}

.job-panel-empty {
  color: var(--text-subtle);
  font-size: 0.9rem;
  text-align: center;
  margin: auto;
}

.job-panel-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.job-panel-close:hover {
  opacity: 1;
}

.job-panel-role,
.job-panel-year {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin: 0;
}

.job-panel-year {
  margin-bottom: 1.5rem;
}

.job-panel-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 1.5rem 0 0.9rem;
}

.job-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.job-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
}

.job-panel-list i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.job-panel-tech {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.job-panel-tech img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0; /* prevents flex layout from squishing it smaller as siblings compete for space */
}

.tech-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border: 1px solid var(--primary-soft);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}


/* TREE DECORATION */

.decorative-side-right {
  position: absolute;
  top: -100px;
  right: -140px;
  width: 50%;
  height: 100%;
  background-image: url("images/hive-tree-1-lg.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}


/* ==========================
   EDUCATION
========================== */

.education {
  width: 100%;
  padding: var(--space-lg) 0;
}

.education-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.education-card {
  flex: 1 1 220px;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 2rem 1.5rem;

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;

  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.education-card:hover {
  border-color: var(--primary-soft);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(217, 123, 155, .3),
    0 0 24px rgba(217, 123, 155, .35),
    0 10px 40px rgba(217, 123, 155, .18),
    0 10px 30px rgba(0, 0, 0, .9);
}

.education-card:hover .education-icon svg {
  filter: drop-shadow(0 0 10px rgba(217, 123, 155, .5));
}

.education-icon {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.education-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-light);
  filter: drop-shadow(0 0 6px rgba(217, 123, 155, .3));
  transition: filter 0.3s ease;
}

.education-date {
  font-size: 0.8rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.education-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-soft);
  line-height: 1.4;
}

.education-school {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

/* =========================
   REFERENCES LIST — flexbox column, no grid anywhere
========================= */

.reference-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.reference-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-heavy);
  position: relative;
}

/* =========================
   ROW / TOGGLE (name left, excerpt right)
========================= */

.reference-toggle {
  display: flex;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.reference-name {
  flex: 0 0 200px;
  text-transform: uppercase;
  letter-spacing: 4px;
  /* color: var(--primary); */
  transition: font-size 0.3s ease;
}

.reference-excerpt {
  flex: 1;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.5;
  transition: font-size 0.3s ease;

  /* clamp to one line so it reads as a teaser */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reference-chevron {
  flex: 0 0 16px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--text-muted);
}

.reference-item.is-open .reference-chevron {
  transform: rotate(180deg);
  color: var(--primary-light);
}

/* shrink to normal reading size once opened */
.reference-item.is-open .reference-name,
.reference-item.is-open .reference-excerpt {
  font-size: 15px;
  color: var(--primary-soft);
}

/* =========================
   EXPANDABLE FULL TEXT
   flexbox column, height set inline by JS (scrollHeight) —
   no grid-template-rows trick
========================= */

.reference-full {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  cursor: pointer;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reference-full p {
  margin: 0 0 20px 0;
  padding-left: 224px; /* aligns under the excerpt, past the name column + gap */
  padding-right: 80px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

/* =========================
   BOTTOM LINE — a real element, not a pseudo-element,
   so it can't collide with old ::after rules on your site
========================= */

.reference-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--primary-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

/* hover reaction only while closed */
.reference-item:not(.is-open):hover .reference-line {
  transform: scaleX(1);
}

/* open state: line stays fully drawn, thicker, pink, static —
   no shrink/regrow fighting the collapse animation */
.reference-item.is-open .reference-line {
  transform: scaleX(1);
  height: 3px;
  background: var(--primary);
  transition: none;
}

/* ==========================
   HOBBIES & INTERESTS
========================== */

.hobbies {
  width: 100%;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.hobbies h2 {
  margin-bottom: var(--space-md, 1.5rem);
}

.hobbies-list {
  display: flex;
  flex-wrap: wrap;
}

.hobby-item {
  flex: 1 1 140px;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;

  padding: 0.5rem 1.5rem;

  border-left: 1px solid var(--border);
}

.hobby-item:first-child {
  border-left: none;
}

.hobby-icon {
  display: inline-flex;
  color: var(--primary-light);
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(217, 123, 155, .3));
}

.hobby-icon svg {
  width: 32px;
  height: 32px;
}

.hobby-item:hover .hobby-icon {
  filter: drop-shadow(0 0 12px rgba(217, 123, 155, .5));
  transform: translateY(-2px);
}

.hobby-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ==========================
   SELECTED HIGHLIGHTS
========================== */

.highlights {
  width: 100%;
  padding: var(--space-lg) 0;
  padding-bottom: 0;
  /* border-bottom: 1px solid var(--border); */
}

.highlights h2 {
  margin-bottom: var(--space-md, 1.5rem);
}

.highlights-list {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.highlight-item {
  flex: 1 1 220px;
  min-width: 0;

  min-height: 300px;
  max-height: 400px;
  aspect-ratio: 4 / 3;

  display: block;
  overflow: hidden;
  border-radius: 12px;

  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.highlight-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  filter: saturate(0.9) brightness(0.7);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.highlight-item:hover {
  border-color: var(--primary-soft);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(217, 123, 155, .15),
    0 0 20px rgba(217, 123, 155, .2),
    0 10px 30px rgba(0, 0, 0, .35);
}

.highlight-item:hover img {
  transform: scale(1.06);
}

.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  margin-top: var(--space-md, 1.5rem);

  color: var(--primary-light);
  font-size: 0.9rem;
  text-decoration: none;

  transition: color 0.2s ease, gap 0.2s ease;
}

.view-more-link:hover {
  color: var(--primary-soft);
  gap: 0.75rem;
}

