/* NEW ANIMATIONS */
:root {
    --slide-distance: 40px;
    --slide-duration: 1500ms;
    --slide-ease: cubic-bezier(.2, .9, .2, 1);
}

/* common styles for items that will animate */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(0) translateY(0);
    transition-property: opacity, transform;
    transition-duration: var(--slide-duration);
    transition-timing-function: var(--slide-ease);
    will-change: transform, opacity;
}

/* initial offsets based on direction */
.animate-on-scroll[data-direction="left"] {
    transform: translateX(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="right"] {
    transform: translateX(var(--slide-distance));
}

.animate-on-scroll[data-direction="up"] {
    transform: translateY(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="down"] {
    transform: translateY(var(--slide-distance));
}

/* when element becomes visible */
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* NEW ANIMATION END */
.container {
    width: 85%;
}

.product-section .container,
.cta-section .container {
    width: 80%;
}

.giffy-banner {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
    background-color: #fff;
}

.giffy-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.giffy-banner-info-div h1 {
    margin-top: 0;
    font-size: 4.5rem;
    color: #000;
    font-weight: 600;
    margin-bottom: 2rem;
    display: grid;
}

.giffy-banner-info-div p {
    font-size: 3rem;
    color: #333333;
    margin: 4rem 0;
}

.giffy-banner-btn {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    padding: 1.2rem 3rem;
    transition: all 0.3s ease;
}

.giffy-banner-btn:hover {
    background-color: #166e7b;
    text-decoration: none;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 137, 153, 0.3);
}

.giffy-banner-image-div p {
    font-size: 2.1rem;
    margin-bottom: 2rem;
}

.category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15rem;
}

.category-list a {
    /* box-shadow: rgb(0 0 0 / 21%) 0px 0px 25px; */
    text-decoration: none;
    color: #000;
    font-size: 2rem;
    /* padding: 5rem; */
}

.product-section {
    padding: 0rem 0 8rem;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
}

.product-section h2 {
    font-size: 3.8rem;
    font-weight: 500;
    margin-bottom: 3rem;
    text-align: center;
}

.product-section h2::after {
    content: "";
    display: block;
    width: 35px;
    height: 4px;
    margin: .5rem auto 0;
    background-color: #cc5500;
}

.product-text {
    font-size: 2rem;
    margin-bottom: 8rem;
}

.product-categorey-card {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 25px;
    position: relative;
    cursor: pointer;
    height: auto;
    margin: 0px 1.5rem;
    border-radius: 1em;
    overflow: hidden;
    padding: 3.5rem;
    border-top: .37rem solid #c50;
}

.product-categorey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
    border-top-width: .42rem;
}

.product-categorey-card img {
    width: 35%;
}

.categorey-name {
    margin-top: 2rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.cta-section {
    text-align: center;
    background-color: #fff;
    margin-bottom: 10rem;
}

.cta-section h3 {
    font-size: 3.8rem;
    font-weight: 500;
    margin-bottom: 3rem;
}

.cta-section p {
    font-size: 2rem;
    margin-bottom: 4rem;
}

.cta-section .cta-btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #0279d3 0, #61adf4 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

.cta-section .cta-btn:focus,
.cta-section .cta-btn:hover {
    color: #fff;
}

.cta-section .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

@media (max-width: 767.98px) {

    .giffy-banner {
        padding-top: 10rem;
        padding-bottom: 3rem;
    }

    .giffy-banner-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 90%;
    }

    .category-list {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-text {
        margin-bottom: 5rem;
    }

    .product-section {
        padding: 0rem 0 5rem;
    }

}

@media (max-width: 480.98px) {
    .giffy-banner-info-div h1 {
        font-size: 3.8rem;
    }

    .container {
        width: 95%;
    }

}