/* ---------------------------------------------------------------
   Elephanto – Custom CSS (complements Tailwind via CDN)
   --------------------------------------------------------------- */

/* ---------------------------------------------------------------
   1. CSS VARIABLES – Color System & Typography
   --------------------------------------------------------------- */
:root {
  --color-navy: #0f172a;               /* Hero bg, footer */
  --color-navy-light: #1e293b;         /* Cards, dark sections */
  --color-blue: #3b82f6;               /* Primary CTA, accents */
  --color-blue-hover: #2563eb;         /* CTA hover */
  --color-text: #f8fafc;               /* Light text on dark */
  --color-text-muted: #94a3b8;        /* Muted text */
  --font-main: 'Inter', sans-serif;
}

/* ---------------------------------------------------------------
   2. GLOBAL STYLES
   --------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Custom thin dark scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-navy-light);
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* ---------------------------------------------------------------
   3. NAVBAR – Sticky + Backdrop Blur on scroll
   --------------------------------------------------------------- */
header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
header.scrolled {
  background-color: rgba(15, 23, 42, 0.85); /* --color-navy with opacity */
  backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------------
   4. HERO SECTION – Animated Gradient & Glowing Headline
   --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  background-size: 600% 600%;
  animation: gradientShift 12s ease infinite;
  z-index: -1;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-headline {
  font-family: var(--font-main);
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(255,255,255,0.4),
               0 0 16px rgba(255,255,255,0.2);
}

/* CTA Shimmer effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: transform 0.7s ease;
}
.btn-shimmer:hover::after {
  transform: translateX(250%) skewX(-20deg);
}

/* ---------------------------------------------------------------
   5. FEATURE CARDS – Hover lift & Icon gradient circle
   --------------------------------------------------------------- */
.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--color-navy-light);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue), #2563eb);
  color: #fff;
}

/* ---------------------------------------------------------------
   6. PRICING CARDS – Hover scale, Pro badge
   --------------------------------------------------------------- */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}
.pricing-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.pricing-card.popular {
  border: 2px solid var(--color-blue);
  background: #f8fafc; /* very light gray for contrast */
}

.popular-badge {
  background: var(--color-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

/* ---------------------------------------------------------------
   7. TRUST BADGES – Glassmorphism style
   --------------------------------------------------------------- */
.trust-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}

/* ---------------------------------------------------------------
   8. ANIMATIONS – Fade‑in‑up for scroll triggered elements
   --------------------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------
   9. MOBILE MENU – Slide‑down animation
   --------------------------------------------------------------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.show {
  max-height: 500px; /* enough for all items */
}

/* ---------------------------------------------------------------
   10. RESPONSIVE TYPOGRAPHY (Tailwind handles most, but add tweaks)
   --------------------------------------------------------------- */
@media (min-width: 640px) {
  .hero-headline { font-size: 2.75rem; }
}
@media (min-width: 768px) {
  .hero-headline { font-size: 3rem; }
}

/* ---------------------------------------------------------------
   11. Utility Classes (non‑Tailwind) – Quick usage
   --------------------------------------------------------------- */
.text-navy { color: var(--color-navy); }
.bg-navy { background-color: var(--color-navy); }
.bg-electric { background-color: var(--color-blue); }
.hover\:bg-electric:hover { background-color: var(--color-blue-hover); }

/* End of custom CSS */