.home {
    .first-section {
        width: 100%;
        height: 100vh;
        padding-left: 15rem;
        color: white;
        display: flex;
        justify-content: center;
        align-items: start;
        gap: 20px;
        flex-direction: column;
        
        h1 {
            font-size: 4rem;
        }
        a {
            padding: 10px 20px;
            background: white;
            color: black;
            border-radius: 20px;
            font-weight: bolder;
            text-decoration: none;
            transition: all 500ms;
        }
        a:hover {
            background: black;
            color: white;
        }
    }


    .second-section {
        width: 100%;
        height: 100vh;
        overflow: hidden;
        position: relative;

        .text-block {
            width: 55%;
			padding: 20px;
			background: rgba(255, 255, 255, 0.01);
			backdrop-filter: blur(5px);
			border-radius: 20px;
            z-index: 1;
            position: absolute;
            top: 50%;
            left: 10%;
            transform: translateY(-50%);
            
            .text {
                text-align: left;
                font-size: 3rem;
                font-weight: bolder;
                color: black;
            }
            
            h2 {
                color: white;
                margin-top: 30px;;
            }
        }
        
        .slides {
            width: 800%;
            height: 100%;
            display: flex;
            transition: all 500ms;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }


    .our-service {
        width: 100%;
        padding: 60px 40px;
        display: flex;
        gap: 30px;
        flex-direction: column;

        h1 {
            font-size: 3rem;
        }

        .card-block {
            width: 100%;
			display: grid;
            grid-template-columns: auto auto auto;
            gap: 10px;
            flex-wrap: wrap;

            .card {
                padding: 10px;
                transition: all 500ms;
                overflow: hidden;
                position: relative;
            }

            .card-content {
                width: 100%;
                position: relative;
                z-index: 1;
            }

            .img-block {
                width: 100%;
                height: 100%;
                overflow: hidden;

                img {
                    width: 100% !important;
                    height: 100%;
                    object-fit: cover;
                    transition: all 500ms;
                }

                h2 {
                    color: white;
                    transition: all 500ms;
                    opacity: 0;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                }
            }

            .text-block {
                padding-left: 20px;
                transition: all 500ms;
                color: white;
                text-align: center;
                
                h2 {
                    width: 100%;
                    padding: 30px 0 20px;
                    position: absolute;
                    top: 75%;
                    left: 50%;
                    transform: translateX(-50%);
                    transition: all 500ms;
                }

                p {
                    width: 100%;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    opacity: 0;
                    transition: all 500ms;
                }
            }
            .img-block::after {
                content: "";
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                background: rgba(0, 0, 0, 0.8);
                opacity: 0;
                transition: all 500ms;
            }
            
            .card:hover .img-block::after {
                opacity: 1;
            }
            
            .card:hover .img-block img {
                scale: 1.2;
                background: rgba(0, 0, 0, 0.5);
            }
            
            .card:hover .text-block h2 {
                opacity: 0;
            }
            
            .card:hover .text-block p{
                top: 40%;
                opacity: 1;
            }
        }
    }


    .testimonials {
        padding: 50px 0;
        display: flex;
        align-items: center;
        gap: 30px;
        flex-direction: column;
        overflow: hidden;

        p {
            color: white;
        }
        h1 {
            color: black;
        }

        .reviews {
            padding: 30px 50px;
            display: flex;
            transition: all 500ms;

            .card-block {
                width: 100%;
                display: flex;
                gap: 30px;

                .card {
                    height: 300px;
                    padding: 40px;
                    background: rgba(255, 255, 255, 0.2);
                    border: 2px solid white;
                    border-radius: 40px;
                    display: flex;
                    justify-content: space-around;
                    align-items: center;
                    flex-direction: column;
                    flex: 0 0 600px;
                    position: relative;
                    backdrop-filter: blur(5px);

                    img {
                        width: 80px;
                        height: 80px;
                        object-fit: cover;
                        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
                        background: white;
                        border: 1px solid black;
                        border-radius: 50%;
                        position: absolute;
                        top: -40px;
                    }

                    .comment {
                        text-align: center;
                    }

                    .user-name {
                        color: #FFCE01;
                    }
                }
            }

        }

        .next-prev {
            width: 100%;
            height: 50px;
            position: relative;

            .prev, .next {
                width: 50px;
                height: 50px;
                background: rgba(255, 255, 255, 0.3);
                border: 1px solid white;
                border-radius: 50%;
                color: white;
                backdrop-filter: blur(5px);
                position: absolute;
                outline: none;
                cursor: pointer;
            }
            .prev {
                right: 52%;
            }
            .next {
                left: 52%;
            }
        }

        .write-review {
            padding: 10px;
            background: none;
            border: 1px solid white;
            border-radius: 5px;
            color: white;
            text-align: center;
        }
    }
}

@media screen and (max-width: 992px) {
    .home {
        
        .first-section {
            padding: 0;
            align-items: center;

            h1 {
                font-size: 4rem;
                text-align: center;
            }
        }

        .second-section {
            .text-block {
                width: 100%;
                padding: 10px;
                text-align: center;
                left: 0;
                
                .text {
                    text-align: center;
                    font-size: 1rem;
                }

                h2 {
                    font-size: 0.5rem;
                    word-wrap: break-word;
                }
            }
        }

        .our-service {
            padding: 50px 20px;
            
            h1 {
                text-align: center;
            }

            .card-block {
                display: flex;
                flex-wrap: wrap;

                .card {
                    width: 100%;

                    .img-block {
                        height: 300px;
                    }
                }
            }
        }

        .testimonials {
            .card-block {
                flex-direction: column;
                gap: 80px;

                .card {
                    height: 250px;
                    padding: 20px;
                    flex: auto;
                    justify-content: space-evenly;
                }
            }

            .reviews::-webkit-scrollbar {
                display: none;
            }
        }
    }
}



button {
    background: linear-gradient(to right, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

button:active {
    transform: scale(0.98);
}

.text {
    text-align: center;
    margin-bottom: 20px;
}

.text h1 {
    font-size: 1.8rem;
    color: #333;
}

.text p {
    font-size: 1rem;
    color: #666;
}

