/* Athletic animations and effects */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Enhanced hover effects for athletic feel */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

/* Water-like gradient background */
.water-gradient {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 25%, #22d3ee 50%, #67e8f9 75%, #a5f3fc 100%);
}

/* Athletic button effects */
.athletic-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.athletic-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.athletic-button:hover:before {
  left: 100%;
}

/* Hero background image - now defined inline in template */

/* Responsive design adjustments */
@media (max-width: 768px) {
  .hero-bg {
    background-position: center;
    background-size: cover;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  .text-7xl {
    font-size: 3rem !important;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #0891b2;
}

/* Additional button hover effects */
button {
  transition: all 0.3s ease;
}

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

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

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.15);
}

/* Navigation backdrop blur effect */
nav {
  backdrop-filter: blur(10px);
}

/* Improved text readability */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Background Image */
.hero-bg {
    background-image: url('/static/images/swimmer-home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Text shadow for better readability over background */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Fallback gradient if image fails to load */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 25%, #22d3ee 50%, #67e8f9 75%, #a5f3fc 100%);
    z-index: -1;
}