
/* ---------- About Page ---------- */

.about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 48px 80px;
    box-sizing: border-box;
}


/* ---------- About Heading ---------- */

.about-heading {
    margin-bottom: 28px;
}

    .about-heading h1 {
        margin: 0;
        color: var(--accent);
        font-size: 36px;
        font-weight: 800;
        letter-spacing: 2px;
    }

.about-tagline {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}


/* ---------- Biography Layout ---------- */

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.about-bio {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ---------- Biography Sections ---------- */

.bio-section {
    padding-left: 16px;
    border-left: 2px solid var(--border);
    transition: border-color 0.2s ease;
}

    .bio-section:hover {
        border-left-color: var(--accent);
    }

    .bio-section h2 {
        margin: 0 0 12px;
        color: var(--accent);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1.5px;
    }

    .bio-section p {
        margin: 0;
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.65;
    }

        .bio-section p + p {
            margin-top: 12px;
        }


/* ---------- Profile Image ---------- */

.about-profile {
    min-width: 0;
}

    .about-profile img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        border: 2px solid var(--accent);
        box-sizing: border-box;
    }


/* ---------- Shared Section Styling ---------- */

.about-interests,
.about-skills {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

    .about-interests > h2,
    .about-skills > h2 {
        margin: 0 0 24px;
        color: var(--accent);
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 1.5px;
    }


/* ---------- Areas of Interest ---------- */

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}


/* ---------- Interest Cards ---------- */

.interest-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 4px;
    background-color: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

    .interest-card:hover {
        border-color: var(--accent);
        background-color: rgba(155, 92, 255, 0.08);
    }

    .interest-card:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }

.interest-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--accent);
}

.interest-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.interest-project {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.interest-arrow {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 20px;
    transition: transform 0.2s ease;
}

.interest-card:hover .interest-arrow {
    transform: translateX(4px);
}


/* ---------- Skills Grid ---------- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}


/* ---------- Skill Cards ---------- */

.skill-group {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--surface);
    transition: border-color 0.2s ease;
}

    .skill-group:hover {
        border-color: var(--accent);
    }


/* ---------- Skill Headings ---------- */

.skill-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.skill-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

.skill-heading h3 {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
}


/* ---------- Skill Lists ---------- */

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .skill-list li {
        color: var(--text);
        font-size: 14px;
        line-height: 1.5;
    }


/* ---------- Background Grid ---------- */

body {
    position: relative;
    isolation: isolate;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image: linear-gradient( rgba(180, 108, 255, 0.12) 1px, transparent 1px ), linear-gradient( 90deg, rgba(180, 108, 255, 0.12) 1px, transparent 1px );
        background-size: 42px 42px;
        mask-image: linear-gradient( to right, black 0%, transparent 20%, transparent 80%, black 100% );
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -2;
        pointer-events: none;
        background: linear-gradient( to right, rgba(155, 92, 255, 0.10) 0%, transparent 20%, transparent 80%, rgba(155, 92, 255, 0.10) 100% );
    }


/* ---------- Tablet Layout ---------- */

@media (max-width: 900px) {

    .about {
        padding: 32px 32px 60px;
    }

    .about-content {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 24px;
    }

    .interests-grid {
        gap: 12px;
    }

    .interest-card {
        padding: 16px;
    }

        .interest-card h3 {
            font-size: 15px;
        }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .skill-group {
        padding: 18px;
    }
}


/* ---------- Mobile Layout ---------- */

@media (max-width: 650px) {

    .about {
        padding: 24px 20px 48px;
    }

    .about-heading h1 {
        font-size: 28px;
    }

    .about-tagline {
        font-size: 13px;
        line-height: 1.6;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-profile {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .bio-section p {
        font-size: 14px;
    }

    .about-interests,
    .about-skills {
        margin-top: 28px;
        padding-top: 20px;
    }

        .about-interests > h2,
        .about-skills > h2 {
            font-size: 18px;
            margin-bottom: 18px;
        }

    .interests-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .interest-card {
        padding: 18px;
        gap: 12px;
    }

    .skill-group {
        padding: 18px;
    }
}


/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {

    .bio-section,
    .interest-card,
    .interest-arrow,
    .skill-group {
        transition: none;
    }

        .interest-card:hover .interest-arrow {
            transform: none;
        }
}
