@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ===================================================================
   NOBLETAP — Custom Styles
   Tailwind CDN handles utilities. This file handles:
   - Animations (float, reveal, progress)
   - Sticky nav state
   - Gradient utilities
   - Mobile menu transition
   - FAQ accordion
   - Button hover polish
=================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }

::selection { background: #99f6e4; color: #0F1F3D; }
:focus-visible { outline: 2px solid #14b8a6; outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ---------- Navbar ---------- */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.05);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.42);
}
.btn-primary:active { transform: translateY(0); }

.btn-navy {
  background: #0F1F3D;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 31, 61, 0.25);
}
.btn-navy:hover {
  background: #162d56;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 31, 61, 0.32);
}

.btn-outline {
  border: 1.5px solid #0F1F3D;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: #0F1F3D; color: white; }

.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.65);
}

/* ---------- Product Cards ---------- */
.card-product {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.card-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 31, 61, 0.10);
}

/* ---------- Feature Cards ---------- */
.card-feature {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 31, 61, 0.08);
}

/* ---------- Float Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes float-c {
  0%, 100% { transform: translateY(0px) rotate(1.5deg); }
  50%       { transform: translateY(-6px) rotate(1.5deg); }
}
.float-main { animation: float 5.5s ease-in-out infinite; }
.float-card-a { animation: float-b 6s ease-in-out infinite; }
.float-card-b { animation: float-c 4.5s ease-in-out infinite 0.8s; }
.float-card-c { animation: float-b 5s ease-in-out infinite 1.5s; }

/* ---------- Progress Bars ---------- */
.progress-fill {
  background: linear-gradient(90deg, #14b8a6, #0ea5e9);
  border-radius: 9999px;
  height: 100%;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- FAQ Accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-answer { max-height: 320px; }

.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open { max-height: 520px; }

/* ---------- Section Backgrounds ---------- */
.bg-hero {
  background: linear-gradient(160deg, #f8faff 0%, #f0f9ff 40%, #f0fdfa 80%, #ffffff 100%);
}
.bg-soft {
  background: linear-gradient(160deg, #f8faff 0%, #f0fdfa 50%, #ffffff 100%);
}
.bg-navy-deep {
  background: linear-gradient(135deg, #060E1F 0%, #0F1F3D 55%, #162d56 100%);
}

/* ---------- Dashboard mock cards ---------- */
.dash-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 32px rgba(15, 31, 61, 0.10);
}

/* ---------- NFC pulse ring ---------- */
@keyframes nfc-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0;   }
}
.nfc-ring {
  animation: nfc-pulse 2s ease-out infinite;
}
.nfc-ring-delay {
  animation: nfc-pulse 2s ease-out infinite 0.7s;
}

/* ---------- Dot pattern ---------- */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(15,31,61,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Section Alt Background ---------- */
.bg-stripe {
  background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
}

/* ---------- Hardware scene product labels ---------- */
.hw-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 6px;
}

/* ---------- Product card image area ---------- */
.product-img-area {
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  position: relative;
}

/* Trust cards in Donations Stay Yours section */
.trust-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 24px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.trust-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(20,184,166,0.25);
}

/* ---------- TV Screen Cycling States ---------- */
.tv-screen { position: relative; overflow: hidden; }
.tv-state  {
  position: absolute; inset: 0;
  padding: 7px 9px;
  display: flex; flex-direction: column;
  box-sizing: border-box;
}

@keyframes tv-fade-s1 {
  0%,   30%    { opacity: 1; }
  33.3%, 96.7% { opacity: 0; }
  100%         { opacity: 1; }
}
@keyframes tv-fade-s2 {
  0%,   30%    { opacity: 0; }
  33.3%, 63.3% { opacity: 1; }
  66.6%, 100%  { opacity: 0; }
}
@keyframes tv-fade-s3 {
  0%,   63.3%  { opacity: 0; }
  66.6%, 96.7% { opacity: 1; }
  100%         { opacity: 0; }
}
.tv-state-1 { animation: tv-fade-s1 9s ease-in-out infinite; }
.tv-state-2 { animation: tv-fade-s2 9s ease-in-out infinite; }
.tv-state-3 { animation: tv-fade-s3 9s ease-in-out infinite; }
