@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800;900&family=Nunito:wght@400;600;700;800&display=swap");

/* ---- Root Variables ---- */
:root {
  --yellow: #ffd600;
  --sky: #00b4ff;
  --green: #22c55e;
  --coral: #ff5a5f;
  --purple: #7c3aed;
  --orange: #ff8c00;
  --pink: #f43f8b;
  --navy: #0f0e2c;
  --cream: #fffbf0;
}

/* ---- Base Font ---- */
body {
  font-family: "Nunito", sans-serif;
  background-color: var(--cream);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.font-display,
.logo-text,
nav a.nav-link {
  font-family: "Baloo 2", cursive;
}

/* ---- Navbar Scroll Effect ---- */
#navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled {
  box-shadow: 0 4px 28px #7c3aed24;
}

/* ---- Nav Link Underline Hover ---- */
.nav-link {
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 99px;
  background: #ff5a5f;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* ---- Hamburger Morph ---- */
.hamburger span {
  display: block;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* ---- Animations ---- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}
@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes bounce-badge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

/* ---- Animation Classes ---- */
.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-float-d {
  animation: float-delayed 5s ease-in-out infinite;
}
.animate-spin-slow {
  animation: spin-slow 18s linear infinite;
}
.animate-bounce-badge {
  animation: bounce-badge 2.2s ease-in-out infinite;
}
.animate-wiggle {
  animation: wiggle 2s ease-in-out infinite;
}
.animate-fade-up {
  animation: fade-up 0.7s ease both;
}
.animate-scale-in {
  animation: scale-in 0.5s ease both;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-600 {
  animation-delay: 0.6s;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Marquee Strip ---- */
.marquee-inner {
  display: inline-block;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}
.marquee-inner i {
  margin-inline: 10px;
  background: var(--yellow);
  padding: 4px 12px;
  border-radius: 99px;
  color: black;
  font-size: 20px;
}
#testimonials {
  background:
    linear-gradient(135deg, #010864c5, #01185eab), url(img/testibg.jpg);
  background-size: cover;
  /* background-attachment: fixed; */
  background-position:-50px center;
}
/* ---- Hero Blob Background ---- */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* ---- Highlight Underline ---- */
.highlight-word {
  position: relative;
  display: inline-block;
}
.highlight-word::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--yellow);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.65;
}

/* ---- Counter Number ---- */
.counter-num {
  font-family: "Baloo 2", cursive;
}

/* ---- Pulse Ring (CTA section) ---- */
.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  animation: pulse-ring 2s ease-out infinite;
}
.pulse-ring::after {
  animation-delay: 1s;
}

/* ---- Feature Card Icon Glow ---- */
.icon-glow {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.icon-glow:hover {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.28);
}

/* ---- Gallery Image Zoom ---- */
.gallery-img {
  overflow: hidden;
}
.gallery-img img {
  transition: transform 0.5s ease;
}
.gallery-img:hover img {
  transform: scale(1.08);
}

/* ---- Testimonial Card Quote ---- */
.testimonial-card::before {
  content: '"';
  font-family: "Baloo 2", cursive;
  font-size: 5rem;
  color: var(--purple);
  opacity: 0.12;
  position: absolute;
  top: -10px;
  left: 16px;
  line-height: 1;
  pointer-events: none;
}

/* ---- Active Tab Underline ---- */
.tab-btn.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.28);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0eeff;
}
::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--coral);
}

/* ---- Mobile Menu Transition ---- */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobileMenu.open {
  max-height: 500px;
}

/* ---- FAQ Accordion ---- */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.3s ease;
}
.faq-body.open {
  max-height: 300px;
  padding-bottom: 16px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ---- Star Rating ---- */
.stars {
  color: #ffd600;
  letter-spacing: 2px;
}

/* ---- Section Divider Wave ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* ---- Responsive Typography ---- */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem !important;
  }
  .section-heading {
    font-size: 1.8rem !important;
  }
}
