/* ==========================================================================
   1. Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(to right, 
        var(--page-header-bg) 0%, 
        /* var(--page-header-bg-5) 25%,  */
        /* var(--page-header-bg-4) 50%,  */
        var(--page-header-bg-3) 75%, 
        var(--page-header-bg-2) 100%
    ), var(--body-bg);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ==========================================================================
   2. Root Variables
   ========================================================================== */
:root {
    --primary-color: #3150ac;
    --secondary-color: #4b2f72;
    --text-color: #424242;
    --background-color: #F8F8F7;
    --body-bg: #E8E9EB;
    --light-grey-border: #DCDCDC;
    --text-color-secondary: #5a5a5a;
    --text-color-tertiary: #64748b;
    --text-color-light: white;
    --background-color-light: #fff;
    --background-color-alternate: #FDFDFC;
    --page-header-bg: #ffffff;
    --page-header-bg-2: rgba(199, 61, 150, 0.15);
    --page-header-bg-3: rgba(50, 136, 199, 0.12);
    --page-header-bg-4: rgba(26, 103, 91, 0.12);
    --page-header-bg-5: rgba(147, 213, 90, 0.15);

    --max-width-img: 350px;
    --max-width-content: 1100px;

    --font-size-xxs: 0.8rem;
    --font-size-xs: 0.9rem;
    --font-size-sm: 0.95rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.2rem;
    --font-size-2xl: 1.25rem;
    --font-size-2-5xl: 1.5rem;
    --font-size-3xl: 1.75rem;
    --font-size-4xl: 2.2rem;
    --font-size-5xl: 2.5rem;
    --font-size-6xl: 3.25rem;
    --font-size-7xl: 3.5rem;

    --border-radius: 16px;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-baseline { align-items: baseline; }
.d-grid { display: grid; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. Typography Utilities
   ========================================================================== */
.title, .logo {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
    color: var(--primary-color);
}

.logo {
    font-size: var(--font-size-3xl);
}

.title:hover {
    opacity: 0.8;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.list-style-none { list-style: none; }
.no-text-decoration { text-decoration: none; }

/* ==========================================================================
   5. Component Classes
   ========================================================================== */
.card {
    background: var(--background-color);
    border: 1px solid var(--light-grey-border);
    border-radius: var(--border-radius);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    transform: translateY(-1px);
}

.button {
    display: inline-block;
    color: var(--text-color-light);
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

/* ==========================================================================
   6. Page Section Styles
   ========================================================================== */
.content-section {
    padding: 6rem 2rem;
    max-width: var(--max-width-content);
}

.content-section.alternate-bg {
    background-color: var(--background-color-alternate);
    border-top: 1px solid var(--light-grey-border);
    border-bottom: 1px solid var(--light-grey-border);
    border-radius: var(--border-radius);
}

.section-header {
    font-size: var(--font-size-7xl);
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.section-subheader {
    font-size: var(--font-size-2xl);
    color: var(--text-color-secondary);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

.not-found-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}