/* 
  Refined Marquee Styles 
  Consolidated and Cleaned Up
*/

/* --- Global Marquee Layout --- */

.marquee-container {
    padding: 50px 0;
    /* Reduced to 50px for better proportion */
    overflow: hidden;
    width: 100%;
    position: relative;
    background: transparent;
    cursor: grab;
    /* Indicate draggable */
}

.marquee-container:active {
    cursor: grabbing;
    /* Indicate active drag */
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    /* Animation applied via specific classes below */
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    /* Spacing handled in specific ID blocks below */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Specific Style for CUSTOMERS (Logos) --- */
#customers .marquee-item {
    padding: 0 20px;
}

#customers .marquee-item img {
    height: 400px !important;
    /* Reduced base size for tighter fit */
    width: auto !important;
    max-width: none !important;
    min-width: 400px !important;
    /* FORCE WIDTH */
    transform: scale(2.5);
    margin: 0 15px !important;
    object-fit: contain;

    /* High Visibility Contrast - Now Full Color */
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

#customers .marquee-item img:hover {
    /* Hover State: Full Color & POP */
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(2.7);
    z-index: 10;
    position: relative;
    cursor: pointer;
}

#awards .marquee-item {
    padding: 0 20px;
}

#awards .marquee-item img {
    height: 600px !important;
    /* EXTREME TROPHIES */
    width: auto !important;
    max-width: none !important;
    min-width: 400px !important;
    /* FORCE MIN WIDTH */
    transform: scale(2.5);
    margin: 0 15px;
    object-fit: contain;

    /* Always visible in full color */
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

#awards .marquee-item img:hover {
    transform: scale(2.7);
    z-index: 10;
    position: relative;
    cursor: pointer;
}

/* --- Animations --- */
.marquee-left {
    animation: scroll-left 120s linear infinite;
}

.marquee-right {
    animation: scroll-right 120s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- Footer Redesign --- */
.footer {
    background-color: #00a550 !important;
    color: #e0e0e0 !important;
    padding-top: 5px;
    padding-bottom: 10px;
}

.footer-logo-white {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

.footer h5 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: #00a550;
    transform: translateY(-3px);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #b0b0b0;
}

/* --- Scroll Top Button --- */
.scroll-top {
    background-color: #007036 !important;
    color: #005027 !important;
}

.scroll-top:hover {
    background-color: #1f4d35 !important;
    box-shadow: 0 5px 15px rgba(0, 165, 80, 0.3);
}

/* --- Section Title Fix --- */
.section-title h2,
h2.fw-bold {
    color: #00a550 !important;
    /* Company Green */
}

.section-title h2::after {
    background: #00a550 !important;
}

/* --- Header Logo Optimization --- */
.header .logo img.custom-logo {
    max-height: 55px !important;
    /* Increased for better presence */
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .header .logo img.custom-logo {
        max-height: 45px !important;
    }
}

@media (max-width: 768px) {
    .header .logo img.custom-logo {
        max-height: 45px !important;
        max-width: 300px;
        /* Increase size for better visibility */
        margin-left: 10px;
    }

    .mobile-nav-toggle {
        margin-right: 20px !important;
    }

    /* Move "X" button to the extreme corner when menu is active */
    .mobile-nav-active .mobile-nav-toggle {
        top: 20px !important;
        right: 10px !important;
        color: #fff !important;
        z-index: 99999;
    }
}

/* --- Responsive Rules (Mobile) --- */
@media (max-width: 768px) {
    .marquee-container {
        padding: 40px 0;
    }

    .marquee-item {
        padding: 0 30px !important;
    }

    /* Smaller Logos on Mobile */
    #customers .marquee-item img {
        height: 80px !important;
        max-width: 200px;
    }

    /* Smaller Trophies on Mobile */
    #awards .marquee-item img {
        height: 160px !important;
    }
}

/* --- Split History Layout (Gallery Left, Milestones Right) --- */
.history-split-gallery-item {
    transition: all 0.3s ease;
    cursor: default;
}

.history-split-gallery-item img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.history-split-gallery-item:hover img {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 165, 80, 0.2);
}

.milestone-list {
    margin-top: 20px;
}

.milestone-item {
    border-left: 2px solid #00a550 !important;
}

.milestone-item:last-child {
    border-left-color: transparent !important;
    padding-bottom: 0;
}

.milestone-dot {
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: #00a550;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 165, 80, 0.2);
}

.history-content-wrapper p.lead {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.history-content-wrapper .text-muted {
    color: #666 !important;
    font-size: 0.95rem;
}

/* --- Carousel & Image Effects --- */
.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

.transition-zoom {
    transition: transform 0.5s ease;
}

.product-card:hover .transition-zoom {
    transform: scale(1.1);
}