@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Dark Mode (Default / Space Aurora) */
  --bg-primary: #050510;
  --bg-secondary: #0a0b1a;
  --bg-glass: rgba(10, 11, 26, 0.4);
  --bg-card: rgba(15, 17, 38, 0.6);
  --text-main: #f0f0f5;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-card: rgba(0, 255, 204, 0.1);
  
  /* Aurora Accents */
  --aurora-1: #00ffcc; /* Emerald/Cyan */
  --aurora-2: #8b5cf6; /* Violet */
  --aurora-3: #3b82f6; /* Blue */
  
  --accent-glow: rgba(0, 255, 204, 0.3);
}

[data-theme="light"] {
  /* Light Mode (Morning Aurora / Frost) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-card: rgba(255, 255, 255, 0.8);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-glass: rgba(0, 0, 0, 0.05);
  --border-card: rgba(0, 255, 204, 0.3);
  
  --aurora-1: #059669; /* Darker Emerald */
  --aurora-2: #7c3aed; /* Darker Violet */
  --aurora-3: #2563eb; /* Darker Blue */
  
  --accent-glow: rgba(5, 150, 105, 0.15);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--aurora-2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--aurora-1);
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 var(--accent-glow);
}

.btn-aurora {
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
  color: #fff !important;
  border: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.btn-aurora::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--aurora-2), var(--aurora-1));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.btn-aurora:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* Blob Backgrounds */
.blob {
  position: fixed;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.5;
  border-radius: 50%;
  animation: float 20s infinite alternate;
}
.blob-1 {
  background: var(--aurora-1);
  width: 400px; height: 400px;
  top: -100px; left: -100px;
}
.blob-2 {
  background: var(--aurora-2);
  width: 500px; height: 500px;
  bottom: -200px; right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* Blinking Dot */
.blink-dot {
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Typewriter */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--aurora-1);
  margin-left: 4px;
  animation: blink 1s infinite;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.progress-bar-container {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}
.progress-bar {
  height: 100%;
  background: var(--aurora-1);
  width: 0%;
  transition: width 1.5s ease-out;
}

/* Speed Bar */
.speed-bar-track {
  background: var(--border-glass);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin: 10px 0;
}
.speed-bar-fill {
  background: linear-gradient(90deg, var(--aurora-3), var(--aurora-1));
  height: 100%;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Carousel */
.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollCarousel 40s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}
@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Phone Mockup */
.phone-mockup {
  border: 8px solid var(--border-glass);
  border-radius: 40px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: var(--border-glass);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

/* Modals */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Featured Package Glow */
.package-featured {
  position: relative;
}
.package-featured::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3));
  z-index: -1;
  border-radius: inherit;
  filter: blur(8px);
  opacity: 0.7;
}

/* Misc */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
