*{
    overflow-x: hidden;
}

.our-services{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.our-services .cards{
    display: grid;
    grid-template-columns: repeat(0, 300px);
    justify-items: center;
    gap: 20px;
}

.our-services .cards .card{
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-start;
    position: relative;
    padding: 20px;
    width: 300px;
    height: 300px;
    overflow: hidden;
}

.our-services .cards .card img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.our-services .cards .card::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(28, 25, 23, 0.3), rgb(28, 25, 23, 0.3));
    z-index: 1;
}

.our-services .cards .card h2{
    font-size: 2.5rem;
    color: var(--text-color);
}

.our-services .cards .card p{
    font-size: 1rem;
    color: var(--text-color);
}

.our-services .cards .card a{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 145px;
    height: 43px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    background-color: var(--main-color);
    transition: 0.8s;
}

.our-services .cards .card a:hover{
    transform: scale(110%);
}


.our-services .cards .card h2, .our-services .cards .card p, .our-services .cards .card a {
    position: relative;
    z-index: 2;
}

.service{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    margin: 70px 0 70px 0;
    background-color: var(--second-bg-color);
}

.service .box-container{
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: auto;
    height: auto;
}

.service .box-container .box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service .box-container .box h2{
    font-size: 1.3rem;
}

.service .box-container .box .icon{
    width: 70px;
    fill: var(--main-color);
}

.gallery{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.gallery .gallery-container{
    display: grid;
    grid-template-columns: repeat(0, auto);
    gap: 20px;
}

.gallery .gallery-container img{
    display: flex;
    justify-content: center;
    width: 300px;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.8s;
}

.gallery .gallery-container img:hover{
    transform: scale(96%);
}

.fullscreen{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen img{
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.recommendations{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    background-color: var(--second-bg-color);
}

.slider-wrapper{
    width: 300px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.recommendations .slider{
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: max-content;
}

.recommendations .slider .slide{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 300px;
    height: auto;
    padding: 16px;
    border-radius: 16px;
    cursor: grab;
    background-color: var(--background-color);
}

.recommendations .slider .slide .info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.recommendations .slider .slide .info p{
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--p-color);
}

.recommendations .slider .slide h3{
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--second-text-color);
}

.recommendations .slider .slide .flex-row{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.recommendations .slider .slide .profile{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.recommendations .slider .slide .profile h4{
    font-size: 1.5rem;
    font-weight: 400;
}

.recommendations .slider .slide .profile img{
    width: 70px;
    height: 70px;
    border-radius: 999px;
}

.bar-container{
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
  
.bar{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--p-color);
    cursor: pointer;
    transition: background-color 0.3s;
}

.bar-container .bar:hover,
.bar-container .bar.active{
    background-color: var(--main-color);
}

.faq{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    padding: 60px;
}

.faq details{
    width: clamp(65px, 90vw, 800px);
    padding: 20px 8px 20px 8px;
    border-radius: 20px;
    background-color: var(--second-bg-color);
    overflow: hidden;
}
  
.faq details > div{
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.faq details summary{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    list-style: none;
    cursor: pointer;
}

.faq p{
    text-align: right;
}

.faq p a{
    text-decoration: underline;
    color: var(--second-text-color);
}

.faq details summary::-webkit-details-marker{
    display: none;
}
  
.faq details summary .icon{
    width: 40px;
}
  
@media(min-width: 410px){
    .our-services .cards .card {
        width: 350px;
        height: 350px;
    }


.gallery .gallery-container img{
        width: 350px;
        height: 350px;
    }
}

@media(min-width: 734px){
    .gallery .gallery-container{
        grid-template-columns: repeat(2, auto);
    }
}

@media(min-width: 879px){
    .hero-section .info{
        align-items: flex-start;
    }
    
    .our-services .cards .card{
        width: 450px;
        height: 450px;
    }

    .service{
        height: 350px;
    }

    .service .box-container{
        flex-direction: row;
    }

    .slider-wrapper{
        width: 600px;
        overflow: hidden;
        position: relative;
    }

    .recommendations .slider .slide{
        width: 600px;
        height: auto;
    }
    
    .recommendations .slider .slide .info{
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .recommendations .slider .slide h3{
        text-align: right;
    }

    .recommendations .slider .slide .profile{
        flex-direction: row;
    }
}

@media(min-width: 1100px){
    .gallery .gallery-container{
        grid-template-columns: repeat(3, 350px);
    }
}

@media(min-width: 1000px){
    .our-services .cards{
        grid-template-columns: repeat(2, 450px);
    }
}

@media(min-width: 1415px){
    .our-services .cards{
        grid-template-columns: repeat(3, 450px);
    }
}