/* ============================================
   Brand Slider - 3 Rows Pure CSS Animation
   Like gosocial.co.id implementation
   ============================================ */

/* Section Container */
.optech-brand-section2 {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background: #fff;
}

/* Section Title Styling */
.brand-section-subtitle {
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.brand-section-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
}

/* Slider Wrapper */
.brand-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
}

/* Brand Scroll Container */
.brand-scroll-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

/* Brand Scroll Track - The moving element */
.brand-scroll-track {
    display: flex;
    width: max-content;
    gap: 40px;
    align-items: center;
}

/* Scroll LEFT Animation */
.scroll-left .brand-scroll-track {
    animation: scrollLeft 40s linear infinite;
}

.scroll-left:hover .brand-scroll-track {
    animation-play-state: paused;
}

/* Scroll RIGHT Animation */
.scroll-right .brand-scroll-track {
    animation: scrollRight 40s linear infinite;
}

.scroll-right:hover .brand-scroll-track {
    animation-play-state: paused;
}

/* Brand Item */
.brand-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.brand-item:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

/* Brand Image */
.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Animation Keyframes */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .brand-item {
        width: 180px;
        height: 90px;
    }

    .brand-scroll-track {
        gap: 30px;
    }

    .brand-section-title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .optech-brand-section2 {
        padding: 60px 0;
    }

    .brand-section-title {
        font-size: 32px;
    }

    .brand-item {
        width: 160px;
        height: 80px;
    }

    .brand-scroll-track {
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .optech-brand-section2 {
        padding: 50px 0;
    }

    .brand-section-title {
        font-size: 24px;
    }

    .brand-item {
        width: 140px;
        height: 70px;
        padding: 10px;
    }

    .brand-scroll-track {
        gap: 20px;
    }

    .scroll-left .brand-scroll-track,
    .scroll-right .brand-scroll-track {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .optech-brand-section2 {
        padding: 40px 0;
    }

    .brand-section-title {
        font-size: 20px;
    }

    .brand-item {
        width: 120px;
        height: 60px;
        padding: 8px;
    }

    .brand-scroll-track {
        gap: 15px;
    }
}

.brand-section-title {
    max-width: 900px;
    margin: 0 auto;
    font-size: 32px;
    line-height: 1.4;
    color: #1a1a1a;
}

/* Slider Wrapper */
.brand-slider-wrapper {
    margin-top: 50px;
}

/* Slider Container */
.optech-brand-slider {
    overflow: hidden;
    margin-bottom: 25px;
}

.optech-brand-slider:last-child {
    margin-bottom: 0;
}

/* Image Wrapper */
.optech-brand-slider .brand-image-wrapper,
.optech-brand-slider .image-wrapper {
    padding: 0 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100px;
}

/* Brand Images */
.optech-brand-slider .brand-image,
.optech-brand-slider .customer-brand-image {
    max-width: 140px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    filter: grayscale(100%);
    will-change: transform, opacity, filter;
}

/* Hover Effects */
.optech-brand-slider .brand-image-wrapper:hover .brand-image,
.optech-brand-slider .image-wrapper:hover .customer-brand-image {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Slick Slider Overrides */
.optech-brand-slider .slick-track {
    display: flex;
    align-items: center;
}

.optech-brand-slider .slick-slide {
    height: auto;
}

.optech-brand-slider .slick-list {
    margin: 0;
    padding: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets and Small Desktops */
@media (max-width: 1199px) {
    .brand-section-title {
        font-size: 28px;
    }

    .optech-brand-slider .brand-image,
    .optech-brand-slider .customer-brand-image {
        max-width: 120px;
        max-height: 70px;
    }

    .optech-brand-slider .brand-image-wrapper,
    .optech-brand-slider .image-wrapper {
        padding: 0 15px;
        height: 90px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .optech-brand-section2 {
        padding: 60px 0;
    }

    .brand-section-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .brand-section-title {
        font-size: 24px;
    }

    .brand-slider-wrapper {
        margin-top: 40px;
    }

    .optech-brand-slider {
        margin-bottom: 20px;
    }

    .optech-brand-slider .brand-image,
    .optech-brand-slider .customer-brand-image {
        max-width: 100px;
        max-height: 60px;
    }

    .optech-brand-slider .brand-image-wrapper,
    .optech-brand-slider .image-wrapper {
        padding: 0 10px;
        height: 80px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .brand-section-title {
        font-size: 20px;
        padding: 0 15px;
    }

    .optech-brand-slider .brand-image,
    .optech-brand-slider .customer-brand-image {
        max-width: 80px;
        max-height: 50px;
    }

    .optech-brand-slider .brand-image-wrapper,
    .optech-brand-slider .image-wrapper {
        padding: 0 8px;
        height: 70px;
    }
}
