:root {
  --brand: #1b67f5;
  --sunny: #ffc107;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--brand) #f1f5f9; }

body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', sans-serif;
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 1px; height: 1px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 1px; }
::-webkit-scrollbar-thumb:hover { background: #142660; }

/* ---------- Hero blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
@keyframes float-slow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-30px) scale(1.06); }
}
@keyframes float-slower {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-25px,25px) scale(1.08); }
}
.blob-1 { animation: float-slow 9s ease-in-out infinite; }
.blob-2 { animation: float-slower 11s ease-in-out infinite; }

/* ---------- Hero decorative pattern ---------- */
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.35) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ---------- Hero slider ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}
.hero-slide.active .hero-slide-img {
  transform: scale(1);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,38,96,0.94) 0%, rgba(20,38,96,0.78) 35%, rgba(20,38,96,0.35) 65%, rgba(20,38,96,0.15) 100%);
}
.hero-slide-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.25s, transform 0.8s ease 0.25s;
}
.hero-slide.active .hero-slide-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.08);
}
/* Arrows sit mid-height over the text column on narrow screens — hide them
   there and rely on dots + swipe instead. */
@media (max-width: 639px) {
  .hero-arrow { display: none; }
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.35);
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.hero-dot.active {
  background: var(--sunny);
  width: 28px;
}

#hero-progress {
  width: 0%;
}
#hero-progress.animate {
  transition: width linear;
}

/* ---------- Fade/slide-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Stat counter ---------- */
.stat-number { font-variant-numeric: tabular-nums; }

/* ---------- Card hover lift ---------- */
.lift-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.lift-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px -15px rgba(27,103,245,0.35);
}

/* ---------- Media fill (images/gradients) ---------- */
.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Gallery ---------- */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.12);
}
.gallery-caption {
  background: linear-gradient(to top, rgba(10,20,50,0.85), transparent 70%);
}

/* ---------- Marquee for announcements ---------- */
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ---------- Nav underline ---------- */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--sunny);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---------- Mobile menu ---------- */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
#mobile-menu.open { max-height: 480px; }

/* ---------- Back to top ---------- */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Buttons ---------- */
.btn-sunny {
  background: linear-gradient(135deg, var(--sunny-400, #ffd23f), var(--sunny-600, #f2a900));
}
.btn-sunny:hover { filter: brightness(1.05); }

/* ---------- Section eyebrow ---------- */
.eyebrow {
  letter-spacing: 0.18em;
}

/* ---------- Countdown box ---------- */
.countdown-box {
  min-width: 64px;
}

/* ---------- Testimonials carousel ---------- */
.testimonial-slide {
  animation: fade-in 0.5s ease;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.testimonial-dot {
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.testimonial-dot.active {
  transform: scale(1.3);
}

/* ---------- Contact map placeholder ---------- */
.map-placeholder {
  background: linear-gradient(135deg, #1650e0, #142660);
}

/* ---------- Print styles ---------- */
@media print {
  #header, #cta, #back-to-top, footer .social, .no-print { display: none !important; }
}

/* ---------- Confetti (used on CTA success) ---------- */
.confetti {
  position: fixed;
  top: -10px;
  width: 8px; height: 8px;
  border-radius: 2px;
  z-index: 200;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(105vh) rotate(540deg); opacity: 0.4; }
}

/* ---------- Form loading spinner (BlockUI overlay, see main.js blockForm()) ---------- */
.form-blockui-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid rgba(22, 80, 224, 0.2);
  border-top-color: #1650e0;
  animation: form-blockui-spin 0.7s linear infinite;
}
@keyframes form-blockui-spin {
  to { transform: rotate(360deg); }
}

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