/* ============================================================================
   Layout: Section Scaffolding & Shared Heading Styles
   ========================================================================= */

#app,
main {
    background-color: var(--color-bg-primary);
    min-height: 100vh;
}

section,
.section {
    position: relative;
    padding: 6rem 0;  /* Premium generous spacing */
    background-color: transparent;
}

.section-compact,
section.section-compact {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

section:first-of-type,
.section:first-of-type {
    padding-top: 7rem;
}

section:last-of-type,
.section:last-of-type {
    padding-bottom: 5rem;
}

.section + .section,
section + section {
    margin-top: 0;
}

.section-heading {
    text-align: center;
    font-family: var(--font-family-headings);
    font-size: clamp(1.9rem, 4.275vw, 2.85rem);  /* Reduced by 5% */
    font-weight: var(--font-weight-bold);  /* Less aggressive weight */
    letter-spacing: -0.02em;  /* Slightly less tight */
    line-height: 1.2;  /* Better readability */
    margin-bottom: 3rem;  /* More breathing room */
    text-transform: uppercase;  /* All section headings in uppercase */
}

.section-heading-gradient {
    color: #FF9800;  /* Sublime Text orange */
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-dark {
    background: var(--dark-gradient);
    color: var(--text-white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--text-white);
}

.section-light {
    background: var(--color-bg-secondary);
}

.section-title {
    font-family: var(--font-family-headings);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title-centered {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-light,
.category-title-light {
    color: var(--text-white) !important;
}

.category-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    font-size: 1.15em;
}
