:root {
    --primary-color: #2bf27e;
    --secondary-color: #2ecc71;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.05);
    --card-border: rgba(255,255,255,0.8);
    --hover-shadow: rgba(0,0,0,0.1);
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.main-content {
    padding-bottom: 120px; /* Added padding to create space above mobile menu */
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

/* Previous project card styles remain unchanged */
.project-wrapper {
    width: 100%;
}

.project-card {
    margin: 0;
    height: 100%;
}

    .project-card .card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 20px;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border: 1px solid rgba(255,255,255,0.8);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        overflow: hidden;
        height: 100%;
        min-height: 220px; /* Reduced from 250px */
    }

        .project-card .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, #3498db, #2ecc71);
            opacity: 0.8;
        }

        .project-card .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            cursor: pointer;
        }

    .project-card .card-header {
        background: transparent;
        border-bottom: none;
        padding: 20px 20px 0; /* Reduced from 25px 25px 0 */
    }

        .project-card .card-header i {
            color: #3498db !important;
            font-size: 1.5rem;
            margin-right: 12px;
        }

        .project-card .card-header h3 {
            color: var(--text-primary);
            margin: 0;
            font-weight: 600;
            display: inline-block;
        }

    .project-card .card-body {
        padding: 15px 20px 20px; /* Reduced from 20px 25px 25px */
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

        .project-card .card-body p {
            color: var(--text-secondary);
            margin-bottom: 15px; /* Reduced from 20px */
            flex-grow: 1;
        }

.project-stats {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

    .project-stats span {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,0.8);
        padding: 6px 12px; /* Reduced from 8px 15px */
        border-radius: 12px;
        font-size: 0.9rem;
        color: var(--text-secondary);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: transform 0.2s ease;
    }

        .project-stats span:hover {
            transform: translateY(-2px);
        }

        .project-stats span i {
            color: #3498db;
        }

/* Statistics cards styles */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 80px; /* Increased from 50px */
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .stats-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, #3498db, #2ecc71);
        opacity: 0.8;
    }

    .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .stats-card h3 {
        color: #2c3e50;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
    }

        .stats-card h3 i {
            color: #3498db;
            font-size: 1.5rem;
        }

    .stats-card .number {
        font-size: 2.8rem;
        font-weight: 700;
        color: #3498db;
        margin: 20px 0;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        background: linear-gradient(45deg, #3498db, #2ecc71);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.stats-details {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    color: #666;
    flex-wrap: wrap;
    gap: 15px;
}

    .stats-details span {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,0.8);
        padding: 8px 15px;
        border-radius: 12px;
        font-size: 0.9rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        transition: transform 0.2s ease;
    }

        .stats-details span:hover {
            transform: translateY(-2px);
        }

        .stats-details span i {
            color: #3498db;
        }

.export-btn {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

    .export-btn button {
        background: linear-gradient(45deg, #3498db, #2ecc71);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 12px;
        cursor: pointer;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    }

        .export-btn button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
        }

        .export-btn button i {
            font-size: 1.1rem;
        }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .projects-container {
        gap: 15px;
        padding: 0 10px;
    }

    .project-card .card {
        min-height: auto;
    }

    .project-card .card-header {
        padding: 15px 15px 0;
    }

    .project-card .card-body {
        padding: 15px;
    }

    .project-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

        .project-stats span {
            flex: 1 1 auto;
            min-width: calc(50% - 8px);
            justify-content: flex-start;
            padding: 6px 10px;
            font-size: 0.8rem;
        }

    .stats-container {
        padding: 0 10px;
    }

    .stats-card {
        margin-bottom: 15px;
    }

        .stats-card .number {
            font-size: 2.4rem;
        }

    .stats-details {
        flex-direction: column;
    }

        .stats-details span {
            width: 100%;
            justify-content: center;
        }

    .export-btn button {
        width: 100%;
        justify-content: center;
    }
}
