/* 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 10s linear infinite;
}

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

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


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

}


@media screen and (min-width:1550px) {
    .filters-con {
        max-width: 1850px;
    }
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 3%;
}

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

.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: 150px;
    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 */
}


/* Gallery Grid */
.paint-card-container {
    display: flex;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-wrap: wrap;
    padding-top: 2%;

}

/* Paint Cards */
.paint-card {
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.paint-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); */
}

.paint-section {
    display: none;
    /* Initially hidden */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.paint-section.active {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 1;
    transform: scale(1);
}

/* Paint Image */
.paint-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 5px;
    margin: 20px;
}

@media screen and (min-width:1550px) {
    .paint-card img {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 5px;
        margin: 20px;
    }

    .paint-card-container {
        margin-top: 0;
    }
}

/* Paint Title */
.paint-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

/* mobile view for section1 */
/* Mobile View Adaptations */
@media (max-width: 768px) {

    /* Section1 */
    .section1 {
        margin-top: 5%;
        padding: 15px;
        display: flex;
        flex-direction: column
    }

    /* Filters Container */
    .filters-con {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
    }

    /* Category Filters */
    .category-filters {
        width: 100%;
        margin-top: 20px;

    }

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

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

    .category-item.active {
        background-color: var(--primary-color);
        text-align: center;
    }

    /* Gallery Section */
    .paint-card-container {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    /* Paint Cards */
    .paint-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .paint-card img {
        width: 100%;
        max-width: 280px;
        height: auto;
        border-radius: 5px;
    }

    /* Paint Title */
    .paint-title {
        font-size: 16px;
        text-align: center;
    }
}



/* 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%;
    }
}

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

.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 section4 */
/* 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;
    }
}


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

/* mobiel view section */
@media screen and (max-width:768px) {
    .fw-bold {
        font-size: 20px;
    }

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