/* ----- Basic Reset & Defaults ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; /* Slightly off-white background */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer sticks to bottom */
}

html {
    scroll-behavior: smooth; /* Smooth scroll for future anchor links if added */
}

/* ----- Container ----- */
.container {
    max-width: 960px;
    margin: 0 auto; /* Center container */
    padding: 0 20px; /* Add padding on sides */
    width: 100%;
}

/* ----- Header & Navigation ----- */
header {
    background: #2c3e50; /* Dark blue-grey header */
    color: #ecf0f1; /* Light text */
    padding: 1rem 0;
    border-bottom: 4px solid #3498db; /* Blue accent */
}

header h1 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 2.2rem;
    font-weight: 300; /* Lighter font weight */
}

nav ul {
    list-style: none;
    text-align: center;
    padding-bottom: 0.5rem;
}

nav ul li {
    display: inline-block; /* Horizontal nav */
    margin: 0 12px;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #3498db; /* Blue background on hover */
    color: #fff;
}

nav a.active { /* Style for the current page link */
    background-color: #3498db;
    color: #fff;
    font-weight: bold;
}

/* ----- Main Content Area ----- */
main {
    flex: 1; /* Allows main content to grow and push footer down */
    padding: 30px 0; /* Vertical padding */
}

main h2 {
    color: #2c3e50; /* Match header color */
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0; /* Light underline */
    font-size: 1.8rem;
    font-weight: 400;
}

main h3 {
    color: #34495e; /* Slightly lighter dark blue */
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

main h4 {
     color: #34495e;
     margin-top: 1rem;
     margin-bottom: 0.3rem;
     font-size: 1.1rem;
     font-weight: bold;
}

main p {
    margin-bottom: 1rem;
    color: #555; /* Slightly lighter text for paragraphs */
}

main a {
    color: #3498db; /* Blue links */
    text-decoration: none;
    transition: color 0.2s ease;
}

main a:hover {
    color: #2980b9; /* Darker blue on hover */
    text-decoration: underline;
}

main ul {
    margin-left: 20px; /* Indent lists */
    margin-bottom: 1rem;
}

main li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* ----- Specific Page Styles ----- */

/* About Me Page */
.profile-photo {
    max-width: 180px;
    height: auto;
    border-radius: 50%; /* Circular photo */
    float: left; /* Float photo to the left */
    margin: 0 20px 10px 0; /* Spacing around photo */
    border: 3px solid #e0e0e0;
}

/* CV Page */
.cv-item {
    margin-bottom: 1.8rem;
    padding-left: 15px;
    border-left: 3px solid #3498db; /* Blue left border */
}
.cv-item h4 {
    margin-top: 0; /* Reset top margin for titles within cv-item */
}
.cv-item p {
    margin-bottom: 0.5rem; /* Less space between paragraphs in CV items */
}
.cv-item ul {
     margin-top: 0.5rem;
}

/* Contact Page */
.contact-list {
    list-style: none; /* Remove default bullets */
    margin-left: 0;
}
.contact-list li {
    margin-bottom: 1rem;
    padding: 10px;
    background-color: #fff;
    border-left: 4px solid #3498db;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
}
.contact-list strong {
    display: inline-block;
    min-width: 80px; /* Align labels */
    color: #333;
}
.contact-list em {
    font-size: 0.9em;
    color: #777;
    display: block; /* Put notes on new line */
    margin-top: 4px;
}


/* ----- Footer ----- */
footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto; /* Pushes footer to bottom */
    font-size: 0.9em;
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    nav ul li {
        margin: 0 8px; /* Slightly less space */
    }
    nav a {
        padding: 6px 10px;
    }
    main {
        padding: 20px 0;
    }
    main h2 {
        font-size: 1.6rem;
    }
    main h3 {
        font-size: 1.3rem;
    }
    .profile-photo {
        float: none; /* Stop floating */
        display: block; /* Center it */
        margin: 0 auto 20px auto; /* Center and add bottom margin */
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }
    nav ul li {
        display: block; /* Stack nav items */
        margin: 8px 0;
    }
     nav a {
        display: block; /* Make links full width */
    }
    .container {
        padding: 0 15px; /* Less padding on small screens */
    }
    main h2 {
        font-size: 1.4rem;
    }
    main h3 {
        font-size: 1.2rem;
    }
}
