/* Hero Pages - Additional Styles for Discover Button and Page Heroes */

/* Ensure hero is ALWAYS full width, properly colored, and centered */
.hero {
    position: relative;
    overflow: hidden;
    width: 100% !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Remove padding on subpage heroes for true centering */
.hero-subpage {
    padding: 0 !important;
    padding-top: 70px !important; /* Account for fixed navigation */
}

/* Force all hero text to be white with text shadow */
.hero * {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    text-align: center;
}

/* Hero title and subtitle - white with shadow */
.hero .hero-title,
.hero h1 {
    color: white !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.hero .hero-subtitle,
.hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .hero-quote,
.hero blockquote {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* ===== BACKGROUND LAYERS ===== */

/* Gradient Background */
.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(124, 58, 237, 0.7));
}

.hero-bg-gradient.active {
    opacity: 1;
}

/* Animated Background */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-animation.active {
    opacity: 1;
}

.hero-bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
}

/* Video Background */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-video.active {
    opacity: 0.7;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Static Image Background */
.hero-bg-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-bg-static.active {
    opacity: 0.6;
}

/* Slideshow Background */
.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-item.active {
    opacity: 0.6;
}

.slideshow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SCROLL INDICATOR - HOMEPAGE STYLE (Mouse Cursor) ===== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-oval {
    width: 32px;
    height: 54px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 27px;
    position: relative;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-ball {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBallMove 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.scroll-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Animation for the ball moving down inside the mouse cursor */
@keyframes scrollBallMove {
    0% {
        top: 8px;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 38px;
        opacity: 0;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    }
}

/* Fix for pages with smaller heroes */
.hero[style*="min-height: 60vh"] .hero-content,
.hero[style*="min-height: 40vh"] .hero-content,
.hero[style*="min-height: 500px"] .hero-content,
.hero[style*="min-height: 400px"] .hero-content,
.hero[style*="min-height: 300px"] .hero-content {
    padding: 1rem 2rem;
}

/* Ensure proper spacing after hero */
.hero + main,
.hero + section,
main#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* True vertical centering for subpage heroes */
section.hero-subpage .hero-content,
.hero-subpage > .hero-content {
    padding: 2rem !important;
}

/* Add bottom padding when discover button exists */
.hero-subpage .hero-content:has(.scroll-indicator) {
    padding-bottom: 5rem !important;
}

/* Ensure smooth scroll to content */
html {
    scroll-behavior: smooth;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-oval {
        width: 28px;
        height: 48px;
    }
    
    .scroll-text {
        font-size: 0.65rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}