html {
    font-size: 100%; /* Restoring base size for better readability */
}

:root {
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25; /* Tighter leading */
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem; /* Increased for better readability */
    line-height: 1.7;
}

/* Container Styles */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 8rem; /* Dramatically increased side padding to "zoom out" central content */
}

@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }
}

/* Enhanced Main Content Styles */
.section {
    padding: 5rem 0;
    /* Reduced from 5rem for tighter vertical rhythm */
    position: relative;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
    font-size: 3rem; /* Restored and slightly increased */
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: inherit;
    /* Allow parent to decide alignment */
}

.section-title::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 2px;
}

/* Center decoration when text is centered */
.text-center .section-title::before {
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    display: none;
    /* Removing redundant bottom line for a cleaner look */
}

.section-subtitle {
    margin-bottom: 2.5rem;
    max-width: 900px;
    color: var(--text-light);
    font-size: 1.4rem; /* Increased for better hierarchy */
    line-height: 1.6;
    font-weight: 400;
}

/* Tight variation for nested headings */
.section-title+.section-subtitle {
    margin-top: -1rem;
    /* Pull subtitle closer to title */
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Consolidated Media Queries at bottom */
@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-subtitle {
        font-size: 1.2rem;
    }
}