/* Основные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Шапка профиля */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-position {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.profile-description {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 20px;
    max-width: 600px;
}

.profile-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Сетка контента */
.content-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
}

/* Боковая панель */
.sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-right: 1px solid #e9ecef;
}

/* Основной контент */
.main-content {
    padding: 30px;
}

/* Карточки */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar .card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3748;
}

/* Основная информация */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
}

.info-value {
    font-size: 15px;
    color: #2d3748;
}

/* Паспорт навыков */
.skills-chart {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 300px;
    margin: 0 auto;
}

.skill-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-segment:hover .skill-label {
    font-weight: 700;
    font-size: 11px;
}

.skill-label {
    position: absolute;
    font-size: 10px;
    color: #4a5568;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Образование */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.education-item p {
    font-size: 14px;
    color: #718096;
}

/* Достижения */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.achievements-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

.achievements-container {
    position: relative;
    overflow: hidden;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    transition: transform 0.3s ease;
}

.achievement-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-item:hover::before {
    opacity: 1;
}

.achievement-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    z-index: 1;
}

.achievement-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    max-width: 250px;
    white-space: normal;
    text-align: center;
}

.achievement-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.achievement-item:hover .achievement-tooltip {
    opacity: 1;
}

/* Навигация достижений */
.achievements-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 5;
}

.achievements-nav:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.achievements-nav-prev {
    left: -20px;
}

.achievements-nav-next {
    right: -20px;
}

/* Точки индикации */
.achievements-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    width: 24px;
    border-radius: 4px;
}

/* Проекты */
.project {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.project:last-child {
    margin-bottom: 0;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.project-description {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-goals {
    margin-bottom: 15px;
}

.project-goals strong {
    display: block;
    margin-bottom: 10px;
    color: #2d3748;
}

.project-goals ol {
    padding-left: 20px;
}

.project-goals li {
    margin-bottom: 8px;
    color: #4a5568;
}

.project-tech {
    margin-bottom: 15px;
}

.project-tech strong {
    display: block;
    margin-bottom: 10px;
    color: #2d3748;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    border: 2px solid #667eea;
}

.project-achievements {
    list-style: none;
    padding-left: 0;
}

.project-achievements li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: #4a5568;
}

.project-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.review-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    border-left: 4px solid #667eea;
}

/* Футер */
.footer {
    background: #2d3748;
    color: white;
    padding: 40px;
    text-align: center;
}

.footer h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 16px;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 300px 1fr;
    }
    
    .profile-header {
        padding: 30px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 30px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 0;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .profile-description {
        margin: 0 auto 20px;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .achievements-nav-prev {
        left: -10px;
    }
    
    .achievements-nav-next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 24px;
    }
    
    .profile-position {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .project {
        padding: 20px;
    }
}
