:root {
  --bg-color: #050508;
  --glass-bg: rgba(20, 20, 35, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-color: #00f2fe;
  --accent-glow: rgba(0, 242, 254, 0.4);
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
}

body {
  margin: 0;
  font-family: 'Inter', 'Microsoft JhengHei', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Background Hero */
.hero-section {
  position: relative;
  height: 55vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('hero_bg.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,8,0.3) 0%, rgba(5,5,8,0.7) 60%, var(--bg-color) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.text-glow {
  text-shadow: 0 0 20px rgba(255,255,255,0.2), 0 0 40px var(--accent-glow);
  letter-spacing: 2px;
}

.text-muted-glass { color: var(--text-muted); font-size: 1.1rem; }

/* Glassmorphism utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.15);
}

/* Stats Section */
.stats-section {
  position: relative;
  margin-top: -80px;
  z-index: 10;
}
.stat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #a78bfa;
}
.stat-icon.text-accent { color: #34d399; }
.stat-icon.text-info { color: #38bdf8; }
.stat-icon.text-success { color: #fbbf24; }
.stat-value {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline */
.timeline-section { position: relative; padding-top: 60px; padding-bottom: 100px; }
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
  top: 0; bottom: 0; left: 50%;
  margin-left: -1px;
  box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-item {
  padding: 15px 40px;
  position: relative;
  background: inherit;
  width: 50%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-dot {
  position: absolute;
  width: 20px; height: 20px;
  right: -10px; top: 40px;
  background-color: var(--bg-color);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: background-color 0.3s;
}
.timeline-item:hover .timeline-dot {
  background-color: var(--accent-color);
}
.timeline-item.right .timeline-dot { left: -10px; }

.timeline-content {
  padding: 28px;
  position: relative;
  border-radius: 16px;
  text-align: left;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.3;
}

.timeline-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.6);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-main);
  border-radius: 30px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.glass-btn:hover {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left; }
  .timeline-item.left, .timeline-item.right { left: 0; }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot { left: 21px; }
  .hero-section { height: 40vh; min-height: 350px; }
  .stats-section { margin-top: -40px; }
  .stat-value { font-size: 1.8rem; }
  .stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
  .stat-label { font-size: 0.8rem; }
}
