/* ===================================
   CSS Variables & Reset
   =================================== */

:root {
    /* Colors - Refined Charcoal Palette */
    --color-background: #FFFFFF;
    --color-text-primary: #2d3748;
    --color-text-secondary: #718096;
    --color-accent: #4a5568;
    --color-accent-hover: #2d3748;
    --color-border: #e2e8f0;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: Georgia, "Times New Roman", serif;

    /* Layout */
    --max-width: 900px;
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.01em;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

h1 {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

strong {
    font-weight: 500;
    color: var(--color-text-primary);
}

/* ===================================
   Layout Containers
   =================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

section {
    padding: var(--spacing-3xl) 0;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background-color: var(--color-background);
    text-align: center;
    padding: var(--spacing-3xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-lg);
    border: 4px solid var(--color-border);
}

.hero h1 {
    margin-bottom: var(--spacing-xs);
}

.tagline {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.02em;
}

.value-proposition {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-primary);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.availability {
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    color: var(--color-text-secondary);
    font-weight: 300;
    font-style: italic;
}

.contact-hero {
    font-size: 1.0625rem;
    margin-top: var(--spacing-md);
    color: var(--color-text-primary);
}

.contact-hero a {
    font-weight: 500;
    white-space: nowrap;
}

/* ===================================
   About Section
   =================================== */

.about {
    background-color: #fafafa;
}

.bio {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--spacing-xl);
}

.education {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: white;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
}

.education h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.education ul {
    list-style: none;
}

.education li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.education li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.contact-info {
    padding: var(--spacing-lg);
    background-color: white;
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    font-size: 1.0625rem;
    margin-bottom: 0;
}

.contact-info a {
    font-weight: 500;
}

/* ===================================
   Case Studies Section
   =================================== */

.case-studies {
    background-color: white;
}

.case-study {
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
    border-bottom: 1px solid var(--color-border);
}

.case-study:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.case-study h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.org-context {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.case-study-content {
    margin-top: var(--spacing-lg);
}

.challenge, .approach, .impact {
    margin-bottom: var(--spacing-xl);
}

.challenge h4 {
    color: var(--color-accent);
}

.approach h4 {
    color: var(--color-accent);
}

.impact h4 {
    color: var(--color-accent);
}

.impact ul {
    list-style: none;
    padding-left: 0;
}

.impact li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
    position: relative;
}

.impact li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.125rem;
}

.section-contact {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 1.0625rem;
}

.section-contact p {
    margin-bottom: 0;
}

.section-contact a {
    font-weight: 500;
    white-space: nowrap;
}

/* ===================================
   Core Competencies Section
   =================================== */

.competencies {
    background-color: #fafafa;
}

.competency-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.competency {
    padding: var(--spacing-lg);
    background-color: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
}

.competency h3 {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.competency p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* ===================================
   Footer
   =================================== */

footer {
    background-color: white;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--color-text-secondary);
}

footer p {
    margin-bottom: var(--spacing-sm);
}

footer p:last-child {
    margin-bottom: 0;
}

.back-to-top {
    font-size: 0.9375rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .value-proposition {
        font-size: 1.125rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .cta-button {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .value-proposition {
        font-size: 1.0625rem;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        page-break-after: avoid;
    }

    .case-study {
        page-break-inside: avoid;
    }

    .cta-button,
    .back-to-top {
        display: none;
    }

    a {
        color: var(--color-text-primary);
        text-decoration: underline;
    }
}
