/* Container for the moving background */
.color-slider {
    width: 100%;
    height: 20px;
    overflow: hidden;
    position: relative;
    top: 80px;
}

@media screen and (min-width:1550px) {
    .color-slider {
        width: 100%;
        height: 20px;
        overflow: hidden;
        position: relative;
        top: 100px;
    }
}

@media screen and (max-width:768px) {
    .color-slider {
        top: 50px;
    }
}

/* The actual animated background */
.color-slider::before {
    content: "";
    position: absolute;
    width: 300%;
    /* Extend width for a seamless transition */
    height: 100%;
    background: repeating-linear-gradient(to right,
            #428bca 0px, #428bca 250px,
            /* Blue */
            #f4c2c2 250px, #f4c2c2 500px,
            /* Pink */
            #fdb833 500px, #fdb833 750px,
            /* Yellow */
            #d4af37 750px, #d4af37 1000px,
            /* Gold */
            #b68e6a 1000px, #b68e6a 1250px,
            /* Brown */
            #d4af37 1250px, #d4af37 1500px,
            /* Gold */
            #4682b4 1500px, #4682b4 1750px
            /* Steel Blue */
        );
    animation: slideColors 30s linear infinite;
}

/* Keyframes for the continuous movement */
@keyframes slideColors {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* section1 */
.section1 {
    padding-top: 5%;
    display: flex;
    gap: 4%;
    background-color: #FFF7EE;
    height: 100vh;
    overflow: hidden;
    /* Prevent scrolling for the entire section */
}

.product-card {
    background: white;
    width: 350px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-image {
    background: #f0f0f0;
    height: 200px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.product-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 15px;
}

.tagline {
    color: #e53935;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.features-heading {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.features-list {
    list-style: none;
    columns: 2;
    column-gap: 20px;
}

.features-list li {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.features-list li::before {
    content: "•";
    color: #e53935;
    position: absolute;
    left: 0;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 3%;
}


.category-item {
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    width: 100%;
    margin-left: 20px !important;
    transition: background-color 0.3s, color 0.3s;
    user-select: none;
    list-style-type: none;
}

.category-item.active {
    font-weight: 500 !important;
    font-size: 20px;
    width: 200px;
    background: linear-gradient(90deg, #21A366, #00A3E0, #7030A0, #C00000, #FFC000, #548235, #002BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* Darker underline effect */
.category-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            #008000, #0057B7, #7030A0,
            #C00000, #FF8C00, #2E7D32, #00008B);
    border-radius: 5px;
    filter: blur(1.2px);
    opacity: 1;
    /* Ensures it’s dark and visible */
}

/* Scrollbar for Webkit browsers */
.products-container::-webkit-scrollbar {
    width: 10px;
    /* Increase width for better visibility */
}

.products-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    /* Darker background for contrast */
    border-radius: 6px;
}

.products-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            #21A366, #00A3E0, #7030A0,
            #C00000, #FF8C00, #548235, #002BFF);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    /* Light border for better definition */
}

/* Products Container Section */
.products-container {
    flex-grow: 1;
    /* Takes remaining space */
    overflow-y: auto;
    /* Scroll applied to products */
    direction: rtl;
    /* Moves scrollbar to the left side */
}

.products-container>* {
    direction: ltr;
    /* Ensures content stays left-aligned */
}

.filters-con {
    /* border: 1px solid lightblue; */
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;

    /* Animation Properties */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media screen and (max-width:768px) {
    .filters-con {
        border: none;
    }
}

.filters-con.show {
    opacity: 1;
    transform: translateY(0);
}

.paint-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1%;
    width: 100%;
}

.paint-card-wrapper {
    position: relative;
    padding: 15px;
    margin: 2%;
}

.paint-card-background {
    position: absolute;
    top: 30px;
    left: 35px;
    width: 250px;
    height: 290px;
    background: #ffffff;
    border-radius: 10px;
    z-index: 0;
    border-radius: 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}


.paint-card {
    width: 250px;
    background-color: #FFC3BE;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}


.paint-card2 {
    width: 250px;
    background-color: #FFD3B4;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.paint-card3 {
    width: 250px;
    background-color: #FFEEAD;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.paint-card4 {
    width: 250px;
    background-color: #C0FCD9;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.paint-card5 {
    width: 250px;
    background-color: lightseagreen;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.paint-card5 {
    width: 250px;
    background-color: lightseagreen;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.paint-card6 {
    width: 250px;
    background-color: #FFE1FE;
    padding: 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}


.paint-card .backround {
    background-color: red
}

.image-container {
    margin-top: -10px;
    z-index: 4;
}

.image-container::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 180px;
    height: 150px;
    margin-top: 40px;
    text-align: center;
    border: 5px solid white;
    /* Square border */
    z-index: -1;
    /* Places it behind the image */
}

.paint-image {
    /* border: 4px solid white; */
    width: 180px;
    height: 200px;
    border-radius: 5px;
}

.paint-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.paint-info {
    text-align: left;
}

.paint-title {
    font-size: 16px;
    font-weight: 600 !important;
    font-weight: normal;
    color: black;
    margin: 0;
}

.paint-subtitle {
    font-size: 14px;
    color: black;
    margin: 0;
}

.arrow-container {
    background: white;
    width: 40px;
    /* Increased size for better visibility */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.arrow {
    font-size: 25px;
    /* Adjusted to fit inside the container */
    color: black;
    transform: rotate(-45deg);
    transition: all 0.5s;
    /* Corrected rotation */
}

.arrow-container:hover .arrow {
    transform: rotate(0deg);
    /* Rotates to point right on hover */
}

/* responsiveness for large screen */
@media screen and (min-width:1550px) {
    .section1 {
        width: 100%;
        margin: auto;
    }

    .paint-card-container {
        display: flex;
        /* justify-content: space-around; */
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .categories {
        margin-left: 2%;
    }

    .paint-card-background {
        top: 40px;
        left: 40px;
        width: 300px;
        height: 320px;
    }

    .paint-image {
        width: 100%;
        height: 220px;
        border-radius: 5px;
        margin-top: -12px;

    }

    .image-container::before {
        content: "";
        position: absolute;
        top: 15px;
        right: 17%;
        width: 200px;
        height: 180px;
        margin-top: 40px;
        text-align: center;
        border: 5px solid white;
        /* Square border */
        z-index: -1;
        /* Places it behind the image */
    }

    .paint-card,
    .paint-card2,
    .paint-card3,
    .paint-card4,
    .paint-card5,
    .paint-card6 {
        width: 300px;
        height: 320px;

    }

    .paint-details {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        width: 100%;
        margin-top: 30px;
    }

    .arrow-container {
        background: white;
        width: 40px;
        /* Increased size for better visibility */
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 50%;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .arrow {
        font-size: 25px;
        /* Adjusted to fit inside the container */
        color: black;
        transform: rotate(-45deg);
        transition: all 0.5s;
        /* Corrected rotation */
    }

    .arrow-container:hover .arrow {
        transform: rotate(0deg);
        /* Rotates to point right on hover */
    }

}

/* Mobile Responsive Styles */
@media (max-width: 768px) {

    /* Section 1 Adjustments */
    .section1 {
        flex-direction: column;
        padding-top: 15%;
        gap: 30px;
    }

    .product-card {
        width: 100%;
        padding: 15px;
        margin-bottom: 20px;
    }

    .product-image {
        height: 150px;
        margin-bottom: 15px;
    }

    .product-image img {
        width: 100px;
        height: 100px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-subtitle {
        font-size: 16px;
    }

    /* Features List Adjustment */
    .features-list {
        columns: 1;
    }

    /* Categories Adjustment */
    .categories {
        align-items: center !important;
        width: 100%;
        margin: auto;
        flex-direction: column;
    }

    .category-item {
        width: 100%;
        margin-left: 0 !important;
        padding: 0;
        padding-left: 5px;
        text-align: center;
    }

    /* Paint Cards Adjustments */
    .paint-card-container {
        flex-direction: column;
        gap: 30px;
    }

    .paint-card-wrapper {
        margin: 0;
        padding: 15px;
        width: 100%;
    }

    .paint-card-background {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        margin-bottom: -40px;
    }

    .paint-card,
    .paint-card2,
    .paint-card3,
    .paint-card4,
    .paint-card5,
    .paint-card6 {
        width: 100%;
        margin: 0 auto;
    }


    .image-container::before {
        content: "";
        position: absolute;
        top: 20px;
        width: 50%;
        height: 110px;
        margin-top: 40px;
        /* text-align: center; */
        border: 5px solid white;
        z-index: -1;
        right: 25%;
    }

    .paint-image {
        width: 120px;
        height: 150px;
    }

    .paint-details {
        display: flex;
        justify-content: center;
        align-items: center;
        /* width: 100%; */
        margin-top: 10px;
        gap: 29px;
        margin-top: 20px;
    }

    /* Filters Container */
    .filters-con {
        margin: 0 15px;
    }
}

/* For very small screens (optional) */
@media (max-width: 480px) {
    .product-title {
        font-size: 18px;
    }

    .product-subtitle {
        font-size: 14px;
    }

    .paint-title {
        font-size: 14px;
    }

    .paint-subtitle {
        font-size: 12px;
    }

    .arrow-container {
        width: 25px;
        height: 25px;
    }
}

/* product deatisl */

/* Features Section */
.features-section {
    background: #F6F4F4;
    padding: 40px 0;
    text-align: center;
    position: relative;
    height: auto;
    margin-top: 7%;
}

/* Brush Image */
/* Brush Image */
.brush-image-container {
    position: absolute;
    margin-top: -9%;
    left: 0;
    width: 100%;
    text-align: left;
    z-index: 5;
    /* Higher z-index to appear on top */
}

.brush-image {
    max-width: 32%;
    height: auto;
    z-index: 6;
    /* Ensure image appears above all elements */
    position: relative;
}

/* Features Content */
.features-content {
    position: relative;
    z-index: 1;
}

/* Section Title */
.features-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 35px;
}

/* Features Grid */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Feature Card */
.feature-card {
    background: #fff;
    border: 2px solid #F6A46D;
    border-radius: 10px;
    padding: 20px;
    width: 200px;
    height: 200px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

/* Feature Icon */
.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* Feature Text */
.feature-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

@media screen and (min-width:1550px) {
    .feature-card {
        background: #fff;
        border: 2px solid #F6A46D;
        border-radius: 10px;
        padding: 20px;
        display: flex;
        width: 300px;
        height: 300px;
        text-align: center;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    .brush-image {
        max-width: 35%;
        height: auto;
        z-index: 6;
        position: relative;
    }

    .features-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 30px;
    }
}

/* mobile view  */
@media screen and (max-width: 768px) {
    .features-section {
        padding: 20px 10px;
        margin-top: 10%;
        text-align: center;
    }

    /* Adjust brush image for mobile */
    .brush-image-container {
        text-align: center;
        margin-top: -12%;
        left: 0;
    }

    .brush-image {
        /* max-width: 60%; */
    }

    /* Adjust title */
    .features-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* Stack features in a single column */
    .features-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Resize feature cards */
    .feature-card {
        width: 90%;
        height: auto;
        padding: 15px;
    }

    /* Resize feature icons */
    .feature-icon {
        width: 80px;
        height: 80px;
    }

    /* Adjust feature text */
    .feature-text {
        font-size: 13px;
    }
}



/* section4 */
.section4 {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Smooth background fade animation */
    animation: fadeBackground 10s infinite linear;
}

@keyframes fadeBackground {
    0% {
        background-image: url('../images/add1.png');
        opacity: 1;
    }

    33% {
        background-image: url('../images/add2.png');
        opacity: 1;
    }

    100% {
        background-image: url('../images/add4.png');
        opacity: 1;
    }
}

.myro-con {
    width: 50%;
    text-align: left;
}

@media screen and (min-width:1024px) and (max-width:1280px) {
    .myro-con {
        margin-left: 5%;
    }
}

.fade-con {
    width: 100%;
    max-width: 400px;
    margin: auto;
    margin: 2%;
}

.fade-con img {
    width: 250px;
    height: 200px;
    vertical-align: middle;
}

.align-con {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* mobile view  */
@media screen and (max-width: 768px) {
    .section4 {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        height: auto;
        /* Smooth background fade animation */
        animation: fadeBackground 10s infinite linear;
    }

    .align-con {
        flex-direction: column;
        gap: 20px;
    }

    .myro-con {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .myro-con h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .myro-con p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Center and resize images */
    .fade-con {
        width: 100%;
        max-width: 300px;
        margin: auto;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .fade-con img {
        width: 90%;
        max-width: 200px;
        height: auto;
    }

    .align-con img {
        max-width: 80%;
        height: auto;
    }
}


@media screen and (min-width:1550px) {
    .align-con {
        display: flex;
        align-items: center;
        justify-content: space-between !important;
        gap: 10%;
        width: 90%;
    }
}

/* product details  */

.product-details-appear {
    position: fixed;
    /* Centers it on the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    /* Ensures it's above other elements */
}

.product-details-appear.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    display: block;
}

.container-product {
    display: flex;
    background: linear-gradient(to right, #E86C60 50%, #F4E9E5 50%);
    /* padding: 20px; */
    border-radius: 10px;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    position: relative;
    margin-top: 250px;

}

.left-section {
    width: 60%;
    display: flex;
    position: relative;
    padding: 50px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: linear-gradient(to bottom, #E86C60 100%, transparent 50%), linear-gradient(to right, #1A1A3A 50%, #046C64 50%);
    background-size: 100% 50%, 100% 50%;
    background-position: top, bottom;
    background-repeat: no-repeat;
}


.dummy-bucket {
    width: 250px;
    height: 300px;
    background: gray;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.right-section {
    width: 50%;
    padding: 20px;
}

.right-section h2 {
    font-size: 30px;
    font-weight: bold;
    color: #2E2C6A;
    margin-bottom: 15px;
}

.description,
.direction {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 5px;
}

.features {
    display: flex;
    justify-content: space-between;
    /* margin-top: 20px; */
    /* border: 1px solid #333; */
    /* padding: 10px; */
    border-radius: 5px;
    gap: 20px;
}

.features-outline {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #333;
}

.feature-item {
    text-align: center;
    font-size: 14px;
    color: #333;
}

.close {
    position: absolute;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .product-details-appear {
        width: 90%;
        /* Adjust width for smaller screens */
        max-width: 400px;
        /* Prevent it from being too wide */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .container-product {
        flex-direction: column;
        /* Stack elements vertically */
        width: 100%;
        max-width: 100%;
        margin-top: 100px;
        border-radius: 10px;
        padding: 15px;
        background: linear-gradient(to bottom, #E86C60 25%, #F4E9E5 60%);
    }

    .left-section {
        width: 100%;
        /* Full width */
        padding: 20px;
        border-radius: 10px 10px 0 0;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: linear-gradient(to bottom, #E86C60 100%, transparent 50%), linear-gradient(to right, #1A1A3A 50%, #046C64 50%);
        background-size: 100% 50%, 100% 50%;
        background-position: top, bottom;
    }

    .left-section img {
        width: 80%;
        /* Resize image */
        max-width: 180px;
    }

    .right-section {
        width: 100%;
        /* Full width */
        padding: 15px;
        text-align: center;
        /* Center text for readability */
    }

    .right-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .description,
    .direction {
        font-size: 13px;
        padding: 8px;
        margin-bottom: 10px;
    }

    .features {
        flex-direction: column;
        /* Stack features */
        align-items: center;
        gap: 10px;
    }

    .feature-icon {
        width: 25px;
        height: 25px;
    }

    .feature-item {
        font-size: 12px;
    }

    .close {
        top: 5px;
        right: 10px;
        font-size: 24px;
    }
}





/* unlock */
.unlock-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 2%;
}

/* mobiel view  */
@media screen and (max-width: 768px) {
    .unlock-con {
        padding: 5%;
        text-align: center;
    }

    .fw-bold {
        font-size: 20px;
    }

    .fs-5 {
        font-size: 20px !important;
    }

    .unlock-con h1 {
        font-size: 16px;
    }

    .unlock-con p {
        font-size: 16p !important;
        margin-bottom: 10px;
    }

    .unlock-con button {
        width: 100%;
        /* Make button wider for better tapability */
        max-width: 300px;
        font-size: 12px;
        padding: 8px;
        border-radius: 8px;
    }
}