.video-header {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a !important;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}


.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a !important;
}

.header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(0.9) contrast(1.1);
    background-color: black !important;
}

.header-video:first-child {
    opacity: 1;
}

.header-video.active {
    opacity: 1;
    background-color: black !important;
}

/* Add an overlay for additional ambient effect */
.video-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 100%
    );
    z-index: 1;
}

/* Ensure header content stays above the overlay */
.header-content {
    position: relative;
    z-index: 3;
}

/* Ensure navbar stays fixed at the top */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030; /* Bootstrap uses 1030 for fixed navbars */
}

/* Ensure the main content stays below */
.main-raised {
    position: sticky;
    z-index: -1;  /* Using negative z-index to force it below */
    transform: translateZ(0);  /* Creates new stacking context */
    will-change: transform;  /* Helps with rendering layers */
}

/* Add the floating text styles */
.floating-header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.floating-header-text h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.floating-header-text h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.explore-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.explore-button:hover {
    color: rgb(19, 126, 55);
}

.explore-button:hover .footprint {
    filter: brightness(0) saturate(100%) invert(75%) sepia(100%) saturate(300%) hue-rotate(90deg) brightness(80%) contrast(90%);
}

.footprints {
    width: 80px;
    height: 120px;
    position: relative;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footprint {
    width: 30px;
    height: 40px;
    font-size: 2rem;
    opacity: 0;
    animation: stepDown 4s ease-in-out infinite;
    margin-bottom: -10px;
}

.footprint.right {
    margin-left: -30px;
    transform: rotate(calc(180deg + 5deg));
}

.footprint.left {
    margin-left: 30px;
    transform: rotate(calc(180deg - 5deg));
    animation-name: stepDownLeft;
}

span.footprint.first {
    animation-delay: 0s;
}

span.footprint.second {
    animation-delay: 0.6s;
}

span.footprint.third {
    animation-delay: 1.2s;
}

.footprint img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes stepDown {
    0% {
        opacity: 0;
        /* transform: translateY(-20px); */
    }
    20% {
        opacity: 1;
        /* transform: translateY(0); */
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        /* transform: translateY(20px); */
    }
}

@keyframes stepDownLeft {
    0% {
        opacity: 0;
        /* transform: translateY(-20px); */
    }
    20% {
        opacity: 1;
        /* transform: translateY(0); */
    }
    80% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        /* transform: translateY(20px); */
    }
}

@media (max-width: 768px) {
    .floating-header-text h1 {
        font-size: 2.5rem;
    }
    .floating-header-text h3 {
        font-size: 1.5rem;
    }
}
