/* Hero Video Background Styles */

/* Video element - full screen background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0;
    animation: fadeInVideo 2s ease forwards;
}

/* Fade in animation for video */
@keyframes fadeInVideo {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Enhanced overlay for better text readability */
.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(102, 126, 234, 0.7) 0%,
            rgba(118, 75, 162, 0.65) 50%,
            rgba(240, 147, 251, 0.6) 100%);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Ensure content is above video and overlay */
.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Add subtle glow effect to text */
.hero-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-subtitle {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.5s backwards;
}

/* Enhance search box with subtle shadow */
.nl-search-wrapper {
    animation: fadeInUp 1s ease 0.7s backwards;
}

.nl-search-input {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Make buttons pop with subtle animation */
.hero .btn {
    animation: fadeInUp 1s ease 0.9s backwards;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Lift effect for standalone buttons (not search button) */
.hero .btn-outline:hover,
.hero .btn-primary:not(.search-container .btn):hover {
    transform: translateY(-3px) !important;
}

/* Keep search button properly centered - override lift effect */
.hero .search-container .btn {
    transform: translateY(-50%) !important;
}

.hero .search-container .btn:hover {
    transform: translateY(-50%) scale(1.02) !important;
}

/* Make outline button visible and consistent with site style */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline:hover {
    background: white !important;
    color: #6366f1 !important;
    border-color: white !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-video {
        /* On mobile, prioritize centered framing */
        min-width: auto;
        width: 100%;
        min-height100%;
    }

    .hero .hero-overlay {
        /* Slightly darker overlay on mobile for better readability */
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.8) 0%,
                rgba(118, 75, 162, 0.75) 50%,
                rgba(240, 147, 251, 0.7) 100%);
    }
}

/* Fallback for browsers that don't support video */
@supports not (object-fit: cover) {
    .hero-video {
        display: none;
    }

    .hero {
        background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 50%, #f093fb 100%);
    }
}

