/* Welcome section: make it a positioned container so absolute children align to it */
#welcome-section {
    position: relative;
    text-align: center;
}

/* Ensure the image fills the section and doesn't leave inline gaps */
#welcome-section img {
    display: block;
    width: 100%;
    height: auto;
}

/* Overlay text centered over the image */
#text-welcome-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    color: #ffffff;
    font-size: 5vw;
    z-index: 2;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    /* semi-transparent background to improve readability */
    border-radius: 6px;
    box-sizing: border-box;
}

#introduction-section {
    padding: 50px;
}

#text-introduction {
    padding-top: 30px;
    text-align: left;

}

#services-section {
    background-color: rgb(232, 232, 218);
    padding: 30px;

}

.service-card {

    margin: 25px;
    height: 350px;
    width: 300px;
    padding-top: 15px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 25px;
    background-color: white;
    display: flex;
    flex-direction: column;
    transition: all .5s;


}

.service-card:hover {
    box-shadow: 10px 10px 5px rgb(16, 0, 0);
    transform: scale(1.1)
}

.bi-circle-fill {
    color: rgb(207, 10, 10);
    font-size: 50px;
    position: relative;

}

.icon-service {
    color: white;
    font-size: 25px;
    position: absolute;
    top: 20px;
    left: 12px;
}

h4 {
    margin-bottom: 25px;

}

.service-card button {
    background-color: rgb(207, 10, 10);
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    height: 40px;
    width: 150px;
    border: none;
    border-radius: 10px;
    align-self: center;
    margin-top: auto;
    margin-bottom: 20px;
    transition: all .5s;

}

.service-card button:hover {
    background-color:rgb(154, 7, 7);
;
}

.bi-arrow-right {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

button:hover .bi-arrow-right {
    transform: translateX(6px);
}

.card{
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    transition: all 0.6s;
}

.card:hover{
    transform: scale(1.05);
    cursor: pointer; 
}


#action-button{
    color: white;
    font-weight: bold; 
    background-color: rgb(207, 10, 10);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    height: 50px;
    width: 200px;
    border-radius: 5px;
    border: none;
    transition: background-color 0.6s;
}

#action-button:hover{
    background-color: rgb(154, 7, 7)
}


.project-target {
    position: relative;
    border: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    height: 590px;

    &>.target-content {
        position: absolute;
        inset: 0;
        border: solid black 3px;

        &:hover img {
            animation-name: imageTransition;
            animation-iteration-count: 1;
            animation-fill-mode: forwards;
            animation-duration: 12s;
        }

        &>.image-target-top {
            position: relative;
            margin-top: 0px;
            height: 50%;
            width: 100%;
            border: red solid 3px;
            overflow: hidden;

            &>img {
                position: absolute;
                margin-top: 0;
                width: 100%;
                object-fit: cover;


            }

        }





    }


}
