/* --- CINEMATIC HERO SECTION --- */

.products-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: #090a0c;
}

.products-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(22, 25, 30, 0.2) 0%, var(--bg-main) 100%);
    z-index: 1;
}

.products-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    margin-top: 60px;
}

.products-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 12px 0 18px 0;
    letter-spacing: -0.03em;
}

.products-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}


/*Hero end Here*/


/* ==========================================================================
   AGRO PLUS - PREMIUM 3-COLUMN PRODUCT GRID STYLESHEET
   ========================================================================== */


/* --- SYSTEM ROOT CONFIGURATION & DESIGN TOKENS --- */

:root {
    --bg-dark-main: #0d0f12;
    --surface-card-bg: #16191e;
    --brand-accent: #2ecc71;
    --text-pure-white: #ffffff;
    --text-slate-muted: #94a3b8;
    --border-glass-line: rgba(255, 255, 255, 0.08);
}


/* --- MAIN LAYOUT WRAPPER --- */

.products-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 24px 120px 24px;
}


/* --- THE 3-COLUMN GRID DISPLAY --- */

.products-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}


/* --- REUSABLE CARD STRUCTURE --- */

.product-grid-card {
    position: relative;
    background-color: var(--surface-card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass-line);
    min-height: 480px;
    /* Optimal desktop presentation proportion ratio */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Ensures content pins seamlessly to the bottom edge */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}


/* Card Outer Micro-Interactions */

.product-grid-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.18);
}


/* --- CARD BACKGROUND GRAPHICS CONTAINER --- */

.portfolio-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-grid-card:hover .portfolio-card-bg {
    transform: scale(1.04);
    /* Subtle luxurious cinematic zoom */
}


/* --- VIGNETTE GRADIENT TEXT READABILITY OVERLAY --- */

.portfolio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to top, rgba(13, 15, 18, 1) 0%, rgba(13, 15, 18, 0.6) 55%, transparent 100__);
    z-index: 2;
}


/* --- INTERNAL INNER CARD TYPOGRAPHY WRAPPER --- */

.portfolio-card-content {
    position: relative;
    z-index: 3;
    padding: 36px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}


/* --- TYPOGRAPHY ENGINE --- */

.category-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.category-heading-small {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-pure-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.category-text {
    color: var(--text-pure-white);
    font-size: 0.99rem;
    line-height: 1.55;
    margin-bottom: 28px;
}


/* --- CARD BASE ACTION DESIGN ROW --- */

.card-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Aligns row items precisely horizontally together */
}


/* Glass Meta Pills (Used for Organic/Grade Info) */

.glass-pill-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass-line);
    color: var(--text-pure-white);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* Status Meta Tags (Used for Export/Quality Indicators) */

.tag-status {
    display: inline-block;
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}


/* Circular Arrow Call to Action Button */

.circle-arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--text-pure-white);
    color: var(--bg-dark-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-grid-card:hover .circle-arrow-btn {
    background-color: var(--brand-accent);
    color: #000000;
    transform: rotate(-45deg);
    /* Flips cleanly into an exploratory directional arrow indicator */
}


/* ==========================================================================
   RESPONSIVE LAYOUT FLOW INTERFACES
   ========================================================================== */


/* Medium Devices (Tablets, smaller laptops) */

@media (max-width: 1150px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* Steps down gracefully into 2 elements a row */
        gap: 24px;
    }
    .products-layout {
        padding: 40px 20px 80px 20px;
    }
}


/* Small Devices (Mobile Smart Phones) */

@media (max-width: 768px) {
    .products-grid-container {
        grid-template-columns: 1fr;
        /* Formats into a clean vertical stacked timeline flow list */
        gap: 20px;
    }
    .product-grid-card {
        min-height: 420px;
        /* Saves dynamic vertical space on mobile interfaces */
    }
    .portfolio-card-content {
        padding: 28px;
        /* Tighter core paddings for restricted width screens */
    }
    .category-heading-small {
        font-size: 1.4rem;
    }
}


/**/


/* ==========================================================================
   TIMELINE COMPONENT STYLING
   ========================================================================== */

.supply-timeline-section {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid var(--border-glass-line);
}

.section-header-centered {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-premium {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-pure-white);
    letter-spacing: -0.02em;
    margin-top: 8px;
}


/* Timeline Layout Engine */

.timeline-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}


/* Horizontal connecting track line for desktop views */

.timeline-container::before {
    content: '';
    position: absolute;
    top: 25px;
    /* Aligns line perfectly with the vertical center of the 50px circle boxes */
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-glass-line);
    z-index: 1;
}

.timeline-node {
    position: relative;
    z-index: 2;
}


/* Number badge node icon */

.node-number-box {
    width: 50px;
    height: 50px;
    background-color: var(--bg-dark-main);
    border: 2px solid var(--border-glass-line);
    color: var(--text-pure-white);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Hover accent states */

.timeline-node:hover .node-number-box {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    transform: scale(1.05);
}

.node-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure-white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.node-desc {
    color: var(--text-slate-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE ADJUSTMENTS)
   ========================================================================== */

@media (max-width: 1024px) {
    .timeline-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    .timeline-container::before {
        display: none;
        /* Disables connecting line on intermediate matrices */
    }
}

@media (max-width: 600px) {
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .section-title-premium {
        font-size: 1.75rem;
    }
    .node-number-box {
        margin-bottom: 16px;
    }
}


/* ==========================================================================
   LOGISTICS OVERVIEW COMPONENT STYLING
   ========================================================================== */

.logistics-overview-section {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid var(--border-glass-line);
}

.section-header-centered {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-premium {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-pure-white);
    letter-spacing: -0.02em;
    margin-top: 8px;
}


/* 3-Element Grid Engine */

.logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.logistics-card {
    background-color: var(--surface-card-bg);
    border: 1px solid var(--border-glass-line);
    border-radius: 16px;
    padding: 36px;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logistics-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}


/* Micro Icon Box Wrapper */

.logistics-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass-line);
    color: var(--brand-accent);
    /* Uses your core theme green/brand accent hex */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.logistics-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.logistics-card-text {
    color: var(--text-slate-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ==========================================================================
   RESPONSIVE LAYOUT RESPONSIVENESS
   ========================================================================== */

@media (max-width: 1024px) {
    .logistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .logistics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-title-premium {
        font-size: 1.8rem;
    }
    .logistics-card {
        padding: 28px;
    }
}