/* Hero Slider Animations and Styles */

/* Slider animations */
@keyframes slideInFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Content animations */
.animate-slide-in h1,
.animate-slide-in h2 {
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-in p {
    animation: slideInFromBottom 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-slide-in .cta-buttons,
.animate-slide-in .hero-cta {
    animation: fadeInScale 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Slider controls hover effects */
.hero-controls button {
    transition: all 0.3s ease;
}

.hero-controls button:hover {
    transform: scale(1.1);
}

/* Active indicator animation */
.hero-indicators button {
    transition: all 0.3s ease;
}

/* Ensure hero section has proper height and fallback background */
#hero {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(37, 99, 235, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

/* Ensure text is always visible */
.hero-slide .hero-content {
    position: relative;
    z-index: 10;
}

/* Fallback styles for when images don't load */
.hero-slide {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(37, 99, 235, 0.9) 100%);
}

/* Ensure text color is white in hero sections */
#hero h1, #hero h2, #hero h3, #hero p, #hero span {
    color: white !important;
}

/* Fix for gradient text */
#hero .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure buttons and links in hero are visible */
#hero a, #hero button {
    position: relative;
    z-index: 20;
}

/* Fix for gold/yellow text */
#hero .text-gold {
    color: #fbbf24 !important;
}

/* Ensure proper stacking context */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Fix z-index for controls */
.hero-controls {
    z-index: 30;
}

.hero-indicators {
    z-index: 30;
}

@media (max-width: 768px) {
    #hero {
        min-height: 70vh;
    }
    
    .hero-controls button {
        padding: 0.5rem;
    }
    
    .hero-controls i {
        font-size: 1rem;
    }
}

/* Parallax effect for desktop */
@media (min-width: 1024px) {
    .hero-slide img {
        transform: scale(1.1);
        transition: transform 8s ease-out;
    }
    
    .hero-slide.active img {
        transform: scale(1);
    }
}

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

.hero-slide img[src] {
    animation: none;
    background: none;
}

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