/* CSS Custom Properties - Single Source of Truth for Colors */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;

    --color-background: #D7DCDF;


    /* Header Colors */
    --color-header: #1e3a5a;
    --color-header-text: #E7ECEF;
    --color-header-hover: #6096BA;

    /* Body Colors */
    --color-text: #1e3a5a;
    --color-highlight: #30769A;
    --color-hover: #30769A;
    --color-contrast: #6e6f6c;
}

/* black: "#000000",
white: "#FFFFFF",
background: "#E7ECEF", 
hover: "#6096BA",
header: "#A3CEF1",
footer: "#A3CEF1",
text: "#274C77",
highlight: "#6096BA",
contrast: "#8B8C89" */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header and Navigation */
header {
    background-color: var(--color-header);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--color-header-text);
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-header-text);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-header-hover);
}

.nav-menu a.active {
    color: var(--color-header-hover);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-header-hover);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

#page-content {
    /* padding: 2rem 0; */
    /* margin: 1rem 0; */
    min-height: 500px;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text);
    padding: 2rem;
}

/* Page content styles */
.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-header);
    border-bottom: 2px solid var(--color-highlight);
    padding-bottom: 0.5rem;
}

.page-section {
    margin-bottom: 2rem;
}

.page-section h2 {
    font-size: 1.5rem;
    color: var(--color-header);
    margin-bottom: 1rem;
}

.page-section h3 {
    font-size: 1.2rem;
    color: var(--color-highlight);
    margin-bottom: 0.5rem;
}

.page-section p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.6;
    font-size: 1rem;
}

.page-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-section li {
    margin-bottom: 0.5rem;
}

/* General text links styling */
p a, .about-bio a, .page-section a {
    color: var(--color-highlight);
    text-decoration: none;
    transition: color 0.3s ease;
}

p a:hover, .about-bio a:hover, .page-section a:hover {
    color: var(--color-highlight);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--color-header);
    color: var(--color-header-text);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
}

/* About Page Styles */
.about-container {
    /* max-width: 1000px; */
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-title {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--color-highlight);
    padding-bottom: 0.5rem;
    font-weight: bold;
}

.about-bio {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
}

.about-bio p {
    margin-bottom: 1.25rem;
}

.about-sidebar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-section {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--color-highlight);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    max-width: 200px;
    margin: 0 auto;
}

.contact-link {
    color: var(--color-highlight);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.contact-separator {
    color: var(--color-text);
    font-weight: normal;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    #page-content {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    /* About page responsive */
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .contact-links {
        font-size: 0.7rem;
        gap: 0.2rem;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
}
