/* --- Global Variables --- */
:root {
    --midnight: #162A2C;
    --sky-blue: #D6E0E2;
    --forest-green: #5E6C5B;
    --fresh-cream: #F4EFE6;
    --cloud-white: #FEFCF6;
    --icon-transition: filter 0.2s ease, transform 0.2s ease;
    --filter-forest-green: brightness(0) saturate(100%) invert(41%) sepia(0%) saturate(7484%) hue-rotate(97deg) brightness(95%) contrast(85%);
    --filter-midnight: brightness(0) saturate(100%) invert(14%) sepia(44%) saturate(378%) hue-rotate(137deg) brightness(93%) contrast(99%);
}

/* --- Base Reset & Layout --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--midnight);
    background-color: var(--sky-blue);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--midnight);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;

    &:hover {
        color: var(--forest-green);
    }
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--midnight);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-navigation-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation-list li:not(:first-child) a {
    color: var(--fresh-cream);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;

    &:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--fresh-cream);
    }
}

.logo {
    width: 60px;
    height: auto;
    display: block;
}

/* --- Main Content Area --- */
.content-wrapper {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--fresh-cream);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

h1 {
    color: var(--midnight);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--sky-blue);
    padding-bottom: 0.5rem;
}

.section-title-spacing {
    margin-top: 1.5rem;
}

.intro-text {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- Home Section --- */
.job-meta {
    color: var(--forest-green);
    font-weight: bold;
    font-size: 0.9rem;
}

.job-highlights {
    margin-left: 1.5rem;
    line-height: 1.5;
}

/* --- Call to Action Box --- */
.cta-box {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--sky-blue);
    border-radius: 8px;
}

.cta-title {
    color: var(--midnight);
    margin-bottom: 1rem;
}

.cta-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--midnight);
    color: var(--fresh-cream);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;

    &:hover {
        background-color: var(--forest-green);
        color: var(--fresh-cream);
    }
}

/* --- Projects Section --- */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.project-card {
    border: 2px solid var(--forest-green);
    border-radius: 8px;
    padding: 1.5rem;
    line-height: 1.8;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;

    &:hover {
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    h3 {
        color: var(--midnight);
        margin-bottom: 0.5rem;
    }

    p {
        margin-bottom: 1rem;
    }
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    &:hover {
        color: var(--forest-green);

        .project-icon {
            transform: translateX(3px);
            filter: var(--filter-forest-green);
        }
    }
}

.project-icon {
    width: 20px;
    height: auto;
    transition: var(--icon-transition);
}

/* --- Contact Form Section --- */
.contact-intro {
    margin-bottom: 2rem;
}

.form-group-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--midnight);
}

.form-input, .form-textarea {
    padding: 0.8rem;
    border: 1px solid var(--forest-green);
    border-radius: 4px;
    font-family: inherit;
    background-color: var(--cloud-white);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--midnight);
    box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

.required-asterisk {
    color: var(--forest-green);
    font-weight: bold;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--forest-green);
    color: var(--midnight);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--midnight);
    font-weight: normal;

    &:hover {
        .footer-icon {
            transform: translateY(-3px);
            filter: var(--filter-midnight);
        }
    }

}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--fresh-cream);
}

.footer-icon-inline {
    width: 18px;
    height: auto;
}

.footer-icon {
    width: 24px;
    height: 24px;
    transition: var(--icon-transition);
}
