/*
============================================================
SKILLS PAGE STYLES
============================================================

File:
    skills.css

Purpose:
    Contains styles used specifically by the Skills page.

Shared colors, containers, header, navigation, footer, and
accessibility rules remain inside global.css.
*/


/*
============================================================
SKILLS SECTION
============================================================

Controls the overall spacing around the Skills page content.
*/

.skills-section {
    padding: 2rem 0 4rem;
}


/*
============================================================
PAGE HEADING
============================================================

Contains the page title and introductory description.
*/

.skills-heading {
    max-width: 760px;

    margin-bottom: 2.5rem;
}


.skills-heading h2 {
    margin-bottom: 1rem;

    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.08;
    letter-spacing: -0.04em;

    color: var(--text-primary);
}


.skills-introduction {
    max-width: 700px;

    color: var(--text-secondary);

    font-size: 1.05rem;
    line-height: 1.75;
}


/*
============================================================
SKILL CATEGORY
============================================================

Separates skills into logical groups such as programming,
digital design, verification, embedded systems, and tools.
*/

.skill-category {
    margin-bottom: 2.75rem;
}


.skill-category:last-child {
    margin-bottom: 0;
}


.skill-category-title {
    margin-bottom: 1rem;

    font-size: 1.15rem;
    font-weight: 700;

    color: var(--text-primary);
}


/*
============================================================
SKILLS GRID
============================================================

Creates a responsive three-column layout on larger screens.
*/

.skills-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1rem;
}


/*
============================================================
SKILL CARD
============================================================

Each skill is a button because selecting it changes the
content on the current page rather than navigating away.
*/

.skill-card {
    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: 1.4rem;

    font: inherit;
    text-align: left;

    background-color: var(--surface-color);
    color: var(--text-primary);

    border: 1px solid var(--border-color);

    /*
    Uses the Skills accent color already defined in global.css.
    */
    border-top: 5px solid var(--skills-color);

    border-radius: var(--border-radius);

    box-shadow:
        0 4px 15px rgba(23, 32, 51, 0.05);

    cursor: pointer;

    transition:
        transform var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}


/*
Provides visual feedback when a visitor points at a skill.
*/

.skill-card:hover {
    transform: translateY(-4px);

    border-color: var(--skills-color);

    box-shadow:
        0 12px 25px rgba(23, 32, 51, 0.10);
}


/*
============================================================
SKILL NAME
============================================================
*/

.skill-name {
    font-size: 1.1rem;
    font-weight: 700;

    line-height: 1.3;
}


/*
============================================================
SKILL CARD ARROW
============================================================
*/

.skill-card-arrow {
    flex-shrink: 0;

    color: var(--skills-color);

    font-size: 1.4rem;
    font-weight: 700;

    transition:
        transform var(--transition-speed) ease;
}


/*
Moves the arrow slightly when the card is hovered.
*/

.skill-card:hover .skill-card-arrow {
    transform: translateX(5px);
}


/*
============================================================
SKILL DETAIL VIEW
============================================================

Displayed after a visitor selects a skill.
*/

.skill-detail {
    max-width: 850px;
}


/*
============================================================
BACK TO SKILLS BUTTON
============================================================
*/

.back-to-skills {
    margin-bottom: 1.5rem;

    padding: 0;

    font: inherit;
    font-weight: 700;

    color: var(--skills-color);

    background: none;

    border: none;

    cursor: pointer;
}


.back-to-skills:hover {
    text-decoration: underline;
}


/*
============================================================
SKILL DETAIL HEADER
============================================================

Contains the selected skill name and summary.
*/

.skill-detail-header {
    margin-bottom: 2rem;

    padding-bottom: 1.5rem;

    border-bottom: 2px solid var(--border-color);
}


.skill-detail-header h3 {
    margin-bottom: 0.75rem;

    font-size: clamp(2rem, 5vw, 3rem);

    line-height: 1.1;
    letter-spacing: -0.04em;

    color: var(--skills-color);
}


.skill-detail-summary {
    max-width: 750px;

    color: var(--text-secondary);

    font-size: 1.05rem;
    line-height: 1.7;
}


/*
============================================================
EXPERIENCE LIST
============================================================

Contains all examples showing where the selected skill
was applied.
*/

.skill-experience-list {
    display: grid;

    gap: 1rem;
}


/*
============================================================
EXPERIENCE CARD
============================================================

Each card provides concrete evidence supporting the selected
skill.
*/

.skill-experience {
    padding: 1.4rem;

    background-color: var(--surface-color);

    border: 1px solid var(--border-color);
    border-left: 5px solid var(--skills-color);

    border-radius: var(--border-radius);

    box-shadow:
        0 3px 12px rgba(23, 32, 51, 0.04);
}


.skill-experience h4 {
    margin-bottom: 0.4rem;

    font-size: 1.05rem;

    color: var(--text-primary);
}


.skill-experience p {
    color: var(--text-secondary);

    line-height: 1.65;
}


/*
============================================================
TABLET RESPONSIVE DESIGN
============================================================

Changes the Skills grid from three columns to two columns.
*/

@media (max-width: 900px) {

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/*
============================================================
MOBILE RESPONSIVE DESIGN
============================================================

Changes the Skills grid to one column and reduces spacing.
*/

@media (max-width: 700px) {

    .skills-section {
        padding: 1.5rem 0 3rem;
    }


    .skills-heading {
        margin-bottom: 2rem;
    }


    .skills-introduction {
        font-size: 1rem;
    }


    .skill-category {
        margin-bottom: 2.25rem;
    }


    .skills-grid {
        grid-template-columns: 1fr;
    }


    .skill-card {
        min-height: 90px;

        padding: 1.2rem;
    }


    .skill-detail-summary {
        font-size: 1rem;
    }

}


/*
============================================================
REDUCED MOTION ACCESSIBILITY
============================================================

Disables card movement for visitors who have requested
reduced motion through their operating system.
*/

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

    .skill-card,
    .skill-card-arrow {
        transition: none;
    }


    .skill-card:hover {
        transform: none;
    }


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

}