/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --carolina-blue: #81adc8;
    --rich-black: #0d1821;
    --baby-powder: #fafaf7;
    --raw-umber: #946846;
    --cordovan: #873d48;
    --forest-green: #2d5016;

    /* Functional color assignments */
    --primary-color: var(--rich-black);
    --accent-color: var(--forest-green);
    --background-color: var(--baby-powder);
    --text-color: var(--rich-black);
    --border-color: #e5e5e0;
    --header-height: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(250, 250, 247, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cordovan);
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-title:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 103;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    display: block;
}

.hero-bio .professional-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cordovan);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
    font-variant: small-caps;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-bio p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-bio p.opening-statement {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero-bio p.opening-statement em {
    font-style: italic;
    color: var(--primary-color);
}

.hero-bio strong {
    font-weight: 600;
    color: var(--primary-color);
}

.education-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.education-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-section .degree {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-content .tagline {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    min-height: calc(100vh - var(--header-height) - 200px);
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.page-body {
    max-width: 800px;
}

.page-body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
}

.page-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.page-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.page-body ul,
.page-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.page-body li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.page-body a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.page-body a:hover {
    border-bottom-color: var(--accent-color);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    margin-top: 5rem;
    text-align: center;
}

.copyright {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 102;
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        font-size: 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 20px;
    }

    .hero-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .page-content {
        padding: 2rem 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

