/* SNZ Education - Custom Styles */
/* Tailwind CSS is loaded via CDN in HTML */

/* Custom animations and utilities */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-blue: #1e3a8a;
  --primary-blue-dark: #1e40af;
  --accent-yellow: #fbbf24;
  --accent-yellow-dark: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

/* Animation utilities - Ultra subtle opacity-only fade */
.animate-on-scroll {
  opacity: 0.3;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* No keyframe animations for scroll - using transitions only */
.fade-in {
  opacity: 1 !important;
}

.fade-in-smooth {
  opacity: 1 !important;
}

/* Prevent animation retrigger */
.animated {
  opacity: 1 !important;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger Menu Animation */
#hamburger span span {
  transition: all 0.3s ease-in-out;
}

#hamburger.active span span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active span span:nth-child(2) {
  opacity: 0;
}

#hamburger.active span span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Services Dropdown Styles */
#services-dropdown {
  transform: translateY(-10px);
}

.group:hover #services-dropdown {
  transform: translateY(0);
}

/* Mobile Services Arrow Rotation */
#mobile-services-arrow.rotate-180 {
  transform: rotate(180deg);
}

/* Enhanced Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(30, 58, 138, 0.6);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* Card Hover Effects */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Overlay Effects */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(30, 58, 138, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Stagger Animation Delay */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

/* Hero Carousel Styles */
.hero-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  min-height: 500px;
  z-index: 1;
  pointer-events: none;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 10;
  pointer-events: auto;
}

/* Background image container - always behind content */
.hero-slide > div:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Content container - always in front */
.hero-slide .container {
  position: relative;
  z-index: 2;
}

.carousel-indicator {
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  width: 2rem;
  background-color: var(--primary-blue);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

