/* =============================================================
   Books & Budget - Custom Styles
   Brand: #0B192C (navy) | #0066FF (blue) | #00B4D8 (ocean)
   Font: Plus Jakarta Sans
   ============================================================= */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
section[id] { scroll-margin-top: 5.5rem; }

/* ---------- Navbar glass ---------- */
#navbar { transition: all .3s ease; }
#navbar.scrolled .glass-nav {
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 32px rgba(11,25,44,.08);
}
.glass-nav {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  margin-top: 0.9rem;
  box-shadow: 0 4px 24px rgba(11,25,44,.06);
}

/* ---------- Gradient button ---------- */
.btn-gradient {
  background: linear-gradient(135deg, #00B4D8 0%, #0066FF 100%);
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 8px 20px rgba(0,102,255,.25);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(0,102,255,.38);
}

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(135deg, #00B4D8, #0066FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Section badge ---------- */
.section-badge {
  display: inline-block;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: rgba(0,102,255,.08);
  color: #0066FF;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-badge-dark {
  display: inline-block;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Glass card ---------- */
.glass-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ---------- Floating hero mockup ---------- */
.float-anim { animation: floatY 6s ease-in-out infinite; }
.float-anim-delay { animation: floatY 6s ease-in-out 1.2s infinite; }
.float-anim-delay-2 { animation: floatY 6s ease-in-out 2.4s infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.bar { transition: height .5s ease; animation: growBar 1.2s ease; transform-origin: bottom; }
@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ---------- Marquee (infinite logo carousel) ---------- */
.marquee { animation: scrollX 26s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  filter: grayscale(.4);
  opacity: .85;
  transition: opacity .3s, filter .3s;
}
.logo-item:hover { filter: none; opacity: 1; }

/* ---------- Services tabs ---------- */
.tab-btn {
  background: #fff;
  border-color: #e2e8f0;
  color: #1E293B;
  cursor: pointer;
}
.tab-btn:hover { border-color: #0066FF; color: #0066FF; }
.tab-btn.active {
  background: linear-gradient(135deg, #00B4D8, #0066FF);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,102,255,.28);
}
.tab-panel { animation: fadeUp .5s ease; }
.tab-panel[hidden] { display: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11,25,44,.08);
  border-color: rgba(0,102,255,.35);
}
.icon-bubble {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0,180,216,.14), rgba(0,102,255,.14));
  color: #0066FF;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.check-li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.check-li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #0066FF;
  margin-top: .1rem;
}

/* ---------- Steps ---------- */
.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #00B4D8, #0066FF);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0,102,255,.3);
}

/* ---------- Pricing cards ---------- */
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  padding: 2.25rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11,25,44,.1);
  border-color: rgba(0,102,255,.4);
}
.pricing-card.popular {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #00B4D8, #0066FF) border-box;
  box-shadow: 0 24px 60px rgba(0,102,255,.18);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-6px); }
.popular-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00B4D8, #0066FF);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,102,255,.35);
  white-space: nowrap;
}

/* ---------- Testimonial carousel ---------- */
.testimonial-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.testimonial-card {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(11,25,44,.06);
}
.dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: all .3s;
  cursor: pointer;
}
.dot.active {
  width: 1.5rem;
  background: linear-gradient(135deg, #00B4D8, #0066FF);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item:hover { border-color: rgba(0,102,255,.35); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  font-weight: 800;
  color: #1E293B;
  text-align: left;
  cursor: pointer;
}
.faq-icon { color: #0066FF; transition: transform .3s ease; font-size: .8rem; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a p {
  padding: 0 1.5rem 1.5rem;
  color: #475569;
  font-size: .9rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 18rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}