html { scroll-behavior: smooth; color-scheme: light; }
body { font-family: 'Inter', sans-serif; color: #1f2937; background-color: #ffffff; }
h1, h2, h3, h4, .font-display { font-family: 'Poppins', sans-serif; }

::selection { background: #0808b6; color: #fff; }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.glass-dark {
  background: rgba(8, 8, 182, 0.25);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Gradients (solid blue fallback first, so text stays visible if the gradient fails to render) */
.grad-primary {
  background-color: #0808b6;
  background-image: linear-gradient(135deg, #0808b6 0%, #2e2ee0 50%, #4a4af0 100%);
}
.grad-hero {
  background-color: #0808b6;
  background-image: radial-gradient(circle at 20% 20%, #1414d8 0%, #0808b6 45%, #04044a 100%);
}
.grad-text {
  background: linear-gradient(90deg, #0808b6, #4a4af0 60%, #7d7dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nav underline */
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0%; height: 2px;
  background: currentColor; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.nav-active { color: #0808b6; }
.nav-link.nav-active::after { width: 100%; }

/* Menu color: white while the navbar floats over the dark hero, dark once scrolled onto a white background */
#navbar .nav-menu, #navbar .nav-menu .nav-link { color: #ffffff; transition: color 0.3s ease; }
#navbar .nav-menu .nav-link:hover { color: #ffffff; opacity: 0.75; }
#navbar .nav-menu .nav-link.nav-active { color: #ffffff; }
#navbar.scrolled .nav-menu, #navbar.scrolled .nav-menu .nav-link { color: #1f2937; }
#navbar.scrolled .nav-menu .nav-link:hover { color: #0808b6; opacity: 1; }
#navbar.scrolled .nav-menu .nav-link.nav-active { color: #0808b6; }

/* Section shell */
.section-rounded { border-radius: 2.5rem; }

/* Card hover */
.lift { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease; }
.lift:hover { transform: translateY(-10px); box-shadow: 0 25px 60px -15px rgba(8,8,182,0.25); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f8f9ff; }
::-webkit-scrollbar-thumb { background: #0808b6; border-radius: 10px; }

/* Floating buttons pulse */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-pulse { animation: pulseRing 2.2s infinite; }

@keyframes blob {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
.animate-blob { animation: blob 8s infinite ease-in-out; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* Testimonial fade */
.testi-slide { display: none; animation: fadeIn 0.6s ease; }
.testi-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: translateY(0);} }

/* FAQ */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; }

/* Gallery overlay */
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img { transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,182,0.88), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: flex-end; padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; background: rgba(4,4,40,0.94); z-index: 100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
#lightbox.active { opacity: 1; pointer-events: auto; }
#lightbox img { max-width: 88vw; max-height: 78vh; border-radius: 1.5rem; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
#lightbox figcaption { color: #dbe0ff; text-align: center; margin-top: 1rem; font-size: 0.95rem; }

/* Dots pattern background */
.dots-pattern {
  background-image: radial-gradient(rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

img { background-color: #eef0ff; }

/* Navbar states */
#navbar.scrolled { background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -12px rgba(8,8,182,0.2); }
