/* Custom Styles for HISESA Website */
.font-inter {
  font-family: "Inter", sans-serif;
}

/* Hero Slider Animations */
.hero-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Floating Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

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

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite 2s;
}

/* Service Cards Hover Effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Carousel Styles */
.service-carousel {
  position: relative;
}

.carousel-container {
  border-radius: 0.5rem;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  width: 100%;
  flex-shrink: 0;
}

/* Digital Book Styles */
.perspective-1000 {
  perspective: 1000px;
}

.book {
  transform-style: preserve-3d;
  position: relative;
}

.book-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  backface-visibility: hidden;
}

.book-page:not(.active) {
  transform: rotateY(-180deg);
}

.book-page.active {
  transform: rotateY(0deg);
  z-index: 10;
}

.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Page Indicators */
.page-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-indicator.active {
  background-color: #fbbf24;
  transform: scale(1.2);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

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

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-slide h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .service-card {
    margin-bottom: 2rem;
  }

  .book {
    height: 300px;
  }

  .page-content {
    padding: 1rem;
  }

  .page-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .page-content .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Button Hover Effects */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

/* Card Shadow Effects */
.shadow-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.shadow-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Text Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Hero Dots Animation */
.hero-dot {
  transition: all 0.3s ease;
}

.hero-dot.active {
  transform: scale(1.3);
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.show {
  max-height: 300px;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out forwards;
}

