
/* ========================================
   GENERAL SECTIONS
======================================== */

section {
    position: relative;
    padding: var(--section-space) var(--gutter);
    color: var(--text-strong);
    scroll-margin-top: var(--nav-height);
}

/* Shared content width: aligned with navbar and hero */
.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}


/* ========================================
   SHARED SECTION HEADER
   Used by Skillset, Experience, Portfolio and Contact
======================================== */

.section-header {
    display: grid;
    grid-template-columns: 1fr minmax(0, clamp(380px, 30vw, 480px));
    align-items: end;
    gap: 2rem 3rem;
    margin-bottom: 2.5rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--secondary);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.eyebrow-line {
    flex-shrink: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--text-strong);
    overflow-wrap: anywhere;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    justify-self: end;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-bottom: 0.5rem;
}


/* ========================================
   SECTION DIVIDERS
======================================== */

hr,
.section-divider {
    width: 100%;
    height: 2px;
    margin: 0 0 3rem;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--primary-rgb), 0.75) 30%,
        rgba(var(--primary-rgb), 0.55) 70%,
        rgba(var(--secondary-rgb), 0.55) 88%,
        transparent
    );
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .section-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    .section-description {
        justify-self: start;
        max-width: 600px;
        padding-bottom: 0;
    }

    .section-divider {
        margin-bottom: 2rem;
    }
}

@media (max-width: 400px) {
    .section-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 0.14em;
    }
}
