.hero {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 70px;
    width: 100vw;
    height: 100dvh;
    color: #fff;
    z-index: 9;

    h3 {
        margin-top: 25dvh;
        width: 90%;
        text-align: center;


        @media (min-width: 768px) {
            margin-top: 30dvh;
            width: 55%;

        }

        z-index: 9;
    }

    button {
        padding: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
        z-index: 9;
        background: #fff;
        border: none;
        border-radius: 6px;
        color: var(--primary-color);
        font-size: 1em;
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
        animation: pulse 2s cubic-bezier(0.25, 0.1, 0.25, 1) 2s infinite alternate;
        transition: all 0.4s ease-in-out;

        &:hover {
            cursor: pointer;
            transform: scale(1.15);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
            transition: all 0.4s ease-in-out;
        }
    }




    .icons {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 40px;
        width: 80%;

        @media (min-width: 768px) {
            flex-wrap: nowrap;
            flex-direction: row;
            gap: 120px;
            width: auto;
        }

        z-index: 9;

        .icon {
            display: flex;
            flex-direction: column;
            text-align: center;
            align-items: center;
            font-weight: 600;
            font-size: 0.75rem;
            width: calc(50% - 20px);
            cursor: pointer;
            transition: transform 0.3s ease-in-out;
            color: #fff;


            &:hover {
                transform: scale(1.1);
                text-decoration: none;
            }

            svg {
                width: 50px;
                height: auto;
                transition: filter 0.3s ease;
            }

            &:hover svg {
                filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
            }

            @media (min-width: 768px) {
                width: auto;

                svg {
                    width: 100%;
                }
            }

            @media (min-width: 768px) {
                font-weight: bold;
                font-size: 1rem;
            }
        }
    }

}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    }
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero .fallback-img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vwh;
    object-fit: cover;
    z-index: -2;
}

@media (max-width: 768px) {
    .hero video {}

    .hero .fallback-img {
        display: block;
    }
}

.overlayer {
    position: absolute;
    width: 100dvw;
    height: 100dvh;

    background-color: rgba(17, 95, 186, 0.5);
    -index: -1;
}

.arrow-down {

    bottom: 40px;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    width: 100%;
    height: 30px;
    text-align: center;
    z-index: 9;
    animation: bounce 2s infinite;
    cursor: pointer;

    svg {
        width: 100%;
        height: 100%;

    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.hero {
    overflow: hidden;
    /* Ensures elements don't overflow during animation */
    will-change: transform;
    /* Performance optimization */
}

.hero h3,
.hero button,
.hero .icons,
.hero .arrow-down,
.hero video,
.overlayer {
    will-change: transform, opacity;
    /* Performance optimization */
}

/* Ensure content below hero doesn't overlap */
.content-section {
    position: relative;
    z-index: 10;
    background-color: #fff;
}
