:root {
  --navy: #0d1e34;
  --ocean: #0077b6;
  --ocean-light: #00b4d8;
  --gold: #e8a020;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Arimo', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  line-height: 1.8;
}

#progress-bar {
  position: fixed; top: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--ocean), var(--gold));
  z-index: 1000; width: 0%; transition: width 0.1s;
}

#scrolly { position: relative; background-color: #fff; }
.sticky-bg { position: sticky; top: 0; width: 100%; height: 100vh; z-index: 0; overflow: hidden; }

#bg-port {
  position: absolute; inset: 0;
  background-image: url('https://www.gemadept.com.vn/wp-content/uploads/2025/02/imported-image-1739159180.webp');
  background-size: cover; background-position: center;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

#bg-ship {
  position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
  background-image: url('https://cafefcdn.com/203337114487263232/2026/5/24/photo-1779629412183-1779629412420167879030.png');
  background-size: cover; 
  background-position: 100% center; 
  transition: opacity 1s ease-in-out;
  opacity: 0;
  will-change: background-position;
}

#bg-port.active, #bg-ship.active { opacity: 1; }

.scroll-text-container { position: relative; z-index: 10; padding-top: 10vh; padding-bottom: 20vh; }

.step {
  margin: 0 auto 70vh auto; max-width: 800px;
  opacity: 0.1; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.5rem;
}
.step.is-active { opacity: 1; transform: translateY(0); }

.glass-card {
  background: rgba(255, 255, 255, 0.65); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px; 
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,1);
}

.article-body { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; font-size: 1.15rem; color: #1e293b; }
.article-body p { margin-bottom: 1.5rem; font-weight: 400; }

.dropcap::first-letter {
  font-family: 'Playfair Display', serif; font-size: 4.8rem; float: left;
  line-height: 0.8; padding-right: 0.8rem; padding-top: 0.5rem; color: var(--ocean); font-weight: 900;
}

.subtitle {
  font-family: 'Arimo', sans-serif; 
  font-size: 1.7rem; 
  font-weight: 800; 
  color: var(--navy);
  margin-top: 5rem; 
  margin-bottom: 2rem; 
  line-height: 1.4; 
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 1rem;
}
.subtitle::after {
  content: ''; 
  position: absolute; 
  left: 0; 
  bottom: 0; 
  width: 60px; 
  height: 4px; 
  background: linear-gradient(90deg, var(--ocean), var(--gold));
  border-radius: 2px;
}

.chart-container {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(0,119,182,0.1); 
  border-radius: 16px; 
  padding: 2.5rem; 
  margin: 3.5rem 0; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.04), inset 0 2px 0 #fff;
  position: relative;
}

.modern-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
  border-color: rgba(0,119,182,0.3);
}

.expandable-content { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; }
.group.active .expandable-content { max-height: 300px; opacity: 1; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #cbd5e1; }

.bubble-chart-container { padding: 3rem 1.5rem; display: flex; flex-direction: column; gap: 3rem; background: linear-gradient(180deg, #fff, #f8fafc); border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 15px 35px rgba(0,0,0,0.03); }
.bubble-tier { display: flex; flex-direction: column; align-items: center; width: 100%; }
.bubble-tier-title { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: bold; color: var(--navy); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem; border-bottom: 2px solid var(--gold); padding-bottom: 0.5rem; }
.bubble-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; max-width: 850px; }
.bubble {
  display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 50%; padding: 1.5rem; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; 
  font-family: 'Arimo', sans-serif; font-size: 0.85rem; font-weight: 600; line-height: 1.3; animation: float 6s ease-in-out infinite; cursor: default;
}
.bubble:hover { transform: scale(1.1) translateY(-10px); z-index: 10; }

.tier-1 .bubble { background: linear-gradient(135deg, var(--navy), #172f54); border: 2px solid var(--gold); color: #fff; width: 115px; height: 115px; font-size: 0.75rem; box-shadow: 0 10px 20px rgba(13,30,52,0.2); }
.tier-2 .bubble { background: linear-gradient(135deg, var(--ocean-light), var(--ocean)); color: #fff; border: none; width: 135px; height: 135px; font-size: 0.85rem; box-shadow: 0 10px 20px rgba(0,119,182,0.2); }
.tier-3 .bubble { background: #fff; border: 2px solid var(--ocean); color: var(--navy); width: 155px; height: 155px; font-size: 0.95rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }
.bubble:nth-child(even) { animation-delay: 1s; animation-duration: 7s; }
.bubble:nth-child(3n) { animation-delay: 2s; animation-duration: 8s; }

.flow-overlay { display: none; position: fixed; inset: 0; background: rgba(7,17,31,0.92); z-index: 2000; align-items: center; justify-content: center; padding: 2rem; backdrop-filter: blur(5px); }
.flow-overlay.active { display: flex; animation: fadeIn 0.4s forwards; }
.flow-modal { background: linear-gradient(180deg, #0d1e34 0%, #08111e 100%); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; max-width: 900px; width: 100%; padding: 3rem; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.flow-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;}
.flow-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
@keyframes fadeIn { to { opacity: 1; } }

.straight-timeline { position: relative; padding: 4rem 0 2rem 0; max-width: 800px; margin: 0 auto; }
.timeline-line { position: absolute; top: 50%; left: 5%; right: 5%; height: 4px; background: #e2e8f0; transform: translateY(-50%); border-radius: 2px; }
.timeline-dot { position: absolute; top: 50%; width: 24px; height: 24px; background: #fff; border: 4px solid var(--ocean); border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%); transition: all 0.3s; box-shadow: 0 0 0 4px #fff; }
.timeline-dot:hover, .timeline-dot.active { background: var(--ocean); transform: translate(-50%, -50%) scale(1.4); box-shadow: 0 0 20px rgba(0, 119, 182, 0.4); }
.timeline-label { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); font-weight: 800; font-family: 'Arimo', sans-serif; text-transform: uppercase; color: var(--navy); font-size: 0.9rem; white-space: nowrap; letter-spacing: 1px; }
.timeline-content { display: none; background: #fff; padding: 2.5rem; border-radius: 16px; border: 1px solid #e2e8f0; border-left: 4px solid var(--ocean); margin-top: 1rem; animation: fadeIn 0.4s; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }