/* Custom styles for Deliverance Church Lugulu - Black & Blue Theme */

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

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

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

/* Responsive image sizing */
.hero-slide {
  z-index: 0;
}

.hero-slide.active {
  z-index: 1;
}

/* Ensure proper aspect ratios */
@media (max-width: 768px) {
  .hero-slide {
    height: 60vh !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-slide {
    height: 80vh !important;
  }
}

@media (min-width: 1025px) {
  .hero-slide {
    height: 100vh !important;
  }
}

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

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

/* Hover effects */
.hover-lift:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Custom gradient backgrounds */
.gradient-blue {
  background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

/* Button hover effects */
.btn-primary {
  @apply bg-blue-600 hover:bg-blue-800 px-6 py-3 rounded-lg text-white font-semibold transition-all duration-300 transform hover:scale-105;
}

.btn-secondary {
  @apply bg-sky-400 hover:bg-sky-600 text-black px-6 py-3 rounded-lg font-semibold transition-all duration-300 transform hover:scale-105;
}

/* Mobile menu animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Card hover effects */
.ministry-card {
  transition: all 0.3s ease;
}

.ministry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

/* Gallery image hover effects */
.gallery-item {
  transition: all 0.3s ease;
  overflow: hidden;
}

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

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

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

/* Responsive text sizes */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

/* Focus states for accessibility */
input:focus, textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Link hover effects */
a {
  transition: color 0.3s ease;
}

/* Section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #2563eb, transparent);
}

/* Text glow effect for headers */
.text-glow {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Card border glow */
.card-glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Pulse animation for call-to-action buttons */
@keyframes pulse-blue {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}

.pulse-blue {
  animation: pulse-blue 2s infinite;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111827;
    color: #f3f4f6;
  }
}