body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    padding: 40px 20px;
}

.header {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #8b949e;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.2);
    transform: translateY(-1px);
}

.back-link {
    position: absolute;
    top: 40px;
    left: 40px;
    color: #00ff88;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #00ffcc;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 40px;
}

.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #2a2a2a;
    color: #ccc;
    border: 1px solid #404040;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #00aa44;
    color: white;
    border-color: #00aa44;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
}

.project-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #404040;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: project-fade-in 0.8s ease-in-out forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes project-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 5px;
}

.project-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-completed {
    background-color: #00aa44;
    color: white;
}

.status-ongoing {
    background-color: #ff9500;
    color: white;
}

.status-planned {
    background-color: #666;
    color: white;
}

.project-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: #404040;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-description {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 10px 18px;
    background-color: #00aa44;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-small:hover {
    background-color: #00cc55;
}

.btn-secondary {
    background-color: #404040;
}

.btn-secondary:hover {
    background-color: #555;
}

.no-projects {
    text-align: center;
    color: #888;
    font-style: italic;
    margin: 60px 0;
}

.error-message {
    color: #ff6b6b;
    font-style: italic;
    margin: 20px 0;
    text-align: center;
}

.loading {
    text-align: center;
    color: #888;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .back-link {
        position: static;
        display: block;
        text-align: center;
        margin-bottom: 30px;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .nav-item {
        justify-content: center;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .project-actions {
        flex-direction: column;
    }
}