/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0d0d0d;
  color: #f0f0f0;
  overflow: hidden;
  height: 100vh;
}

:root {
  --gold: #c9a227;
}

/* ===== Construction Banner ===== */
/* ===== Construction Banner ===== */

.construction-banner {
  display: inline-block;
  margin: 0.8rem 0 1.4rem;
  padding: 15px;                          /* thin stripe border */
  background: repeating-linear-gradient(
    -45deg,
    #111,
    #111 8px,
    #c9a227 8px,
    #c9a227 16px
  );
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.construction-text {
  display: block;
  padding: 0.35rem 0.9rem;   /* reduced from 0.5rem 1.3rem */
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ===== Construction Banner ===== */
/* ===== Construction Banner ===== */

/* ===== Panels ===== */
.panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  z-index: 1;
  background: #0d0d0d;
}

.panel.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  transform: translate(0, 0) !important;
}

.panel.from-left   { transform: translateX(-100%); }
.panel.from-right  { transform: translateX(100%); }
.panel.from-bottom { transform: translateY(100%); }
.panel.from-top    { transform: translateY(-100%); }

.panel.to-left   { transform: translateX(100%); }
.panel.to-right  { transform: translateX(-100%); }
.panel.to-bottom { transform: translateY(-100%); }
.panel.to-top    { transform: translateY(100%); }

/* ===== Landing ===== */
.landing-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.intro {
  margin-bottom: 2.8rem;
  max-width: 620px;
}

.name {
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.9rem;
}

.bio {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #a0a0a0;
}

.photo-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  margin-bottom: 2.5rem;
}

.profile-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #333;
  transition: border-color 0.3s ease;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.profile-photo:hover {
  border-color: var(--gold);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.7rem 1.35rem;
  border: 1px solid #333;
  border-radius: 50px;
  background: #141414;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: #1a1a1a;
}

.nav-link .arrow {
  font-size: 1.25rem;
  color: var(--gold);
}

.nav-link .label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.nav-link.bottom {
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.6rem;
}

.nav-link.left,
.nav-link.right {
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.4rem;
}

.nav-link.left .arrow,
.nav-link.right .arrow {
  order: -1;
}

/* ===== Content panels ===== */
.panel-inner {
  max-width: 700px;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.panel-inner h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-weight: 600;
}

.panel-inner p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #b0b0b0;
}

.back-btn {
  position: absolute;
  top: -3rem;
  left: 0;
  background: transparent;
  border: 1px solid #444;
  color: #f0f0f0;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== Social Links ===== */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 8rem;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: all 0.25s ease;
  overflow: hidden;
}

.social-links a:hover {
  transform: translateY(-4px);
}

.social-links a:nth-child(1) { background: #0a66c2; }
.social-links a:nth-child(2) { background: #333; }
.social-links a:nth-child(3) { background: #2e7d32; }

.social-links img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-links a:nth-child(3) img {
  filter: none;
}

/* ===== Professional Timeline (Desktop) ===== */
#professional {
  position: relative;
  overflow: visible;
}

#professional .back-btn {
  position: absolute;
  top: 18%;
  left: 18%;
  transform: translate(-50%, -50%);
  z-index: 50;
}

.professional-inner {
  max-width: 1100px;
  width: 100%;
  padding: 4.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-start;
}

.professional-inner h1 {
  margin-bottom: 0.5rem;
  font-size: 2.1rem;
}

.timeline-intro {
  color: #777;
  margin-bottom: 4.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.timeline-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  inset: -60px -30px;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.timeline-container {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 250px 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-container::-webkit-scrollbar {
  display: none;
}

.timeline-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
  user-select: none;
}

.timeline-arrow:hover:not(.disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: #222;
}

.timeline-arrow.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 1500px;
  position: relative;
  height: 4px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #444 4%, #444 96%, transparent);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 62px;
  height: 0;
  display: flex;
  justify-content: center;
}

.timeline-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: default;
}

.timeline-item.has-data .timeline-mark {
  cursor: pointer;
}

.hash {
  width: 3px;
  height: 12px;
  background: #555;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.timeline-item.has-data .hash {
  width: 4px;
  height: 16px;
  background: #777;
}

.timeline-item.has-data:hover .hash {
  background: var(--gold);
  height: 20px;
}

.timeline-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 4;
}

.timeline-item.top .timeline-content {
  bottom: 14px;
  flex-direction: column;
}

.timeline-item.bottom .timeline-content {
  top: 14px;
  flex-direction: column-reverse;
}

.timeline-connector {
  width: 2px;
  height: var(--connector-height, 80px);
  background: #555;
  transition: background 0.2s ease;
}

.timeline-item.has-data:hover .timeline-connector {
  background: var(--gold);
}

.timeline-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.timeline-item.has-data:hover .timeline-icon-wrapper {
  transform: scale(1.07);
}

.timeline-icon {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #444;
  background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: border-color 0.2s ease;
}

.timeline-item.has-data:hover .timeline-icon {
  border-color: var(--gold);
}

.timeline-icon-placeholder {
  width: 100px;
  height: 80px;
  border-radius: 10px;
  border: 2px solid #444;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #777;
}

.year-label {
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.timeline-item.has-data:hover .year-label {
  color: var(--gold);
}

/* ===== Mobile Vertical Timeline ===== */
.mobile-timeline {
  display: none;
  width: 100%;
  max-width: 560px;          /* was 420px – wider for Fold & large phones */
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.mobile-card {
  display: flex;
  gap: 1.1rem;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-card:hover,
.mobile-card:active {
  border-color: var(--gold);
  background: #1c1c1c;
}

.mobile-card-icon {
  flex-shrink: 0;
  width: 72px;               /* slightly larger icons */
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
}

.mobile-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #777;
}

.mobile-card-content {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.mobile-card-year {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.mobile-card-title {
  font-size: 0.98rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.mobile-card-role {
  font-size: 0.82rem;
  color: #999;
}

.mobile-card-more {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.35rem;
}

/* ===== Tooltips & Selection ===== */
.timeline-tooltip {
  position: fixed;
  width: 280px;
  background: #161616;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  pointer-events: auto;
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  max-height: 85vh;
  overflow-y: auto;
}

.timeline-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.timeline-tooltip.pinned {
  border-color: #555;
}

.timeline-tooltip .tip-year {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.timeline-tooltip h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.timeline-tooltip .role {
  font-size: 0.84rem;
  color: #aaa;
  margin-bottom: 0.55rem;
}

.timeline-tooltip .desc {
  font-size: 0.84rem;
  color: #999;
  line-height: 1.5;
}

.tooltip-gallery {
  position: relative;
  margin-top: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.gallery-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.65);
  border: none;
  color: white;
  font-size: 1.4rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip-gallery:hover .gallery-prev,
.tooltip-gallery:hover .gallery-next {
  opacity: 1;
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.gallery-dots span.active {
  background: var(--gold);
}

.year-selection {
  position: fixed;
  z-index: 9000;
  background: #161616;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 1.4rem;
  width: 360px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  max-width: 92vw;
}

.year-selection.visible {
  opacity: 1;
  visibility: visible;
}

.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.selection-year {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}

.selection-count {
  font-size: 0.8rem;
  color: #888;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 0.85rem;
}

.selection-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 0.65rem;
  cursor: pointer;
  text-align: center;
  color: #ddd;
  transition: all 0.2s ease;
}

.selection-card:hover {
  border-color: var(--gold);
  color: #fff;
  background: #252525;
}

.selection-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.45rem;
  display: block;
}

.selection-placeholder {
  width: 100%;
  height: 72px;
  background: #2a2a2a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 0.45rem;
}

.selection-card span {
  font-size: 0.78rem;
  display: block;
  line-height: 1.3;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}

/* ===== Mobile ===== */
@media (max-width: 900px) { /* was 768px */
  body {
    overflow: auto;
  }

  .panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Landing */
  .landing-wrapper {
    padding: 1.5rem 1rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .name {
    font-size: 1.6rem;
  }

  .bio {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .photo-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
    order: -1;
  }

  .nav-link.left,
  .nav-link.right {
    order: 1;
  }

  .nav-link.bottom {
    margin-top: 1rem;
  }

  .social-links {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
  }

  /* Professional page */
  #professional {
    overflow-y: auto;
  }

  .professional-inner {
    padding: 3.5rem 1rem 2rem;
    height: auto;
  }

  .professional-inner h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .timeline-intro {
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
  }

  /* Hide desktop timeline, show mobile */
  .desktop-only {
    display: none !important;
  }

  .mobile-timeline {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  #professional .back-btn {
    top: 1rem;
    left: 1rem;
    transform: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .timeline-tooltip {
    width: 90vw;
    max-width: 340px;
  }

  .year-selection {
    width: 90vw;
    max-width: 340px;
  }
}


