/* ============================================================
   about.css — Стили секции "О команде"
   Команда InIProject | Code & Games
   ============================================================ */

/* ---------- СЕКЦИЯ ---------- */
.about {
    background: var(--bg-primary);
    position: relative;
}

/* Декоративная полоса на фоне */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--accent) 50%,
        transparent 100%
    );
    opacity: 0.3;
}

/* ---------- ИНТРО ТЕКСТ ---------- */
.about__intro {
    max-width: 700px;
    margin-bottom: 3rem;
}

.about__intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ---------- СЕТКА КАРТОЧЕК ---------- */
.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ---------- КАРТОЧКА УЧАСТНИКА ---------- */
.about__card {
    perspective: 1000px;
    cursor: default;
}

.about__card-inner {
    background: var(--bg-card);
    border: 1px solid rgba(230, 57, 70, 0.1);
    border-radius: var(--card-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Подсветка при наведении */
.about__card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(230, 57, 70, 0.03) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.about__card:hover .about__card-inner {
    border-color: var(--accent);
    box-shadow: 
        0 0 20px var(--accent-glow),
        inset 0 0 20px rgba(230, 57, 70, 0.05);
    transform: translateY(-5px);
}

.about__card:hover .about__card-inner::before {
    left: 100%;
}

/* ---------- АВАТАР ---------- */
.about__card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--accent);
    padding: 3px;
    position: relative;
    overflow: hidden;
}

.about__card-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    animation: rotate-slow 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.about__card:hover .about__card-avatar::after {
    opacity: 1;
}

.about__card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* ---------- ИМЯ И РОЛЬ ---------- */
.about__card-name {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.about__card-role {
    font-size: 0.9rem;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

/* ---------- СТЕК (ТЕГИ) ---------- */
.about__card-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.about__card-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(230, 57, 70, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    transition: all var(--transition-fast);
}

.about__card:hover .about__card-tag {
    color: var(--text-primary);
    border-color: rgba(230, 57, 70, 0.5);
}

/* ---------- ПОЛОСКА СКИЛЛА (RPG-стиль) ---------- */
.about__card-skill {
    width: 100%;
    height: 4px;
    background: rgba(230, 57, 70, 0.15);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.about__card-skill-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    position: relative;
    transition: width 1s ease;
}

.about__card-skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--accent-hover);
    box-shadow: 0 0 8px var(--accent-glow-strong);
    border-radius: 2px;
}

/* ---------- ССЫЛКА НА GITHUB ---------- */
.about__card-github {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    transition: all var(--transition-fast);
    letter-spacing: 0.05em;
}

.about__card-github:hover {
    color: var(--accent-hover);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ---------- ОБЩИЙ СТЕК КОМАНДЫ ---------- */
.about__tech-stack {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about__tech-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about__tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.about__tech-item {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid rgba(230, 57, 70, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.about__tech-item:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-2px);
}

.about__tech-close {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.2rem;
}

/* ---------- TILT-ПОДДЕРЖКА ---------- */
/* vanilla-tilt.js добавляет transform, 
   здесь задаём плавность перехода */
.about__card[data-tilt] {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .about__card-inner {
        padding: 2rem 1.5rem;
    }

    .about__card-avatar {
        width: 80px;
        height: 80px;
    }

    .about__intro-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about__grid {
        grid-template-columns: 1fr;
    }
}