/**
 * Стили для страницы "О нас"
 */

/* ===== Обо мне ===== */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.about-hero-avatar {
    margin-bottom: 2rem;
}

.avatar-circle {
    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;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.avatar-circle svg {
    width: 60px;
    height: 60px;
    fill: white;
    stroke: white;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-card-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    stroke: white;
}

.about-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.about-card a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.about-card-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
    border: 2px solid var(--primary-color);
}

.about-card-cta h2 {
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.skill-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
    stroke: white;
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    text-align: center;
}

.experience-list {
    margin-top: 1.5rem;
}

.experience-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.experience-year {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    min-width: 180px;
    flex-shrink: 0;
}

.experience-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.experience-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 3rem;
    font-weight: 400;
    text-align: left;
}

/* Улучшенные стили для секции "О проекте" на главной странице */
.section-about {
    position: relative;
    overflow: hidden;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    pointer-events: none;
}

.section-about .about-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.section-about .about-text {
    text-align: left;
}

.about-features {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.about-feature {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    flex: 1;
    min-width: 0;
}

.about-feature::before {
    display: none;
}

.about-feature:hover {
    transform: translateY(-2px);
}

.about-feature:hover::before {
    opacity: 1;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-feature:hover .about-feature-icon {
    transform: scale(1.05);
}

.about-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

.about-feature-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.about-feature-text h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1C1D1F;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.about-feature:hover .about-feature-text h3 {
    color: var(--primary-color);
}

.about-feature-text p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .experience-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .experience-year {
        min-width: auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-feature {
        padding: 1.5rem;
    }
    
    .about-feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .about-feature-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .about-feature-text h3 {
        font-size: 1.125rem;
    }
    
    .about-feature-text p {
        font-size: 0.9375rem;
    }
    
    .about-description {
        font-size: 1.125rem;
        text-align: left;
    }
    
    .about-actions {
        flex-direction: column;
    }
    
    .about-actions .btn {
        width: 100%;
    }
}

