/* ========================================
   Experience Page — Sisi Wang
   Palette: #FFC2D9 #FF99BE #C2E1FC #96CBFC #4E8BC4
   Inspired by swissgrid.posterhouse.org
   ======================================== */

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Times New Roman', Times, serif;
  overflow-x: hidden;
  background: #FFC2D9;
  color: #2a2a2a;
  transition: background-color 1.2s ease;
}

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF99BE, #96CBFC, #4E8BC4);
  z-index: 9999;
  width: 0%;
  transition: width 0.08s linear;
}

/* ===== Mouse Glow ===== */
.mouse-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150,203,252,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease-out, top 0.12s ease-out;
}

/* ===== Background Canvas ===== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 30px;
  right: 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-list li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-list li a:hover { color: #FFC2D9; }
.nav-list li a:hover::after { width: 100%; background: #FFC2D9; }

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: white;
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
  z-index: 1001;
}

/* ===== Reveal Animation ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Timeline Side Nav ===== */
.timeline-nav {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.6s;
}

.timeline-nav.visible { opacity: 1; }

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(78,139,196,0.15);
  z-index: -1;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #96CBFC;
  background: transparent;
  cursor: pointer;
  transition: all 0.35s;
  position: relative;
  z-index: 1;
}

.timeline-dot.active {
  background: #FF99BE;
  border-color: #FF99BE;
  transform: scale(1.5);
  box-shadow: 0 0 12px rgba(255,153,190,0.4);
}

.timeline-dot:hover { border-color: #FF99BE; transform: scale(1.3); }

.timeline-dot-label {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4E8BC4;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  font-weight: bold;
}

.timeline-dot:hover .timeline-dot-label,
.timeline-dot.active .timeline-dot-label { opacity: 1; }


/* ========================================
   HERO WITH VIDEO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(255,194,217,0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 110px;
  font-weight: bold;
  color: white;
  letter-spacing: 6px;
  text-align: center;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #FF99BE, rgba(255,255,255,0.6));
  margin: 28px 0;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 13px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.7);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  font-size: 24px;
  color: rgba(255,255,255,0.6);
  z-index: 2;
  animation: floatY 2.5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* ========================================
   HORIZONTAL SCROLL SECTION
   ======================================== */
.hscroll-track {
  height: 500vh;
  position: relative;
}

.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hscroll-label {
  position: absolute;
  top: 36px;
  left: 80px;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #4E8BC4;
  font-weight: bold;
  z-index: 10;
}

.hscroll-frame {
  display: flex;
  gap: 40px;
  padding: 0 80px;
  will-change: transform;
  align-items: center;
  height: 78vh;
}

/* ===== Card ===== */
.hscroll-card {
  flex: 0 0 72vw;
  max-width: 980px;
  height: 68vh;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 50px rgba(78,139,196,0.1);
  transition: box-shadow 0.4s;
}

.hscroll-card:hover {
  box-shadow: 0 20px 70px rgba(78,139,196,0.18);
}

/* --- Two-column card (image + text) --- */
.card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* --- Wide card (text + abstract accent, no photo) --- */
.card-inner--wide {
  grid-template-columns: 1fr 0.6fr;
}

.card-visual {
  position: relative;
  overflow: hidden;
}

.card-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hscroll-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Card decorations */
.card-deco {
  position: absolute;
  width: 65px;
  height: 65px;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.card-deco svg { width: 100%; height: 100%; }
.deco-tr { top: 14px; right: 14px; }
.deco-bl { bottom: 14px; left: 14px; }

.hscroll-card:hover .card-deco { opacity: 0.55; transform: rotate(6deg) scale(1.08); }

/* Card text */
.card-text {
  padding: 45px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-text--full {
  padding: 45px 42px;
}

.card-number {
  font-size: 95px;
  font-weight: bold;
  color: rgba(78,139,196,0.05);
  position: absolute;
  top: -8px;
  right: 18px;
  line-height: 1;
  user-select: none;
}

.card-tag {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #FF99BE;
  margin-bottom: 12px;
  font-weight: bold;
}

.card-title {
  font-size: 28px;
  font-weight: bold;
  color: #4E8BC4;
  margin-bottom: 16px;
  line-height: 1.2;
}

.card-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: #444;
}

.card-pull-quote {
  margin-top: 24px;
  font-size: 18px;
  font-style: italic;
  color: #FF99BE;
  line-height: 1.5;
  padding-left: 16px;
  border-left: 3px solid #FFC2D9;
}

/* ===== Abstract accents for no-image cards ===== */
.card-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.accent-svg {
  width: 100%;
  height: 100%;
  max-height: 90%;
}

.accent-leadership { background: linear-gradient(160deg, rgba(194,225,252,0.15), rgba(255,194,217,0.1)); }
.accent-globe { background: linear-gradient(160deg, rgba(150,203,252,0.12), rgba(255,153,190,0.08)); }
.accent-timeline { background: linear-gradient(160deg, rgba(255,194,217,0.1), rgba(194,225,252,0.12)); }


/* ========================================
   PULL QUOTE
   ======================================== */
.pull-quote {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
}

.pq-text {
  font-size: 40px;
  font-weight: bold;
  color: #4E8BC4;
  max-width: 780px;
  line-height: 1.4;
}

.pq-text em { font-style: italic; color: #FF99BE; }


/* ========================================
   INTERNSHIP
   ======================================== */
.intern-section {
  padding: 100px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.intern-header { margin-bottom: 50px; }

.intern-tag {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #E176C3;
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.intern-title {
  font-size: 40px;
  font-weight: bold;
  color: #FF99BE;
  line-height: 1.2;
}

.intern-role {
  font-size: 14px;
  letter-spacing: 2px;
  color: #E176C3;
  margin-top: 10px;
  display: block;
}

.intern-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.intern-body p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 22px;
}

.intern-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(225,118,195,0.12);
  position: sticky;
  top: 120px;
  transition: transform 0.4s;
}

.intern-image-wrap:hover { transform: scale(1.02); }

.intern-image-wrap img { width: 100%; display: block; }


/* ========================================
   CONTINUED
   ======================================== */
.continued {
  text-align: center;
  padding: 70px 40px 30px;
  font-size: 26px;
  font-weight: bold;
  color: #E176C3;
  letter-spacing: 4px;
  opacity: 0.55;
}


/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  text-align: center;
  padding: 40px 20px 50px;
  color: #4E8BC4;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.footer-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #FF99BE, #4E8BC4);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.footer-name { font-weight: bold; color: #FF99BE; }

.footer-year { margin-top: 6px; font-size: 12px; opacity: 0.6; }


/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 80px; }
  .hscroll-card { flex: 0 0 85vw; }
  .hscroll-frame { padding: 0 50px; gap: 30px; }
  .hscroll-label { left: 50px; }
  .card-text { padding: 35px 28px; }
  .card-title { font-size: 24px; }
  .card-number { font-size: 75px; }
  .card-inner--wide { grid-template-columns: 1fr 0.5fr; }
  .intern-section { padding: 80px 50px; }
  .intern-title { font-size: 34px; }
  .pq-text { font-size: 32px; }
}


/* ========================================
   RESPONSIVE — MOBILE (vertical stack)
   ======================================== */
@media (max-width: 768px) {
  /* Nav */
  .navbar { top: 20px; right: 20px; }
  .menu-toggle { display: block; position: fixed; }

  .nav-list {
    position: fixed;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .nav-list.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list li a {
    color: white;
    text-shadow: none;
    font-size: 16px;
  }

  .timeline-nav { display: none; }
  .mouse-glow { display: none; }

  /* Hero */
  .hero-title { font-size: 52px; letter-spacing: 3px; }
  .hero-label { font-size: 10px; letter-spacing: 5px; }
  .hero-subtitle { font-size: 11px; letter-spacing: 3px; }

  /* Convert horizontal scroll → vertical card stack */
  .hscroll-track {
    height: auto;
  }

  .hscroll-sticky {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 50px 20px;
  }

  .hscroll-label {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 28px;
    text-align: center;
  }

  .hscroll-frame {
    flex-direction: column;
    padding: 0;
    height: auto;
    gap: 24px;
    transform: none !important;
  }

  .hscroll-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .card-inner {
    grid-template-columns: 1fr !important;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
  }

  .card-inner--wide {
    grid-template-columns: 1fr !important;
  }

  .card-visual {
    height: auto;
  }

  .card-img-wrap img {
    object-fit: contain;
    height: auto;
    max-height: 280px;
  }

  .card-accent {
    height: 180px;
    order: -1; /* put accent above text on mobile */
  }

  .card-text {
    padding: 28px 22px;
  }

  .card-title { font-size: 22px; }
  .card-body { font-size: 13.5px; line-height: 1.75; }
  .card-number { font-size: 55px; }
  .card-pull-quote { font-size: 15px; margin-top: 18px; }

  .card-deco { width: 50px; height: 50px; }

  /* Pull quote */
  .pq-text { font-size: 24px; }
  .pull-quote { min-height: 35vh; padding: 60px 24px; }

  /* Internship */
  .intern-section { padding: 60px 20px; }
  .intern-grid { grid-template-columns: 1fr; gap: 30px; }
  .intern-image-wrap { position: relative; top: auto; }
  .intern-title { font-size: 28px; }
  .intern-body p { font-size: 14.5px; }

  /* Continued */
  .continued { font-size: 20px; padding: 50px 20px 20px; }
}


/* ========================================
   RESPONSIVE — SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
  .navbar { top: 15px; right: 15px; }
  .hero-title { font-size: 38px; }
  .hero-label { font-size: 9px; }

  .card-text { padding: 22px 18px; }
  .card-title { font-size: 20px; }
  .card-body { font-size: 13px; }
  .card-number { font-size: 45px; }
  .card-visual { height: auto; }

  .card-img-wrap img {
    max-height: 240px;
  }
  .card-accent { height: 150px; }

  .pq-text { font-size: 20px; }
  .intern-section { padding: 50px 16px; }
  .intern-title { font-size: 24px; }
  .intern-body p { font-size: 13.5px; }
  .continued { font-size: 18px; }
}