:root {
  --bg-navy-950: #05070d;
  --bg-navy-900: #0a0e1a;
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-navy-950);
}

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

::selection {
  background: var(--accent-cyan);
  color: var(--bg-navy-950);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-navy-950); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-cyan), var(--accent-blue)); border-radius: 999px; }

/* Subtle grid backdrop */
.bg-grid {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Radial glow blobs */
.glow-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 9s ease-in-out infinite;
  will-change: opacity, filter;
}
.glow-blob:nth-of-type(2) { animation-delay: -3.5s; }

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-blob { animation: none; }
}

/* Gradient text — subtle animated shimmer */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 7s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
}

/* Nav link underline animation */
.nav-link { position: relative; color: #cbd5e1; transition: color .25s ease; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transition: width .3s ease;
}
.nav-link:hover { color: #ffffff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent-cyan); }

/* Floating WhatsApp pulse */
.wa-pulse { position: relative; }
.wa-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25D366;
  animation: waPulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Card hover lift */
.hover-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.hover-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px -15px rgba(34, 211, 238, 0.25); border-color: rgba(34, 211, 238, 0.4); }

/* Mobile menu collapse */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height .4s ease; background-color: rgba(5, 7, 13, 0.98); }
#mobile-menu.open { max-height: 600px; }

/* Scrolled navbar background (explicit rgba — the navy-950/* Tailwind opacity
   modifier silently fails to generate a rule in the CDN JIT runtime) */
#navbar.nav-scrolled { background-color: rgba(5, 7, 13, 0.9); }

/* Browser-mockup chrome bar */
.browser-chrome-bar { background-color: rgba(5, 7, 13, 0.9); }

/* Fade overlay on screenshot mockups */
.shot-fade { background: linear-gradient(to top, rgba(5, 7, 13, 0.45), transparent 55%); }

/* Marquee-style floating shapes */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.animate-float { animation: floatY 6s ease-in-out infinite; }
.animate-float-slow { animation: floatY 9s ease-in-out infinite; }

/* Focus ring accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}
