/* Hero секция */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(0,150,255,0.1) 0%, rgba(0,255,150,0.1) 100%);
    border-radius: 12px;
    border: 1px solid var(--pico-muted-border-color);
}

.hero-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--pico-primary) 0%, var(--pico-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--pico-muted-color);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--pico-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--pico-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,150,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--pico-primary);
    border: 2px solid var(--pico-primary);
}

.btn-secondary:hover {
    background: var(--pico-primary);
    color: white;
    transform: translateY(-2px);
}

/* Секция навыков */
.skills-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--pico-card-background-color);
    border-radius: 12px;
    border: 1px solid var(--pico-muted-border-color);
}

.skills-section h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--pico-primary);
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.8rem;
    background: var(--pico-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.skill-tag:hover {
    background: var(--pico-primary);
    color: white;
    border-color: var(--pico-primary);
    transform: translateY(-2px);
}

/* Фильтры */
.filters-section {
    margin-bottom: 2rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-summary {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--pico-muted-color);
}

.filters-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--pico-muted-border-color);
    background: var(--pico-background-color);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--pico-primary);
    box-shadow: 0 0 0 3px rgba(0,150,255,0.1);
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--pico-muted-border-color);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--pico-primary);
    color: var(--pico-primary);
}

.filter-btn.active {
    background: var(--pico-primary);
    color: white;
    border-color: var(--pico-primary);
}

.sort-select select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--pico-muted-border-color);
    background: var(--pico-background-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-select select:focus {
    border-color: var(--pico-primary);
    outline: none;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Карточки проектов */
.repo-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--pico-card-background-color);
    border-radius: 12px;
    border: 1px solid var(--pico-muted-border-color);
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-color: var(--pico-primary);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.repo-title {
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.repo-title a {
    color: var(--pico-primary);
    text-decoration: none;
    word-break: break-word;
}

.repo-title a:hover {
    text-decoration: underline;
}

.repo-language-badge {
    padding: 0.3rem 0.7rem;
    background: rgba(0,150,255,0.1);
    border: 1px solid var(--pico-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.repo-description {
    flex-grow: 1;
    color: var(--pico-muted-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.repo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topic-tag {
    padding: 0.3rem 0.7rem;
    background: var(--pico-background-color);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--pico-primary);
    border: 1px solid var(--pico-muted-border-color);
}

.repo-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--pico-muted-border-color);
    margin-top: auto;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--pico-muted-color);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.icon {
    width: 16px;
    height: 16px;
}

.repo-links {
    display: flex;
    gap: 0.75rem;
}

.btn-link {
    color: var(--pico-primary);
    transition: all 0.2s;
}

.btn-link:hover {
    color: var(--pico-primary-hover);
    transform: scale(1.1);
}

.btn-link svg {
    width: 20px;
    height: 20px;
}

/* Футер */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--pico-muted-border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--pico-muted-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--pico-primary);
    transform: translateX(5px);
}

.icon-small {
    width: 16px;
    height: 16px;
}

footer p {
    color: var(--pico-muted-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .filters-controls {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-summary {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

.error-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 700;
    color: var(--pico-primary);
    margin: 0;
    line-height: 1;
}

.error-page h2 {
    font-size: 2rem;
    margin: 1rem 0;
}

.error-page p {
    color: var(--pico-muted-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.breadcrumbs {
    display: flex !important;
    align-items: center;
    margin-bottom: 2rem !important;
    padding: 0 !important;
    font-size: 0.9rem;
    color: var(--pico-muted-color);
}

.breadcrumbs a {
    color: var(--pico-primary) !important;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--pico-muted-border-color);
}

.breadcrumbs .current {
    color: var(--pico-muted-color);
}