.hero-img {
    position: relative;
    overflow: hidden;
    /* Hide any overflow from video */
}

.hero-img .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Makes the video fill the section */
    z-index: 0;
    /* Place it behind content */
}

.hero-img img {
    position: relative;
    z-index: 1;
    /* Place content on top of video */
}

.hero-img::before {
    /* Optional: Dark overlay for better text visibility */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-img img {
    margin-left: -15px;
}

.contact-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 3.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

h2.contact-us-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

p.contact-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.sliding-text-container {
    overflow: hidden;
    height: 2.5rem;
    display: flex;
    align-items: center;
}

.sliding-phone-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    position: relative;
    left: -100%;
    animation: slideIn 1.5s ease-out forwards;
}

@keyframes slideIn {
    0% {
        left: -100%;
        opacity: 0;
    }

    70% {
        left: 0;
        opacity: 1;
    }

    100% {
        left: 0;
        opacity: 1;
    }
}

.sliding-phone-number:hover {
    animation-play-state: paused;
}