* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #121212;
    color: #f5f5f5;
    overflow-x: hidden;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 100;
}

.projects-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(30, 30, 30, 0.85);
    padding: 25px 20px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.projects-header p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.4;
}

/* Фильтры */
.filters-section {
    background: rgba(30, 30, 30, 0.85);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    margin-bottom: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    text-align: center;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-tag {
    background: rgba(50, 50, 50, 0.6);
    border: 1px solid rgba(100, 100, 100, 0.4);
    color: #e0e0e0;
    padding: 8px 14px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.filter-tag:hover {
    background: rgba(70, 70, 70, 0.8);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: #121212;
    border-color: transparent;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: rgba(30, 30, 30, 0.85);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 150px;
    background: rgba(50, 50, 50, 0.6);
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #666;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.3;
}

.project-description {
    color: #cccccc;
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tag {
    background: rgba(70, 70, 70, 0.6);
    color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.project-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-frozen {
    background: rgba(80, 243, 248, 0.2);
    color: #50f3f8;
}

.status-planned {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-date {
    color: #888;
    font-size: 0.8rem;
}

.project-link {
    color: #4dabf7;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: #74c0fc;
}

/* Навигация */
.projects-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.projects-nav-2 {
    display: flex;
}

.nav-btn {
    background: rgba(30, 30, 30, 0.85);
    color: #e0e0e0;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    margin: 12px;
}

.nav-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Планшеты */
@media (min-width: 768px) {
    .projects-container {
        padding: 20px;
    }
    
    .projects-header {
        padding: 30px;
    }
    
    .projects-header h1 {
        font-size: 2.5rem;
    }
    
    .projects-header p {
        font-size: 1.1rem;
    }
    
    .filter-group h3 {
        text-align: left;
        font-size: 1.1rem;
    }
    
    .filter-tags {
        justify-content: flex-start;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .projects-nav {
        flex-direction: row;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 12px 25px;
    }
}

/* Десктоп */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-card {
        padding: 25px;
    }
    
    .project-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
}