/* ─── Custom styles that complement Tailwind ─── */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Logo swap on scroll */
#navbar .logo-light { display: block; }
#navbar .logo-dark  { display: none;  }

#navbar.scrolled .logo-light { display: none;  }
#navbar.scrolled .logo-dark  { display: block; }

/* Nav link colors change on scroll */
#navbar .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

#navbar.scrolled .nav-link {
  color: #374151;
}

#navbar .nav-link:hover {
  color: #18CB96;
}

#navbar.scrolled .nav-link:hover {
  color: #18CB96;
}

/* ─── Hero grid pattern ─── */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Mock dashboard sidebar nav items ─── */
.mock-nav-item {
  font-size: 0.7rem;
  color: #9ca3af;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  cursor: default;
  transition: background 0.15s;
}

.mock-nav-item.active {
  background: #18CB96;
  color: white;
  font-weight: 600;
}

/* ─── Scroll reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ─── Service card hover effect ─── */
.service-card {
  will-change: transform;
}

/* ─── Pricing card ─── */
.pricing-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

/* ─── Mobile menu transition ─── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ─── Focus styles for accessibility ─── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #18CB96;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Cookie bar ─── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #1e1d2b;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-bar.visible {
  transform: translateY(0);
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #18CB96;
  border-radius: 3px;
}
