@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Crimson+Text:wght@400;600&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --primary-color: #8b5cf6;
  --secondary-color: #f59e0b;
  --accent-color: #06d6a0;
  --danger-color: #ef4444;
  --dark-bg: #0d0d0d;
  --darker-bg: #000000;
  --card-bg: rgba(20, 20, 30, 0.9);
  --text-light: #ffffff;
  --text-primary: #f3f4f6;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --mystical-purple: #6366f1;
  --mystical-gold: #fbbf24;
  --mystical-cyan: #22d3ee;
  --shadow-mystical: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-glow: 0 0 50px rgba(251, 191, 36, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 25%, #0f0f23 100%);
  color: var(--text-light);
  font-family: 'Crimson Text', 'Times New Roman', serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  font-size: 16px;
}

/* Animated mystical background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  animation: mysticalFloat 20s ease-in-out infinite;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(139, 92, 246, 0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(251, 191, 36, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(34, 211, 238, 0.3), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: twinkle 15s linear infinite;
  z-index: -1;
}

@keyframes mysticalFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
  33% { transform: translateY(-30px) rotate(120deg); opacity: 1; }
  66% { transform: translateY(30px) rotate(240deg); opacity: 0.8; }
}

@keyframes mysticalFloat2 {
  0%, 100% {
    transform: translateX(0px);
  }
  25% {
    transform: translateX(-15px);
  }
  75% {
    transform: translateX(15px);
  }
}

@keyframes twinkle {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-200px) translateY(-100px); }
}

/* Typography - Tối ưu cho tiếng Việt */
.mystical-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  color: var(--text-light);
  text-shadow: 
    0 0 10px rgba(139, 92, 246, 0.8),
    0 0 20px rgba(139, 92, 246, 0.6),
    0 0 30px rgba(139, 92, 246, 0.4);
  letter-spacing: 1px;
}

.elegant-text {
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  color: var(--mystical-gold);
  text-shadow: 
    0 0 5px rgba(251, 191, 36, 0.8),
    0 0 10px rgba(251, 191, 36, 0.6),
    0 0 15px rgba(251, 191, 36, 0.4);
  font-weight: 700;
}

.glowing-text {
  color: var(--text-light);
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(34, 211, 238, 0.6),
    0 0 15px rgba(34, 211, 238, 0.4);
}

/* Header styles */
.mystical-header {
  background: linear-gradient(135deg, 
    rgba(13, 13, 13, 0.95) 0%, 
    rgba(26, 26, 46, 0.95) 50%, 
    rgba(13, 13, 13, 0.95) 100%);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light) !important;
  text-shadow: 
    0 0 10px rgba(139, 92, 246, 0.8),
    0 0 20px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  text-shadow: 
    0 0 15px rgba(139, 92, 246, 1),
    0 0 30px rgba(139, 92, 246, 0.6);
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1.05rem;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.navbar-nav .nav-link:hover::before {
  opacity: 1;
}

.navbar-nav .nav-link:hover {
  color: var(--text-light) !important;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  transform: translateY(-2px);
}

/* Dropdown menu */
.dropdown-menu {
  background: rgba(20, 20, 30, 0.95) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-mystical);
}

.dropdown-item {
  color: var(--text-primary) !important;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(139, 92, 246, 0.2) !important;
  color: var(--text-light) !important;
  text-shadow: 0 0 5px rgba(139, 92, 246, 0.6);
}

/* Hero section */
.hero-section {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse at bottom, rgba(251, 191, 36, 0.1) 0%, transparent 70%),
    linear-gradient(135deg, rgba(13, 13, 13, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="glow"><feGaussianBlur stdDeviation="2" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><circle cx="20" cy="20" r="1" fill="rgba(139,92,246,0.6)" filter="url(%23glow)"/><circle cx="80" cy="30" r="0.5" fill="rgba(251,191,36,0.8)" filter="url(%23glow)"/><circle cx="40" cy="70" r="0.8" fill="rgba(34,211,238,0.7)" filter="url(%23glow)"/><circle cx="70" cy="80" r="0.6" fill="rgba(255,255,255,0.5)" filter="url(%23glow)"/></svg>');
  animation: mysticalOrbs 25s linear infinite;
  opacity: 0.6;
}

@keyframes mysticalOrbs {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  100% { transform: translateX(-100px) translateY(-50px) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-shadow: 
    0 0 20px rgba(139, 92, 246, 0.8),
    0 0 40px rgba(139, 92, 246, 0.4);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

/* Cards với hiệu ứng thần bí */
.mystical-card {
  background: linear-gradient(145deg, 
    rgba(20, 20, 30, 0.9) 0%,
    rgba(30, 30, 50, 0.8) 50%,
    rgba(20, 20, 30, 0.9) 100%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mystical-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    var(--mystical-purple),
    var(--mystical-gold),
    var(--mystical-cyan),
    var(--mystical-purple));
  background-size: 300% 300%;
  border-radius: 20px;
  opacity: 0;
  animation: borderGlow 3s ease-in-out infinite;
  z-index: -1;
} 

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
} 

.mystical-card .card-body {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
}

.mystical-card .card-title {
  color: var(--text-light);
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.3rem;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.mystical-card .card-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1rem;
}

.feature-icon {
  font-size: 4rem;
  background: linear-gradient(45deg, var(--mystical-purple), var(--mystical-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
  animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Buttons thần bí */
.btn-mystical {
  background: linear-gradient(45deg, var(--mystical-purple), var(--mystical-gold));
  border: none;
  color: var(--text-light);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  box-shadow: 
    0 8px 25px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}

.btn-mystical::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.6s ease;
}

.btn-mystical:hover::before {
  left: 100%;
}

.btn-mystical:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 15px 40px rgba(139, 92, 246, 0.5),
    0 0 30px rgba(251, 191, 36, 0.3);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.btn-outline-light {
  border: 2px solid var(--mystical-cyan);
  color: var(--mystical-cyan) !important;
  background: transparent;
  padding: 13px 33px;
  border-radius: 30px;
  font-weight: 600;
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  transition: all 0.4s ease;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
  font-size: 0.95rem;
}

.btn-outline-light:hover {
  background: var(--mystical-cyan);
  color: var(--dark-bg) !important;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(34, 211, 238, 0.4);
  text-shadow: none;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.status-available {
  background: linear-gradient(45deg, rgba(6, 214, 160, 0.3), rgba(6, 214, 160, 0.1));
  color: var(--accent-color);
  border: 1px solid rgba(6, 214, 160, 0.5);
  box-shadow: 0 0 15px rgba(6, 214, 160, 0.2);
}

.status-coming-soon {
  background: linear-gradient(45deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.1));
  color: var(--mystical-gold);
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

/* Footer */
.mystical-footer {
  background: linear-gradient(135deg, 
    var(--darker-bg) 0%, 
    rgba(26, 26, 46, 0.95) 50%, 
    var(--darker-bg) 100%);
  border-top: 2px solid rgba(139, 92, 246, 0.3);
  margin-top: 4rem;
  position: relative;
}

.mystical-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--mystical-purple), 
    var(--mystical-gold), 
    var(--mystical-cyan), 
    transparent);
}

.mystical-footer h5, .mystical-footer h6 {
  color: var(--text-light);
  font-family: 'Playfair Display', 'Times New Roman', serif;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.mystical-footer .text-muted {
  color: var(--text-secondary) !important;
}

.mystical-footer a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.mystical-footer a:hover {
  color: var(--mystical-gold) !important;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  text-decoration: none !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  margin-right: 10px;
}

.social-links a:hover {
  background: var(--mystical-gold);
  color: var(--dark-bg) !important;
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Floating animation */
.floating {
  animation: mysticalFloat2 2s ease-in-out infinite;
}

/* Section backgrounds */
.section-dark {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(26, 26, 46, 0.6) 50%, 
    rgba(0, 0, 0, 0.8) 100%);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(139,92,246,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(251,191,36,0.1)"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
}

/* Text colors - Tối ưu cho tiếng Việt */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-light) !important;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.lead {
  color: var(--text-secondary) !important;
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 1.15rem;
}

p {
  color: var(--text-secondary);
  font-family: 'Crimson Text', 'Times New Roman', serif;
}

.text-light {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.display-4, .display-5 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

/* Em text styling */
em {
  color: var(--mystical-gold);
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
    letter-spacing: 1px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .mystical-card .card-body {
    padding: 2rem;
  }
  
  .feature-icon {
    font-size: 3rem;
  }
  
  body {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }
  
  .mystical-card .card-body {
    padding: 1.5rem;
  }
  
  body {
    font-size: 14px;
  }
  
  .btn-mystical, .btn-outline-light {
    font-size: 0.9rem;
    padding: 12px 25px;
  }
}