/* ============================================================================
   ABOUT SECTION CSS for dubrovin.kz (#about)
   Секция "О себе" с информацией и навыками
   ============================================================================ */

.about {
    background-color: var(--bg-secondary);
    position: relative;
}

.about h2 {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    color: var(--text-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    position: relative;
}

/* Декоративная линия под заголовком */
.about h2::after {
    content: '';
    position: absolute;
    bottom: -var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.about__content {
    max-width: 800px;
    margin: 0 auto;
}

.about__text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
}

.about__text p:first-child {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* Список навыков */
.about__text ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xl) 0;
}

.about__text li {
    position: relative;
    padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-2xl);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    border-left: 3px solid var(--bg-accent);
    background-color: var(--bg-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: all var(--transition);
}

.about__text li::before {
    content: '✓';
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.about__text li:hover {
    border-left-color: var(--primary);
    transform: translateX(var(--spacing-sm));
    box-shadow: var(--shadow);
}

.about__text li:hover::before {
    background-color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

/* Анимация */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about__text.animate {
    animation: fadeInScale 0.8s ease-out;
}

.about__text li.animate {
    animation: slideInLeft 0.6s ease-out;
}

.about__text li:nth-child(1).animate { animation-delay: 0.1s; }
.about__text li:nth-child(2).animate { animation-delay: 0.2s; }
.about__text li:nth-child(3).animate { animation-delay: 0.3s; }
.about__text li:nth-child(4).animate { animation-delay: 0.4s; }

/* Адаптивность */
@media (min-width: 768px) {
    .about__content {
        padding: 0 var(--spacing-xl);
    }
    
    .about__text li {
        padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) var(--spacing-3xl);
    }
    
    .about__text li::before {
        left: var(--spacing-lg);
        width: 28px;
        height: 28px;
        font-size: var(--font-size-base);
    }
}

@media (min-width: 1024px) {
    .about h2 {
        font-size: var(--font-size-4xl);
    }
    
    .about__text {
        font-size: var(--font-size-xl);
    }
    
    .about__text p:first-child {
        font-size: var(--font-size-2xl);
    }
}

/* Темная тема */
[data-theme="dark"] .about {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .about__text li {
    background-color: var(--bg-primary);
    border-left-color: var(--bg-accent);
}

[data-theme="dark"] .about__text li:hover {
    border-left-color: var(--primary-light);
}

/* Отключение анимации */
@media (prefers-reduced-motion: reduce) {
    .about__text.animate,
    .about__text li.animate {
        animation: none;
    }
    
    .about__text li:hover {
        transform: translateX(0);
    }
}
