*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
img {
max-width: 100%;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #570506;
background-image: linear-gradient(225deg, #570506 0%, #cc2426 33%, #4d5967 66%, #342f2f 100%);
font-family: sans-serif;
}
main {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
padding: 40px 40px;
}
.card {
position: relative;
display: flex;
align-items: flex-end;
width: min(100%, 350px);
height: 500px;
padding: 30px 25px;
background:#fff;
box-shadow: 0px 7px 10px rgba(6, 6, 6, 0.5);
transition: all 0.5s ease;
border-radius: 45px;
}
.card:hover {

transform: translateY(20px);
}
.card:after {
content: "";
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, Irgba(208, 195, 195, 0.5), rgb(227, 16, 16));
transition: all 0.5s;
opacity: 0;
border-radius: 40px;
}
.card:hover:after {
    opacity: 1;
    }
    .card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 40px;
    }
    .card.info {
    position: relative;
    z-index: 3;
    color: #fff;
    opacity: 0;
    transform: translateY (30px);
    transition: all 0.5s;
    }
    
    .card:hover .info {
    opacity: 1;
    transform: translateY(0px);
    }
    .card.info h1 {
    font-size: 1.4rem;
    
    margin: 0;
    }
    .card.info p {
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin: 10px 0 25px;
    line-height: 130%;
    }
    .card .info .btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    background:#fff;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease-in;
    }
    .card .info .btn:hover {
    box-shadow: 0px 7px 10px Irgba(0, 0, 0, 0.5);
    background-color: #4b5563;
    color: #fff;
    }
    
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1rem 10%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 5;
        }
        .header::before {
        content: "";
        top: 0;
        left: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(53, 3, 252, 0.1);
        backdrop-filter: blur (50px);
        z-index: -1;
        }
        .header::after {
        content: "";
        top: 0;
        left: -100%;
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent );
        transition: 0.8s;
        }
        .header:hover::after {
        left: 100%;
        }
        .logo {
            color: #fff;
            text-decoration: none;
            font-weight: 700;
            }
            .nav-item {
            position: relative;
            color: #fff;
            font-size: 1rem;
            font-weight: 500;
            line-height: 25px;
            letter-spacing: -0.13px;
            text-decoration: none;
            margin-left: 2.5rem;
            transition: all 0.5s ease;
            }
            .nav-item:hover {
            color: skyblue;
            }
            .icons {
            position: absolute;
            right: 5%;
            font-size: 2.3rem;
            color: #fff;
            cursor: pointer;
            display: none;
            }
            #check {
            display: none;
            }
            
            *{
                margin: 0;
                padding: 0;
                font-family: 'Poppins', sans-serif;
                }
                body {
                display: flex;
                justify-content: center;
                align-items: center;
                background: #232323;
                flex-direction: column;
                }
                .container {
                position: relative;
                margin-top: 250px;
                width: 800px;
                transform: skewY(-20deg);
                }
                .container .imgBx {
                position: relative;
                width: 100%;
                height: 180px;
                transform-origin: bottom;
                transform: skewX(45deg);
                }
                .container .imgBx img {
                position: absolute;
                top:0;
                left:0;
                filter: grayscale(1);
                max-width: 100%;
                transition:0.5s;
                }
                .container .imgBx:hover img:nth-child(3) {
                    transform: translate(100px,-100px);
                }
                .container .imgBx:hover img:nth-child(2) {
                    transform: translate(50px, -50px);
                    opacity: 0.5;
                    }
                    .container .imgBx:hover img:nth-child(1) {
                    transform: translate(0px, 0px);
                    opacity: 0.1;
                    }
                    .container h2 {
                    position: relative;
                    font-size: 4em;
                    color: #FFF;
                    }
                    .container .skew {
                    transform-origin: top;
                    transform: skewX(45deg);
                    }
                    .container .skew p {
                    color: #FFF;
                    font-size: 1.2em;
                    }
                    .container .skew a {
                    position: relative;
                    padding: 10px 30px;
                    display: inline-block;
                    background: transparent;
                    color: #FFF;
                    transform-origin: top;
                    margin-top: 20px;
                    border: 2px solid #fff;
                    transform: skew(-45deg);
                    text-decoration: none;
                    letter-spacing: 2px;
                    font-size: 20px;
                    }
                    .container .skew a:hover {
                    background:#FFF;
                    color: #000;
                    }