/* ==========================================================================
   Bento Grid Portfolio Link Controls
   ========================================================================== */

/* Full-card link anchor wrapper reset */
.portfolio-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    outline: none;
}

/* Maintain proper spacing inside the vertical flex column stack */
.portfolio-stack .portfolio-card-link-wrapper {
    display: flex;
    flex-direction: column;
}

/* Premium micro-interaction: subtle zoom/lift on the entire bento block when hovered */
.portfolio-card-link-wrapper:hover .portfolio-card {
    transform: translateY(-4px);
    border-color: rgba(197, 168, 128, 0.25); /* Subtle premier gold hint border tint if enabled */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Category 01: Circle button icon link element normalization */
.circle-arrow-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.circle-arrow-link-btn:hover {
    background-color: #c5a880; /* Changes to your brand gold accent on hover */
    color: #0a0c10;            /* Dark contrast for the arrow icon */
    transform: scale(1.05);
}

/*commodity slide section*/

/* ==========================================================================
   Dual-Direction Infinite Commodity Slider Styling
   ========================================================================== */
   /* ==========================================================================
   Dual-Direction Infinite Commodity Slider Styling
   ========================================================================== */

.commodity-marquee-section {
    padding: 80px 0;
    background-color: #0a0c10; /* Clean dark theme matching agroplus.world */
    overflow: hidden;
    position: relative;
}

.marquee-section-container {
    width: 100%;
}

.marquee-header {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 0 24px;
}

.marquee-badge {
    font-size: 11px;
    letter-spacing: 1.2em;
    color: #FFB300; /* Premier Gold */
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.marquee-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFB300;
    letter-spacing: -0.02em;
}

.title-gold {
    color: white;
}

/* Base Marquee Row Wrapper Setup */
.marquee-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    padding: 10px 0;
}

/* Cinematic Edge Fading Mask */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    height: 100%;
    width: 150px;
    position: absolute;
    z-index: 3;
    pointer-events: none;
    top: 0;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #0a0c10 20%, rgba(10, 12, 16, 0) 100%);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #0a0c10 20%, rgba(10, 12, 16, 0) 100%);
}

/* Flex Container for the items */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

/* Unified Premier Marquee Item Box Layout */
.marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 210px;
    background-color: #11141b; /* Card dark slate background */
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* Dynamic interaction lift */
.marquee-item:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 168, 128, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Product Card Image Wrapper */
.marquee-item .item-img {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.marquee-item:hover .item-img {
    transform: scale(1.05);
}

.marquee-item span {
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: color 0.3s ease;
}

.marquee-item:hover span {
    color: #f3f4f6;
}

/* Ensure the link occupies the entire card area evenly */
.marquee-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Removes default blue link line */
    color: inherit; /* Inherits the modern grey/white font colors automatically */
}

/* ==========================================================================
   CSS Infinite Loop Keyframe Animation Core Mechanics
   ========================================================================== */

/* Left Animation Assignation */
.slide-left .marquee-track {
    animation: scrollLeft 30s linear infinite;
}

/* Right Animation Assignation */
.slide-right .marquee-track {
    animation: scrollRight 30s linear infinite;
}

/* Pause track motion completely when hovered */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); } /* Shifts perfectly half distance with pixel-exact reset */
}

@keyframes scrollRight {
    0% { transform: translateX(calc(-50% - 10px)); }
    100% { transform: translateX(0); }
}