/* ============================================================
   AURORA THEME, GLASSMORPHISM & SMOOTH PAGE TRANSITIONS
   ============================================================ */

:root {
  --bg-deep: #080c10;
  --bg-surface: rgba(14, 20, 26, 0.75);
  --bg-card: rgba(18, 26, 34, 0.65);
  --bg-card-hover: rgba(24, 36, 48, 0.85);
  
  --aurora-mint: #34d399;
  --aurora-emerald: #10b981;
  --aurora-purple: #a855f7;
  --aurora-cyan: #22d3ee;
  
  --border-line: rgba(255, 255, 255, 0.08);
  --border-shine: rgba(52, 211, 153, 0.35);
  
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Anton', 'Inter Tight', sans-serif;
  
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Canvas & Aurora Mesh */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.aurora-bg-mesh {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.06) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-wrap {
  padding: 90px 0;
  position: relative;
}

.section-header {
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--aurora-mint);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 580px;
  margin-top: 8px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--aurora-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel Card */
.panel-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-card:hover {
  border-color: var(--border-shine);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(52, 211, 153, 0.12);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-line);
}

.chip-selected {
  background: rgba(52, 211, 153, 0.15);
  color: var(--aurora-mint);
  border-color: rgba(52, 211, 153, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--aurora-emerald), var(--aurora-mint));
  color: #070908;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-line);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-shine);
  transform: translateY(-2px);
}

/* ============================================================
   PAGE SECTION TRANSITION & SMOOTH SCROLL ANIMATIONS
   ============================================================ */

/* Scroll Reveal với chuyển động tịnh tiến và độ sâu */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hiệu ứng chớp chuyển trang mềm mại (Smooth Section Fade Pulse) */
.page-transitioning {
  opacity: 0.3;
  filter: blur(4px);
  transform: translateY(8px);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

/* Site Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-line);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-motto {
  font-weight: 700;
  color: var(--aurora-mint);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
