/*
============================================================
ABOUT.CSS
============================================================
*/

.about-section {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Image */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: inline-block;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.about-image-wrapper:hover::before { opacity: 1; }

.about-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover img { transform: scale(1.02); }

/* Text */
.about-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
}

.about-text p:last-of-type { margin-bottom: 0; }

.about-text b {
    color: var(--text-primary);
    font-weight: 600;
}

/* Info pills */
.about-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.info-pill i {
    font-size: 0.75rem;
    color: var(--primary);
}

/* Skill tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.skill-tags span {
    padding: 0.3rem 0.75rem;
    background: rgba(74, 222, 128, 0.07);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.2px;
}

.skill-tag--knowledge {
    background: transparent !important;
    border-style: dashed !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    color: rgba(74, 222, 128, 0.6) !important;
}

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .about-content {
        gap: 3.5rem;
    }

    .about-image img { max-width: 260px; }
}

/* ── Small tablet / large mobile (≤ 768px) ── */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image img { max-width: 200px; }

    .about-info-pills,
    .skill-tags {
        justify-content: center;
    }

    .about-text p {
        text-align: left;
        font-size: 0.9875rem;
    }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .about-image img { max-width: 170px; }

    .about-text p { font-size: 0.9375rem; line-height: 1.75; }

    .info-pill { font-size: 0.75rem; padding: 0.3rem 0.7rem; }

    .skill-tags span { font-size: 0.75rem; }
}
