/* ===== Custom Dark Mode Refinements ===== */
:root {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-darker: #0A0F1E;
  --accent: #38BDF8;
  --accent-glow: rgba(56, 189, 248, 0.3);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(56, 189, 248, 0.15);
  --gradient-sky-indigo: linear-gradient(135deg, #38BDF8, #6366F1);
  --gradient-sky-purple: linear-gradient(135deg, #38BDF8, #A855F7);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7DD3FC;
}

/* ===== Glassmorphism Navbar ===== */
.glass-nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 0 1px 20px rgba(56, 189, 248, 0.06);
  transition: all 0.3s ease;
}
.glass-nav.scrolled {
  box-shadow: 0 4px 30px rgba(56, 189, 248, 0.12);
}

/* ===== Aurora / Light Halo Effects ===== */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: auroraFloat 8s ease-in-out infinite;
}
.aurora-orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #38BDF8 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}
.aurora-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
  top: 30%;
  right: -10%;
  animation-delay: 3s;
}
.aurora-orb:nth-child(3) {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #A855F7 0%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation-delay: 5s;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(-30px, -15px) scale(1.05); }
}

/* ===== Hero Glow Pulse ===== */
.hero-glow {
  position: relative;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient-sky-indigo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-sky-purple {
  background: var(--gradient-sky-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glow Button ===== */
.btn-glow {
  position: relative;
  background: var(--gradient-sky-indigo);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), 0 0 60px rgba(99, 102, 241, 0.15);
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.5), 0 0 80px rgba(99, 102, 241, 0.25);
}
.btn-glow:hover::after {
  opacity: 1;
}

/* ===== Feature Cards ===== */
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-sky-indigo);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.15), 0 0 100px rgba(99, 102, 241, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* ===== Stats Number Gradient ===== */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-sky-indigo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at top left, rgba(56, 189, 248, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.1);
  transform: translateY(-4px);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.2);
}
.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  transition: all 0.3s ease;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-icon {
  transition: all 0.3s ease;
  color: var(--text-muted);
  font-size: 14px;
}
.faq-item.active {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
}

/* ===== CTA Section Gradients ===== */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-menu a:hover {
  color: var(--accent);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(56, 189, 248, 0.06);
}
.site-footer a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: var(--accent);
}

/* ===== About Page Extra ===== */
.about-mission-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
}
.about-mission-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 40px rgba(56, 189, 248, 0.1);
}

/* ===== Contact Form ===== */
.contact-input {
  background: var(--bg-secondary);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.contact-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}
.contact-input::placeholder {
  color: var(--text-muted);
}
textarea.contact-input {
  resize: vertical;
  min-height: 140px;
}

/* ===== Fade-in Animation ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section divider glow ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.15), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* ===== Badge / Tag ===== */
.badge-sky {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}
