﻿.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-header {
    margin-bottom: 3rem;
}

.project-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-intro {
    text-align: center;
}

.project-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-content {
    display: grid;
    grid-gap: 3rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-description h2 {
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.api-stats {
    margin-top: 3rem;
}

.api-stats h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: rgba(42, 82, 152, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.stat-box[data-source="api"]::before {
    background: linear-gradient(to right, #4CAF50, #45a049);
}

.stat-box[data-source="cache"]::before {
    background: linear-gradient(to right, #FFC107, #FFB300);
}

.stat-box[data-source="fallback"]::before {
    background: linear-gradient(to right, #f44336, #e53935);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.data-source {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project-hero {
        height: 300px;
    }
}