﻿/* CollaborationShowcase.css - REVISED COLOR THEME */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* NEW Color Palette - Earthy & Professional */
    --primary-dark: #1a472a;
    --primary-main: #2e7d32;
    --primary-light: #4caf50;
    --primary-lighter: #81c784;
    /* Secondary Colors */
    --secondary-dark: #b26500;
    --secondary-main: #ff9800;
    --secondary-light: #ffb74d;
    /* Neutral Colors - Optimized for readability */
    --text-dark: #1e1e1e;
    --text-medium: #424242;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-light: #e0e0e0;
    --border-medium: #bdbdbd;
    /* Category Colors - Muted but distinct */
    --government-color: #1976d2;
    --ngo-color: #d32f2f;
    --nabard-color: #ed6c02;
    --farmer-color: #2e7d32;
    --private-color: #7b1fa2;
    /* NEW Gradients - Softer and more professional */
    --gradient-primary: linear-gradient(135deg, #1a472a 0%, #2e7d32 100%);
    --gradient-secondary: linear-gradient(135deg, #b26500 0%, #ff9800 100%);
    --gradient-success: linear-gradient(135deg, #1b5e20, #2e7d32);
    --gradient-warning: linear-gradient(135deg, #e65100, #ed6c02);
    --gradient-danger: linear-gradient(135deg, #c62828, #d32f2f);
    --gradient-info: linear-gradient(135deg, #1565c0, #1976d2);
    /* Background Gradients */
    --bg-gradient-primary: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --bg-gradient-green: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.collaboration-showcase {
    min-height: 100vh;
    padding: 80px 0;
    background: var(--bg-gradient-primary);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

    .collaboration-showcase::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(46, 125, 50, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 152, 0, 0.03) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(26, 71, 42, 0.02) 0%, transparent 50%);
        pointer-events: none;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 48px;
    font-weight: 400;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.header-stat {
    text-align: center;
}

    .header-stat .stat-number {
        display: block;
        font-size: 3rem;
        font-weight: 800;
        color: var(--primary-main);
        line-height: 1;
        margin-bottom: 8px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .header-stat .stat-label {
        font-size: 0.9rem;
        color: var(--text-medium);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* Collaboration Grid */
.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

/* Collaboration Card */
.collab-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

    .collab-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .collab-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .collab-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .collab-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .collab-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .collab-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: var(--border-medium);
    }

/* Card Visual Section */
.card-visual {
    position: relative;
    padding: 32px 32px 0;
    background: var(--bg-gradient-green);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-white);
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.collab-card[data-category="government"] .card-icon {
    background: var(--gradient-info);
}

.collab-card[data-category="ngo"] .card-icon {
    background: var(--gradient-danger);
}

.collab-card[data-category="nabard"] .card-icon {
    background: var(--gradient-warning);
}

.collab-card[data-category="farmer"] .card-icon {
    background: var(--gradient-success);
}

.collab-card[data-category="private"] .card-icon {
    background: linear-gradient(135deg, var(--private-color), #9c27b0);
}

.collab-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-badge {
    position: absolute;
    top: 32px;
    right: 32px;
    background: var(--gradient-primary);
    color: var(--background-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Card Content Section */
.card-content {
    padding: 32px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.card-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Card Features */
.card-features {
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

    .feature-item:last-child {
        border-bottom: none;
    }

    .feature-item:hover {
        transform: translateX(8px);
        background: var(--background-light);
        margin: 0 -12px;
        padding: 12px;
        border-radius: var(--radius-sm);
    }

    .feature-item i {
        color: var(--primary-main);
        margin-right: 12px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .feature-item span {
        color: var(--text-medium);
        font-size: 0.9rem;
        font-weight: 500;
    }

/* Card Stats */
.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-main);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Actions */
.card-actions {
    padding: 0 32px 32px;
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

    .action-btn.primary {
        background: var(--gradient-primary);
        color: var(--background-white);
    }

        .action-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
        }

    .action-btn.secondary {
        background: transparent;
        color: var(--text-medium);
        border: 2px solid var(--border-light);
        flex: 0 0 auto;
        width: 50px;
    }

        .action-btn.secondary:hover {
            background: var(--background-light);
            color: var(--text-dark);
            border-color: var(--border-medium);
        }

/* Section CTA */
.section-cta {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.8s ease-out;
}

.cta-content h3 {
    font-size: 2rem;
    color: var(--background-white);
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

    .cta-btn.primary {
        background: var(--background-white);
        color: var(--primary-dark);
    }

        .cta-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
        }

    .cta-btn.secondary {
        background: transparent;
        color: var(--background-white);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

        .cta-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--background-white);
        }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: var(--background-white);
    margin: 5% auto;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px 0;
    margin-bottom: 24px;
}

    .modal-header h3 {
        color: var(--text-dark);
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

    .modal-close:hover {
        background: var(--background-light);
        color: var(--text-dark);
    }

.modal-body {
    padding: 0 32px 32px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .collaboration-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 24px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .collaboration-showcase {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .header-stats {
        gap: 40px;
    }

    .header-stat .stat-number {
        font-size: 2.5rem;
    }

    .collaboration-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-visual,
    .card-content,
    .card-actions {
        padding: 24px;
    }

    .card-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px;
    }

    .section-cta {
        padding: 40px 24px;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .header-stats {
        gap: 30px;
    }

    .header-stat .stat-number {
        font-size: 2rem;
    }

    .card-visual,
    .card-content,
    .card-actions {
        padding: 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modal-container {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header,
    .modal-body {
        padding: 24px;
    }
}
