/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Exo+2:wght@400;500;600&family=Outfit:wght@500;700&display=swap');

/* ============================
   ROOT VARIABLES
   ============================ */
:root {
  --bg-dark: #0a0a0f;
  --bg-light: #111827;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --glass-bg: rgba(17, 24, 39, 0.6);
  --blur: 16px;
}

/* ============================
   BASE STYLES
   ============================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', 'Exo 2', sans-serif;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0a0a0f 70%);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
}

/* ============================
   GLASSMORPHIC CARD (Consolidated)
   ============================ */
.glass {
  background: rgba(17, 25, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.glass:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 197, 253, 0.4);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

/* ============================
   GRADIENT TEXT UTILITY
   ============================ */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================
   NAVIGATION STYLES
   ============================ */
.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover {
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.dropdown .nav-link {
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============================
   MOBILE MENU
   ============================ */
.mobile-menu {
  animation: fadeInDown 0.3s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-nav-link.active + .mobile-dropdown-content {
  max-height: 1000px;
}

/* ============================
   FAQ STYLES
   ============================ */
.faq-question {
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 1rem;
}

.faq-icon {
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

.faq-item {
  margin-bottom: 1rem;
  background: rgba(17, 24, 39, 0.5);
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-section {
  margin-bottom: 3rem;
}

/* ============================
   SECTION LAYOUT
   ============================ */
#plans,
#contact {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

#services .max-w-7xl,
#plans .max-w-7xl,
#contact .max-w-4xl {
  margin-left: -1rem !important;
}

/* Section depth illusion */
.section {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--blur));
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.section:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Section divider */
.divider {
  height: 4rem;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0));
}

/* Animated gradient line divider */
.divider-animated {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
  background-size: 300% 100%;
  animation: moveGradient 5s linear infinite;
  margin: 2rem 0;
}

@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ============================
   BUTTONS
   ============================ */
.btn-modern {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: 0.75rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.btn-modern:hover::before {
  left: 125%;
}

.btn-modern:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  transform: translateY(-3px);
}

/* ============================
   GLOW EFFECTS
   ============================ */
.glow {
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  transition: all 0.3s ease;
}

.glow:hover {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.8);
}

.glow-border {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
              linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)) border-box;
  border-radius: 0.75rem;
}

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

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Slow spin */
@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 60s linear infinite;
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

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

/* Staggered reveal timing */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }

/* ============================
   CARD EFFECTS
   ============================ */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Pricing card glow */
.pricing-card {
  position: relative;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.pricing-card:hover::before {
  opacity: 1;
}

/* ============================
   ECLIPSE BACKGROUND
   ============================ */
.eclipse-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(120px);
  animation: moveEclipse 40s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes moveEclipse {
  0% {
    transform: translate(-45%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-55%, -52%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -47%) scale(0.9);
    opacity: 0.8;
  }
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: linear-gradient(to right, #0f172a, #111827);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

footer a {
  color: var(--accent-cyan);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-purple);
}