/* ============================================================
   WORK.CSS — Work Sayfası (work.php)
   ============================================================ */

/* ---- Page wrapper ---- */
.work-page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  background-color: #050518;
}

/* ---- Background ---- */
/* Single full-screen background: Istanbul skyline */
.work-bg-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../images/bg-work-top.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Bottom bg no longer used */
.work-bg-bottom {
  display: none;
}

.work-bg-seam {
  display: none;
}

/* ---- Header ---- */
.work-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.2rem 1.6rem;
  width: 100%;
}

.work-header-logo {
  width: clamp(120px, 16vw, 240px);
  height: auto;
  image-rendering: pixelated;
  mix-blend-mode: screen;
}

/* ---- Chests Scene ---- */
.work-scene {
  /* full viewport height so chest-row can be positioned at 60vh */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  pointer-events: none; /* let clicks pass through empty areas */
}

/* Chest row — pinned near the bottom of the viewport */
.chest-row {
  position: absolute;
  top: 72vh;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  transform: translateY(-80%);
  gap: clamp(1.5rem, 5vw, 6rem);
  padding: 0 4vw;
  max-width: 100%;
  pointer-events: all;
}

/* Individual chest wrapper — no idle float animation */
.chest-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  /* idle animation removed — chests sit still on the ground */
}

/* Pause float when animating open/close */
.chest-item.is-animating {
  animation: none;
}

/* Chest sprite image */
.chest-sprite {
  width: clamp(110px, 14vw, 220px);
  height: auto;
  image-rendering: pixelated;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.7));
}

.chest-item:hover .chest-sprite {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.7));
}

/* Chest label */
.chest-label {
  margin-top: 0.3rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.5rem, 1.1vw, 0.78rem);
  color: var(--color-gold);
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow:
    2px 2px 0 var(--color-brown-dark),
    -1px -1px 0 var(--color-brown-dark),
    1px -1px 0 var(--color-brown-dark),
    -1px 1px 0 var(--color-brown-dark);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Press hint under label */
.chest-hint {
  margin-top: 0.2rem;
  font-size: clamp(0.32rem, 0.6vw, 0.42rem);
  color: rgba(245,197,24,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ============================================================
   MOBILE / TABLET MENU (≤1024px)
   ============================================================ */

.work-mobile-menu {
  display: none; /* hidden on desktop */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 70vh;
  position: relative;
  z-index: 10;
  padding: 2rem 1rem;
}

/* No box, no border — same open style as entry menu */
.work-mobile-menu-box {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  font-family: var(--font-pixel);
  font-size: clamp(0.75rem, 4vw, 1.1rem);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.9rem 2rem;
  cursor: pointer;
  background: none;
  border: none;
  text-align: center;
  position: relative;
  transition: color 0.15s, text-shadow 0.15s;
  white-space: nowrap;
}

.work-mobile-menu-item::before {
  content: '▶';
  font-size: 0.65em;
  color: var(--color-gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.work-mobile-menu-item:hover,
.work-mobile-menu-item:focus {
  color: var(--color-gold);
  outline: none;
  text-shadow:
    0 0 20px rgba(245, 197, 24, 0.7),
    0 0 40px rgba(245, 197, 24, 0.3);
}

.work-mobile-menu-item:hover::before,
.work-mobile-menu-item:focus::before {
  opacity: 1;
  transform: translateX(0);
}

/* Divider hidden */
.work-mobile-divider {
  display: none;
}

/* ============================================================
   MODAL CONTENT STYLES (shared via main.css base)
   ============================================================ */

/* ============================================================
   MODAL CONTENT — base font size matches competitor (~16-18px)
   ============================================================ */

/* About Me */
.about-profile-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #d6eaff;
  border: 4px solid var(--color-text-dark);
  padding: 0.8rem 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about-profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  border: 2px solid #b0c4e8;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.about-profile-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  background: #c8d8f0;
  border: 2px solid #b0c4e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.about-profile-info {
  flex: 1;
  min-width: 140px;
}

.about-profile-name {
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4em;
  display: inline-block;
}

.about-profile-role {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  line-height: 1.6em;
}

.about-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0077b5;
  color: #fff;
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}

.about-linkedin-btn:hover { background: #005f91; }

.about-bio-title {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.4em;
}

.about-bio p {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--color-text-dark);
  line-height: 1.8em;
  margin-bottom: 1.2rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-intro {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  line-height: 1.8em;
  color: var(--color-text-dark);
  margin-bottom: 2.5rem;
}

/* ---- Alternating row layout ---- */
.project-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 0;
}

.project-row--right {
  flex-direction: row-reverse;
}

/* Monitor (reuses timeline-monitor sizing, but bigger for projects) */
.project-monitor-wrap {
  flex-shrink: 0;
  position: relative;
  width: 240px;
  aspect-ratio: 282 / 273;
}

.project-monitor-screen {
  position: absolute;
  left: 10.5%;
  top: 9%;
  width: 77%;
  height: 63%;
  overflow: hidden;
  background: #f5f0e8;
  animation: vhs-flicker 0.12s infinite, vhs-tracking 7s infinite;
}

.project-monitor-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.88) brightness(0.93);
}

.project-monitor-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  image-rendering: pixelated;
}

/* ---- Project text side ---- */
.project-info {
  flex: 1;
  min-width: 0;
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.project-year {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  background: var(--color-text-dark);
  color: var(--color-white);
  padding: 0.2rem 0.55rem;
}

.project-platform {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--color-text-muted);
  border: 2px solid #ccc;
  padding: 0.15rem 0.5rem;
}

.project-name {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3em;
  margin-bottom: 0.3rem;
}

.project-type {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5em;
}

.project-desc {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--color-text-dark);
  line-height: 1.8em;
  margin-bottom: 1.2rem;
}

.project-tech-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-visit-btn {
  display: inline-block;
}

/* ---- Coin separator animation ---- */
.project-coin-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
}

.coin-anim {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  background-image: url('../images/coin/coin_1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: coin-spin 0.8s steps(1) infinite;
}

/* stagger the three coins */
.coin-anim:nth-child(2) { animation-delay: 0.27s; }
.coin-anim:nth-child(3) { animation-delay: 0.54s; }

@keyframes coin-spin {
   0%  { background-image: url('../images/coin/coin_1.png'); }
  13%  { background-image: url('../images/coin/coin_2.png'); }
  26%  { background-image: url('../images/coin/coin_3.png'); }
  39%  { background-image: url('../images/coin/coin_4.png'); }
  52%  { background-image: url('../images/coin/coin_5.png'); }
  65%  { background-image: url('../images/coin/coin_6.png'); }
  78%  { background-image: url('../images/coin/coin_7.png'); }
  91%  { background-image: url('../images/coin/coin_8.png'); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .project-row,
  .project-row--right {
    flex-direction: column;
  }
  .project-monitor-wrap {
    width: 200px;
    align-self: center;
  }
}

/* ---- Keep old class names harmless (no longer rendered) ---- */
.project-card, .project-card-img, .project-card-body,
.project-card-name, .project-card-type, .project-card-desc,
.project-card-tech, .project-tech-tag { display: none; }

/* Resume / CV */
.resume-intro {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  line-height: 1.8em;
  color: var(--color-text-dark);
  margin-bottom: 2.5rem;
}

.resume-timeline {
  position: relative;
  padding-left: 1.8rem;
  border-left: 4px solid var(--color-text-dark);
  margin-bottom: 2.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1.8rem - 2px);
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--color-text-dark);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-text-dark);
  transform: translateX(-50%);
}

/* Header: logo badge + meta stacked neatly */
.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

/* White card so logos display in their original colours */
.timeline-logo-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 56px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  overflow: hidden;
}

.timeline-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  display: block;
}

/* ---- Monitor wrapper ---- */
/* aspect-ratio matches monitor.webp: 282/273 ≈ 1.033 */
.timeline-monitor-wrap {
  flex-shrink: 0;
  position: relative;
  width: 120px;
  aspect-ratio: 282 / 273;
}

/* Screen sits inside the monitor bezel area
   coordinates reverse-engineered from monitor.webp:
   left 10.5%, top 9%, width 77%, height 63% */
.timeline-monitor-screen {
  position: absolute;
  left: 10.5%;
  top: 9%;
  width: 77%;
  height: 63%;
  overflow: hidden;
  background: #f5f0e8;
  animation: vhs-flicker 0.12s infinite, vhs-tracking 7s infinite;
}

/* Logo displayed inside the screen */
.timeline-monitor-logo {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: auto;
  filter: saturate(0.9) brightness(0.95);
}

/* Scanlines overlay */
.timeline-monitor-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 4;
}

/* RGB chromatic aberration layers */
.monitor-rgb {
  position: absolute;
  inset: -4px;   /* extend past edges so shift-bleed is clipped by overflow:hidden */
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.28;
  z-index: 2;
}
.monitor-rgb.red {
  background-color: rgba(255, 0, 0, 0.45);
  transform: translateX(-2px);
  filter: blur(0.4px);
}
.monitor-rgb.blue {
  background-color: rgba(0, 255, 255, 0.45);
  transform: translateX(2px);
  filter: blur(0.4px);
}

/* Moving scanline bar */
.monitor-scanline-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
  animation: scanline-move 3.5s linear infinite;
  opacity: 0.6;
}

/* VHS tracking glitch line */
.monitor-tracking-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  pointer-events: none;
  z-index: 6;
  animation: vhs-line-jump 4s infinite;
  filter: blur(0.8px);
}
.monitor-tracking-line .line-red   { position: absolute; top: 0;   left: 0; width: 100%; height: 1px; background: red; }
.monitor-tracking-line .line-white { position: absolute; top: 1px; left: 0; width: 100%; height: 3px; background: #fff; }
.monitor-tracking-line .line-green { position: absolute; top: 4px; left: 0; width: 100%; height: 1px; background: lime; }

/* Monitor bezel overlaid on top of everything */
.timeline-monitor-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  image-rendering: pixelated;
}

/* ---- VHS keyframes ---- */
@keyframes vhs-flicker {
  0%,  to   { opacity: 1;    }
  50%        { opacity: 0.97; }
  51%        { opacity: 1;    }
  52%        { opacity: 0.94; }
  53%        { opacity: 1;    }
}

@keyframes vhs-tracking {
  0%, 39%, 43%, to {
    transform: scale(1) skew(0);
    opacity: 1;
  }
  40% { transform: scaleY(1.015) skew(1.5deg); opacity: 0.92; }
  41% { transform: scaleY(1.025) skew(-2deg);  opacity: 0.86; }
  42% { transform: scaleY(1.01)  skew(0.8deg); opacity: 0.93; }
}

@keyframes scanline-move {
  0%  { transform: translateY(-100%); }
  to  { transform: translateY(100%);  }
}

@keyframes vhs-line-jump {
  0%,  9%,  13%, 53%, 57%, 85%, 89%, to { top: 120%; opacity: 0; }
  10% { top: 75%;  opacity: 1; }
  12% { top: 15%;  opacity: 1; }
  54% { top: 55%;  opacity: 1; }
  56% { top:  8%;  opacity: 1; }
  86% { top: 88%;  opacity: 1; }
  88% { top: 28%;  opacity: 1; }
}

.timeline-meta {
  flex: 1;
  min-width: 0;
}

.timeline-year {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  background: var(--color-text-dark);
  color: var(--color-white);
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.6rem;
}

.timeline-company {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
  line-height: 1.3em;
}

.timeline-position {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.5em;
}

.timeline-desc {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--color-text-dark);
  line-height: 1.8em;
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-bullets li {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--color-text-dark);
  line-height: 1.7em;
  padding-left: 1.2rem;
  position: relative;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.65rem;
  color: var(--color-text-dark);
}

.resume-skills-title {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  line-height: 1.3em;
}

/* ---- Shared section wrapper ---- */
.resume-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 3px solid var(--color-text-dark);
}

.resume-section-title {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.3em;
}

/* ---- Skills ---- */

.resume-skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.resume-skill-item {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--color-text-dark);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6em;
}

.resume-skill-item::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.5rem;
  color: var(--color-text-dark);
}

/* ---- Education ---- */
.resume-education-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.resume-education-item {
  border-left: 4px solid var(--color-text-dark);
  padding-left: 1.2rem;
}

.resume-edu-school {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
  line-height: 1.4em;
}

.resume-edu-degree {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.5em;
}

.resume-edu-grade {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--color-white);
  background: var(--color-text-dark);
  padding: 0.2rem 0.55rem;
  display: inline-block;
}

/* ---- Certifications ---- */
.resume-certs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.resume-cert-item {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--color-text-dark);
  line-height: 1.6em;
  padding-left: 1.2rem;
  position: relative;
}

.resume-cert-item::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.65rem;
  color: var(--color-text-dark);
}

/* ---- Languages ---- */
.resume-langs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.resume-lang-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-pixel);
}

.resume-lang-name {
  font-size: 0.8rem;
  color: var(--color-text-dark);
  font-weight: 700;
  min-width: 90px;
}

.resume-lang-level {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--color-white);
  background: var(--color-text-dark);
  border: 3px solid var(--color-text-dark);
  padding: 0.25rem 0.6rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.35);
  letter-spacing: 0.05em;
}

/* ---- Tools & Technologies ---- */
.resume-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resume-tool-tag {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 3px solid var(--color-text-dark);
  padding: 0.35rem 0.7rem;
  box-shadow: 2px 2px 0 var(--color-text-dark);
  line-height: 1.4em;
}

/* ---- Travel Gallery ---- */
.about-travel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 3px solid var(--color-text-dark);
}

.about-travel-title {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.3em;
}

/* Track wrapper: just clips the scroll indicator visually */
.about-travel-track-wrap {
  width: 100%;
}

/* The track itself scrolls horizontally.
   grid-auto-columns % is resolved against THIS element's width,
   so 3-up works correctly. */
.about-travel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  /* hide scrollbar — drag to scroll instead */
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.about-travel-track::-webkit-scrollbar { display: none; }
.about-travel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.travel-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.travel-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 3px solid var(--color-text-dark);
  image-rendering: auto;
}

.travel-card-city {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--color-text-dark);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Mobile: 2 visible at once */
@media (max-width: 600px) {
  .about-travel-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

/* Contact */
.contact-intro {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  line-height: 1.8em;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form label {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--color-text-dark);
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1.5em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--color-text-dark);
  background: var(--color-off-white);
  border: 4px solid var(--color-text-dark);
  padding: 0.75rem 1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #444;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-submit {
  align-self: flex-start;
}

.contact-direct {
  margin-top: 1.5rem;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.8em;
}

.contact-direct a {
  color: var(--color-blue-mid);
  text-decoration: underline;
}

.contact-msg {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 2px;
  margin-top: 1rem;
  line-height: 1.6em;
  display: none;
}

.contact-msg.success {
  display: block;
  background: #e6f9ec;
  border: 2px solid #4caf50;
  color: #2e7d32;
}

.contact-msg.error {
  display: block;
  background: #fdecea;
  border: 2px solid #e53935;
  color: #c62828;
}

/* ============================================================
   RESPONSIVE — ≤1024px: show mobile menu, hide chests
   ============================================================ */

@media (max-width: 1024px) {
  .chest-row {
    display: none;
  }
  /* scene no longer needs to be fixed on mobile/tablet */
  .work-scene {
    position: relative;
    height: auto;
    top: auto;
    left: auto;
    width: 100%;
  }
  .work-mobile-menu {
    display: flex;
  }
}

/* Fine-tune for very small screens */
@media (max-width: 480px) {
  .work-header-logo {
    width: clamp(100px, 50vw, 180px);
  }
  .resume-skills-list {
    grid-template-columns: 1fr;
  }
  .about-bio p,
  .projects-intro,
  .resume-intro,
  .contact-intro,
  .timeline-desc,
  .project-card-desc {
    font-size: 0.72rem;
    line-height: 1.7em;
  }
  .timeline-company,
  .project-card-name,
  .resume-skills-title,
  .about-bio-title {
    font-size: 0.85rem;
  }
  .about-profile-card {
    flex-direction: column;
    text-align: center;
  }
  .about-linkedin-btn {
    align-self: center;
  }
  .timeline-header {
    flex-direction: column;
    gap: 0.6rem;
  }
  .timeline-monitor-wrap {
    width: 90px;
  }
}

/* Large screens: bigger chests */
@media (min-width: 2560px) {
  .chest-sprite {
    width: clamp(160px, 7vw, 280px);
  }
  .chest-label {
    font-size: 0.75rem;
  }
}
