/* style.css */
:root {
    --bg-primary: #0f111a;
    --bg-secondary: #161924;
    --text-primary: #e0e0ff;
    --text-secondary: #b0b0d0;
    --accent: #7d5fff;
    --accent-hover: #6a4ce0;
    --border: #2a2d3d;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 6rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(125, 95, 255, 0.1), transparent);
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #7d5fff, #5a42e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(125, 95, 255, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(125, 95, 255, 0.2);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.tag {
    background: rgba(125, 95, 255, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(125, 95, 255, 0.3);
}

.description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.view-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.view-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.no-items {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 3rem;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    header p { font-size: 1.1rem; }
    main { padding: 1rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* Анимация загрузки */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.portfolio-item, .filter-btn {
    animation: fadeIn 0.6s ease-out forwards;
}




/* Скриншоты */
.screenshot-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.screenshot-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .screenshot-container img {
    transform: scale(1.03);
}

/* Адаптивность */
@media (max-width: 768px) {
    .screenshot-container {
        margin: 1rem 0;
    }
}



/* Стиль технологий */
.tags.technologies {
    margin: 0.8rem 0 1.2rem 0;
    border-top: 1px solid rgba(125, 95, 255, 0.2);
    padding-top: 0.8rem;
}

.tags.technologies .tag.tech {
    background: rgba(74, 144, 226, 0.15); /* Голубоватый фон */
    color: #4aa8ff;
    border: 1px solid rgba(74, 144, 226, 0.3);
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
}

/* Для лучшей визуальной разницы */
.tags.categories .tag {
    background: rgba(125, 95, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(125, 95, 255, 0.3);
}

.tags.technologies .tag.tech:hover {
    background: rgba(74, 144, 226, 0.3);
}