﻿/* AdvancedFacilities.css */
.facilities-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    color: #2d5016;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2d5016, #4a7c1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #5a7d3a;
    margin-bottom: 25px;
    font-weight: 400;
}

.section-divider {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #4a7c1d;
    font-size: 1.2rem;
}

    .section-divider::before,
    .section-divider::after {
        content: '';
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, transparent, #4a7c1d);
    }

    .section-divider::after {
        background: linear-gradient(90deg, #4a7c1d, transparent);
    }

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: start;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.image-column {
    position: relative;
}

/* Facility Cards */
.facility-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

    .facility-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #4a7c1d, #a3d95a);
    }

    .facility-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

    .facility-card.processing::before {
        background: linear-gradient(90deg, #4a7c1d, #6ba32b);
    }

    .facility-card.godown::before {
        background: linear-gradient(90deg, #2d5016, #4a7c1d);
    }

    .facility-card.support::before {
        background: linear-gradient(90deg, #a3d95a, #4a7c1d);
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4a7c1d, #6ba32b);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.facility-info h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 5px;
    font-weight: 600;
}

.facility-tag {
    background: rgba(74, 124, 29, 0.1);
    color: #4a7c1d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(74, 124, 29, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(74, 124, 29, 0.1);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
        color: #444;
        font-size: 0.95rem;
    }

        .feature-list li i {
            color: #4a7c1d;
            width: 16px;
        }

/* Godown Image */
.godown-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    height: 600px;
}

.godown-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.godown-image-container:hover .godown-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(45, 80, 22, 0.9));
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100px);
    transition: transform 0.4s ease;
}

.godown-image-container:hover .image-overlay {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.overlay-content p {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.image-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.image-stat {
    text-align: center;
}

    .image-stat .number {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .image-stat .label {
        font-size: 0.8rem;
        opacity: 0.8;
    }

/* Features Grid Section */
.features-grid-section {
    margin-bottom: 80px;
}

.section-subheader {
    text-align: center;
    margin-bottom: 50px;
}

    .section-subheader h3 {
        font-size: 2.2rem;
        color: #2d5016;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .section-subheader p {
        color: #5a7d3a;
        font-size: 1.1rem;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

    .feature-icon.quality {
        background: linear-gradient(135deg, #4a7c1d, #6ba32b);
    }

    .feature-icon.technology {
        background: linear-gradient(135deg, #2d5016, #4a7c1d);
    }

    .feature-icon.storage {
        background: linear-gradient(135deg, #a3d95a, #4a7c1d);
    }

    .feature-icon.support {
        background: linear-gradient(135deg, #6ba32b, #2d5016);
    }

    .feature-icon.capacity {
        background: linear-gradient(135deg, #4a7c1d, #a3d95a);
    }

    .feature-icon.certification {
        background: linear-gradient(135deg, #2d5016, #6ba32b);
    }

.feature-item h4 {
    font-size: 1.3rem;
    color: #2d5016;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4a7c1d, #2d5016);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    }

.cta-content {
    position: relative;
    z-index: 2;
}

    .cta-content h3 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .cta-content p {
        font-size: 1.2rem;
        opacity: 0.9;
        margin-bottom: 30px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.cta-stat {
    text-align: center;
}

    .cta-stat .number {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .cta-stat .label {
        font-size: 0.9rem;
        opacity: 0.8;
    }

/* Responsive Design */
@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .godown-image-container {
        height: 400px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .facilities-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .facility-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 20px;
    }
}

/* Animation Classes */
.facility-card,
.feature-item,
.godown-image-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

    .facility-card.visible,
    .feature-item.visible,
    .godown-image-container.visible {
        opacity: 1;
        transform: translateY(0);
    }
