/* ============================================================
   Canada28 Landing Page - Custom Styles
   Project: 0032
   ============================================================ */

/* ---------- Base & Smooth Scroll ---------- */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Hero Background ---------- */
.hero-bg {
  background: linear-gradient(160deg, #eef2ff 0%, #ffffff 30%, #f5f3ff 65%, #e0e7ff 100%);
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Navbar Scroll State ---------- */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ---------- Feature Card Hover ---------- */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

/* ---------- Testimonial Card Hover ---------- */
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.15);
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger delays for grid children */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ---------- FAQ Accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: #e0e7ff;
}

.faq-question:hover .faq-icon {
  background-color: #e0e7ff;
}

/* ---------- Floating Animation for Hero Badges ---------- */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* ---------- Counter Number Style ---------- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ---------- Mobile Menu Animation ---------- */
#mobile-menu {
  transform-origin: top;
  animation: menuSlideIn 0.25s ease-out;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a5b4fc;
}

/* ---------- Selection Color ---------- */
::selection {
  background-color: rgba(99, 102, 241, 0.2);
  color: #312e81;
}

/* ---------- Focus Ring Override ---------- */
*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .hero-bg {
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 40%, #f5f3ff 100%);
  }

  .reveal {
    transform: translateY(24px);
  }

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

/* ---------- Print Styles ---------- */
@media print {
  #navbar {
    position: relative;
    box-shadow: none;
  }
  .hero-bg {
    background: none;
  }
  #mobile-menu {
    display: none !important;
  }
}
