#heroAI {
    min-height: calc(100svh - 80px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/services/ai.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.heroAI{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.heroAI h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 2.25rem);
    font-weight: 300;
    margin: 0;
}

.heroAI h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 6.75rem);
    font-weight: 500;
    margin: 10px 0;
}
.ai-integration-content {
    padding: 20px;
}

.text-photo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(2.5rem, 8vw, 6.25rem);
    margin-top: clamp(2.5rem, 8vw, 6.25rem);
    gap: 40px;
}
.smaller-image{
    width: 80%; /* or any other percentage or fixed width */
    height: auto;
    max-width: 500px; /* Optional: limits the maximum width */
    display: block; /* Optional: ensures the image behaves as a block element */
    margin: 0 auto; /* Optional: centers the image horizontally */
}
.text-content {
    flex: 1;
    max-width: 50%;
    align-self: center;
    height: 100%;
}
.text-content p{
    text-align: center;
    margin-top: 40px;
}
.photo-content {
    flex: 1;
    max-width: 50%;
}

.photo-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}



@media screen and (max-width: 768px) {
    #heroAI {
        flex-direction: column;
        background-position: center;
    }

    .heroAI h3 {
        font-size: clamp(1.25rem, 2vw + 0.5rem, 2.25rem);
        font-weight: 300;
        margin: 0;
    }

    .heroAI h1 {
        font-size: clamp(2.5rem, 5vw + 1rem, 6.75rem);
        font-weight: 500;
        margin: 10px 0;
    }
    .text-photo-container {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
        margin-top: 40px;
    }
    .text-content {
        flex: 1;
        max-width: 100%;
    }
    
    .photo-content {
        flex: 1;
        max-width: 100%;
    }
    .text-photo-container .text-content {
        order: 1;
    }

    .text-photo-container .photo-content {
        order: 2;
    }

}