﻿/* Infrastructure Cards - Colorful & Clear Design */
.infrastructure-section {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Header Styles */
.infra-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    border-radius: 16px;
    border-left: 6px solid #4CAF50;
}

.infra-title {
    color: #2E7D32;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.infra-subtitle {
    color: #555;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Cards Container */
.infra-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    padding: 10px;
    margin-bottom: 50px;
}

/* Individual Card */
.infra-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #f0f0f0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .infra-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    }

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.infra-card:hover .card-image {
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Colorful Card Titles */
.card-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
    padding: 10px 0;
    position: relative;
    display: inline-block;
}

    .card-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        border-radius: 2px;
    }

/* Color 1: Quality Seeds - Orange */
.card-title-1 {
    color: #FF6B35;
}

    .card-title-1::after {
        background: linear-gradient(90deg, #FF6B35, #FFA500);
    }

/* Color 2: Storage Facilities - Blue */
.card-title-2 {
    color: #2A75C6;
}

    .card-title-2::after {
        background: linear-gradient(90deg, #2A75C6, #4A90E2);
    }

/* Color 3: Quality Control - Purple */
.card-title-3 {
    color: #7B1FA2;
}

    .card-title-3::after {
        background: linear-gradient(90deg, #7B1FA2, #9C27B0);
    }

/* Color 4: Production Network - Green */
.card-title-4 {
    color: #388E3C;
}

    .card-title-4::after {
        background: linear-gradient(90deg, #388E3C, #4CAF50);
    }

.card-description {
    color: #555;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 15px 0;
    flex-grow: 1;
    font-weight: 400;
}

/* Common Explore Button Container */
.common-button-container {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
}

/* Common Explore Button */
.common-explore-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 350px;
}

    .common-explore-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.7s ease;
    }

    .common-explore-btn:hover {
        background: linear-gradient(135deg, #388E3C 0%, #1B5E20 100%);
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 35px rgba(76, 175, 80, 0.5);
    }

        .common-explore-btn:hover::before {
            left: 100%;
        }

    .common-explore-btn:active {
        transform: translateY(-2px) scale(1.02);
    }

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.common-explore-btn:hover .btn-icon {
    transform: translateX(10px) rotate(90deg);
}

/* Button pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
    }

    100% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    }
}

.common-explore-btn {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .infra-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .card-image-wrapper {
        height: 260px;
    }
}

@media (max-width: 992px) {
    .infra-title {
        font-size: 36px;
    }

    .infra-subtitle {
        font-size: 18px;
    }

    .infra-header {
        padding: 30px 20px;
        margin-bottom: 50px;
    }

    .card-title {
        font-size: 26px;
    }

    .card-description {
        font-size: 16px;
    }

    .common-explore-btn {
        font-size: 18px;
        padding: 18px 45px;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .infrastructure-section {
        margin: 40px auto;
        padding: 0 15px;
    }

    .infra-cards-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 40px;
        gap: 25px;
    }

    .infra-title {
        font-size: 32px;
    }

    .infra-subtitle {
        font-size: 17px;
    }

    .card-image-wrapper {
        height: 240px;
    }

    .card-content {
        padding: 25px;
    }

    .card-title {
        font-size: 24px;
    }

    .common-explore-btn {
        font-size: 16px;
        padding: 16px 40px;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .infra-title {
        font-size: 28px;
    }

    .infra-subtitle {
        font-size: 16px;
    }

    .infra-header {
        padding: 25px 15px;
        margin-bottom: 40px;
    }

    .card-image-wrapper {
        height: 220px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-description {
        font-size: 15px;
    }

    .common-button-container {
        padding: 20px;
    }

    .common-explore-btn {
        width: 100%;
        min-width: auto;
        padding: 16px 30px;
        font-size: 16px;
    }
}

/* Animation for card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.infra-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

    .infra-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .infra-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .infra-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .infra-card:nth-child(4) {
        animation-delay: 0.4s;
    }
