/* Custom CSS for additional styling and animations */

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

/* Custom gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #2c4089 0%, #5a6fb8 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, #4dbfd9 0%, #a8e6f0 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, rgba(43, 64, 137, 0.95) 0%, rgba(59, 84, 155, 0.9) 50%, rgba(77, 191, 217, 0.85) 100%);
}

/* Overlay effects */
.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay-dark > * {
  position: relative;
  z-index: 2;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Button animations */
.btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Statistics counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item {
  animation: countUp 0.6s ease-out forwards;
}

/* Testimonial card styling */
.testimonial-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* Gallery image overlay */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 84, 155, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
  background: #3b549b;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2c4089;
}

/* Loading animation for images */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile menu animation */
.mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.hidden {
  transform: translateX(-100%);
  opacity: 0;
}

/* Section dividers */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #7ed0e1 50%, transparent 100%);
  margin: 3rem auto;
  max-width: 200px;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3b549b;
  box-shadow: 0 0 0 3px rgba(59, 84, 155, 0.1);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
