html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 90px;
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  text-decoration: none;
}

a:hover {
  color: #ec4899;
}

/* Top Bar Marquee - Sticky */
.top-bar-marquee {
  background: linear-gradient(90deg, #9333ea, #ec4899);
  padding: 8px 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 40px;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  padding: 0 30px;
  font-size: 14px;
  color: white;
}

.marquee-content span.highlight {
  color: #fcd34d;
  font-weight: bold;
}

.marquee-content span i {
  margin-right: 8px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Dancing Icons Animation */
@keyframes danceLeft {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(-15deg);
  }
  25% {
    transform: translateX(20px) translateY(-15px) rotate(15deg);
  }
  50% {
    transform: translateX(0) translateY(-25px) rotate(-10deg);
  }
  75% {
    transform: translateX(-20px) translateY(-10px) rotate(10deg);
  }
}
@keyframes danceRight {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(15deg);
  }
  25% {
    transform: translateX(-20px) translateY(-15px) rotate(-15deg);
  }
  50% {
    transform: translateX(0) translateY(-25px) rotate(10deg);
  }
  75% {
    transform: translateX(20px) translateY(-10px) rotate(-10deg);
  }
}
.animate-dance-left {
  animation: danceLeft 3s ease-in-out infinite;
}
.animate-dance-right {
  animation: danceRight 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Marquee Animations */
@keyframes marquee-1 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-2 {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Counter Card Hover Effects */
.counter-card {
  position: relative;
  overflow: hidden;
}

.counter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.counter-card:hover::before {
  left: 100%;
}

.counter-card:hover i {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Counter text styling */
.counter {
  background: linear-gradient(90deg, #ec4899, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Floating Icons */
.icon-float {
  display: inline-block;
}

/* Course Card Slide In Animation */
.course-card {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.6s ease;
}

.course-card.slide-in {
  opacity: 1;
  transform: translateX(0);
}

/* Bomb Blast Effect on Hover */
.course-card:hover .bomb-effect .particle {
  display: block;
}

.course-card:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(236, 72, 153, 0.5),
    0 0 60px rgba(147, 51, 234, 0.3);
}

.course-card:hover i {
  transform: scale(1.3);
  filter: brightness(1.5);
}

.course-card:hover .particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: explode 0.6s ease-out forwards;
}

.course-card:nth-child(1):hover .particle {
  background: #ec4899;
}
.course-card:nth-child(2):hover .particle {
  background: #a855f7;
}
.course-card:nth-child(3):hover .particle {
  background: #3b82f6;
}
.course-card:nth-child(4):hover .particle {
  background: #22c55e;
}
.course-card:nth-child(5):hover .particle {
  background: #ef4444;
}
.course-card:nth-child(6):hover .particle {
  background: #eab308;
}

.particle {
  display: none;
}

.particle.p1 {
  top: 20%;
  left: 10%;
}
.particle.p2 {
  top: 30%;
  right: 10%;
}
.particle.p3 {
  bottom: 30%;
  left: 15%;
}
.particle.p4 {
  bottom: 20%;
  right: 15%;
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}

.course-card:hover .particle.p1 {
  --x: -30px;
  --y: -20px;
}
.course-card:hover .particle.p2 {
  --x: 30px;
  --y: -15px;
}
.course-card:hover .particle.p3 {
  --x: -25px;
  --y: 20px;
}
.course-card:hover .particle.p4 {
  --x: 25px;
  --y: 15px;
}

/* Modal Popup */
#serviceModal {
  backdrop-filter: blur(5px);
}

#serviceModal > div {
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating icons */
.animate-float-1 {
  animation: float 4s ease-in-out infinite;
}
.animate-float-2 {
  animation: float 5s ease-in-out infinite 0.5s;
}
.animate-float-3 {
  animation: float 6s ease-in-out infinite 1s;
}
.animate-float-4 {
  animation: float 4.5s ease-in-out infinite 1.5s;
}
.animate-float-5 {
  animation: float 5.5s ease-in-out infinite 2s;
}
.animate-float-6 {
  animation: float 4s ease-in-out infinite 2.5s;
}
.animate-float-7 {
  animation: float 6s ease-in-out infinite 3s;
}
.animate-float-8 {
  animation: float 5s ease-in-out infinite 3.5s;
}

/* Marquee animations */
.animate-marquee-1 {
  animation: marquee-1 25s linear infinite;
}
.animate-marquee-2 {
  animation: marquee-2 25s linear infinite;
}

/* Hero section */
.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2.5s infinite;
}

/* Red Color for Pricing */
.red-color {
  color: #ef4444;
}

.red-color-bold {
  color: #ef4444;
  font-weight: 800;
}

/* Popup Glow Animation - Yellow/Gold */
@keyframes popupGlow {
  0%, 100% {
    text-shadow: 0 0 10px #fbbf24, 0 0 20px #f59e0b, 0 0 30px #d97706;
    color: #fef3c7;
  }
  50% {
    text-shadow: 0 0 20px #fbbf24, 0 0 40px #f59e0b, 0 0 60px #d97706, 0 0 80px #f59e0b;
    color: #fde68a;
  }
}

.popup-glow {
  animation: popupGlow 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  /* Fix horizontal overflow */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Container max-width for mobile */
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Keep floating icons visible on mobile */
  #home .absolute.inset-0 {
    display: block;
  }

  /* Make floating icons smaller on mobile */
  #home .absolute.inset-0 > div {
    font-size: 1.25rem !important;
  }

  #home .absolute.inset-0 .text-3xl {
    font-size: 1.5rem !important;
  }

  #home .absolute.inset-0 .text-2xl {
    font-size: 1.125rem !important;
  }

  /* Navbar mobile fixes */
  nav .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Grid layouts for mobile */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Services grid - single column on mobile */
  #services .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Courses grid - single column on mobile */
  #courses .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Contact grid - single column on mobile */
  #contact .grid {
    grid-template-columns: 1fr;
  }

  /* Footer grid */
  footer .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Hero section fixes */
  #home {
    padding-left: 12px;
    padding-right: 12px;
  }

  #home h1 {
    font-size: 2rem !important;
    word-wrap: break-word;
  }

  /* Floating icons - hide on small mobile */
  .absolute.inset-0 {
    display: none;
  }

  /* Slider/marquee fixes */
  .slider-wrapper {
    display: none;
  }

  /* About section */
  #about {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
  }

  /* Services cards */
  .service-card {
    padding: 16px !important;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  /* Counter section */
  .counter-card {
    padding: 16px !important;
  }

  /* Course cards */
  .course-card {
    padding: 16px !important;
  }

  .course-card h4 {
    font-size: 1.25rem;
  }

  /* Blog section */
  .blog-card {
    padding: 16px !important;
  }

  /* Contact section */
  #contact {
    padding: 40px 16px !important;
  }

  #contact form input,
  #contact form select,
  #contact form textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Top bar marquee - hide on very small screens */
  .top-bar-marquee {
    height: 32px !important;
  }

  .marquee-content span {
    font-size: 11px !important;
    padding: 0 15px !important;
  }

  /* Floating icons mobile */
  .animate-float-1,
  .animate-float-2,
  .animate-float-3,
  .animate-float-4,
  .animate-float-5,
  .animate-float-6,
  .animate-float-7,
  .animate-float-8 {
    display: none;
  }

  /* Slider mobile */
  .slider-container {
    height: 40px !important;
  }

  .slider-track-1,
  .slider-track-2 {
    gap: 6px !important;
  }

  .slider-track-1 span,
  .slider-track-2 span {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
  }

  /* Footer mobile */
  footer {
    padding: 40px 16px !important;
  }

  footer h3,
  footer h4 {
    font-size: 1rem;
  }

  /* Modal responsive */
  #serviceModal > div {
    margin: 16px;
    padding: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* WhatsApp button */
  .fixed.bottom-28 {
    bottom: 80px !important;
  }

  /* Scroll popup */
  .fixed.bottom-6.left-6 {
    left: 10px !important;
    bottom: 70px !important;
    max-width: 200px !important;
  }

  #scrollPopup {
    padding: 10px !important;
    max-width: 180px !important;
  }

  #scrollPopup .text-4xl {
    font-size: 1.25rem !important;
  }

  #scrollPopup .text-2xl {
    font-size: 0.875rem !important;
  }

  #scrollPopup .text-lg {
    font-size: 0.75rem !important;
  }

  #scrollPopup .mt-2 {
    margin-top: 4px !important;
  }

  #scrollPopup .px-3 {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #scrollPopup .py-1 {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  #scrollPopup .px-4 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #scrollPopup .py-2 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  #scrollPopup .animate-bounce {
    font-size: 1.25rem !important;
  }

  #scrollPopup .flex items-center gap-4 {
    gap: 6px !important;
  }

  /* Scroll top button */
  .fixed.bottom-6.right-8 {
    right: 10px !important;
    bottom: 10px !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .top-bar-marquee {
    display: none;
  }

  body {
    padding-top: 60px;
  }

  nav {
    top: 0 !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  /* Services section */
  #services .grid {
    gap: 12px;
  }

  /* Courses section */
  #courses .grid {
    gap: 12px;
  }

  /* Contact section */
  #contact h2 {
    font-size: 1.5rem;
  }

  /* Keep floating icons visible on very small screens */
  #home .absolute.inset-0 {
    display: block;
  }

  /* Hide slider on very small screens */
  .slider-wrapper {
    display: none;
  }
}
