.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;
        font-size: clamp(1.35rem, 1rem + 2.2vw, 2.4rem);
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
        animation: fadeUp 0.9s ease-out 0.2s both;

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

        }

        z-index: 9;
    }

    button {
        padding: 1rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        z-index: 9;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border: none;
        border-radius: 34px;
        color: #fff;
        font-size: 1em;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
        animation: fadeUp 0.9s ease-out 0.45s both, 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.08);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 24px rgba(203, 163, 49, 0.45);
            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;
        animation: fadeUp 0.9s ease-out 0.7s both;

        .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;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);


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

            svg {
                width: 50px;
                height: auto;
                transition: filter 0.3s ease;
                margin-bottom: 8px;
            }

            &:hover svg {
                filter: drop-shadow(0 0 6px rgba(203, 163, 49, 0.8));
            }

            @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 14px rgba(0, 0, 0, 0.35);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(203, 163, 49, 0.55), 0 0 28px rgba(203, 163, 49, 0.35);
    }

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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: 100%;
    object-fit: cover;
    z-index: -2;
}

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

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

.overlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    z-index: -1;
    background-color: rgba(175, 140, 44, 0.5);
    background-image: linear-gradient(180deg,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.05) 35%,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 0.5) 100%);
}

.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%;

    }

    .scroll-message {
        display: block;
        margin-top: 6px;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        opacity: 0.85;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    }
}

@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;
}
