
html {
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 0;
    z-index: 100;
}
/*====Perfumes Animations=====*/
.img-box img{
    display: block;
    width: 100%;
    height: 30rem;
    object-fit: cover;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    text-align: center;
    gap: .5px;
    padding: 20px;
    width: 95%;
    margin: auto;
}

.card {
    display: block;
    overflow: hidden;
    border-radius: 0.6rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.card-content {
    position: absolute;
    background-color: rgba(0 0 0/50%);
    bottom: 0;
    color: #fff;
    width: 100%;
    height: 20%;
    padding: 2.2rem;
    overflow: hidden;
    transition: 0.7s;
}

.card-content h1{
    font-size: 2rem;
    font-weight: 600;
}

.card-content p {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    line-height: 1.5rem;
    padding: 2rem;
}

.card-content:hover {
    height: 100%;
    transition: 0.7s;
}

/*====Media Queries====*/
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-Bx {
        justify-content: center;
        align-items: center;
    }
}
@media (max-width: 767px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .card-text {
        font-size: 1.2rem;
    }
    .card-Bx {
        justify-content: center;
        align-items: center;
        width: 250px;
        height: 260px;
    }
    .card-heading {
        font-size: 1rem;
    }
    .card-text {
        font-size: .5rem;
    }
}

@media (max-width: 480px) {
    .card-heading {
        font-size: .8rem;
    }
    .card-text {
        font-size: .4rem;
    }
}

/*=======PRODUCT Text Animation=========*/
.italic {
    font-style: italic;
    font-weight: 500;
}

.myBox1:hover {
    animation: myScale 2s linear 2;
}

@keyframes myScale {
    50% {
        transform: scale(0.5, 0.5);
    }
}

/*====3D HOVER EFFECTS=====*/
section .card-Bx {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

section .card-Bx .box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 1s;
    transform-style: preserve-3d;
}

section .card-Bx:hover .box {
    transform: rotateY(180deg);
}

section .card-Bx .box .imgBx {     
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

section .card-Bx .box .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section .card-Bx .box .contentBx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
}

section .card-Bx .box .contentBx div {
    transform-style: preserve-3d;
    padding: 20px;
    background: linear-gradient(45deg, #fe0061, #ffeb3b);
    transform: translateZ(100px);
}

section .card-Bx .box .contentBx div h2 {
    color: #000;
    font-size: 2rem;
    text-align: center;
}
section .card-Bx .box .contentBx div p {
    color: #000;
    font-size: 1rem;
    text-align: center;
    margin-top: 10px;
}