/* Define CSS Variables for easier maintenance */
:root {
    --primary-color: #2980b9;
    --primary-dark: #1a6b94; /* Darkened primary color for hover effects */
    --secondary-color: #2c3e50;
    --background-color: #f4f4f4;
    --text-color: #333;
    --light-gray: #ddd;
    --white: #fff;
}

/* Reset some default styles */
body, h1, h2, p, ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}



.content-container {
    max-width: 1000px;  /* Set a fixed width that fits the screen well */
    margin: 0 auto;     /* Center it horizontally */
    padding: 0 20px;    /* Optional: Adds padding inside the content for breathing room */
    background-color: #f8f9fa;  /* Optional: To easily see the content area */
    box-sizing: border-box; /* Ensures padding is included in the total width */
}



body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
    font-size: 15px; /* Adjusted base font size */
}

/* Header Styles */
h1 {
    font-size: 2.2em; /* Reduced font size */
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold; /* Added font weight for emphasis */
}

h2 {
    font-size: 1.6em; /* Reduced font size */
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold; /* Added font weight for emphasis */
}

/* General image styles */
img {
    display: block;
    margin: 20px auto;
    width: 300px; /* Set fixed width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Slightly rounded corners for smooth edges */
}

.image-container {
    display: flex; /* Use Flexbox */
    justify-content: space-around; /* Space out the images evenly */
    align-items: center; /* Align items vertically */
    margin: 20px 0; /* Add some vertical margin */
}

.image-container img {
    border-radius: 8px; /* Smooth edges */
    width: 300px; /* Fixed width */
    height: auto; /* Maintain aspect ratio */
}

/* About Me section */
p {
    margin-bottom: 20px;
    font-size: 1em; /* Adjusted paragraph font size */
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none; /* Remove underline */
}

a:hover, a:focus {
    text-decoration: underline; /* Underline on hover */
}

/* Accomplishments and Research section */
ol {
    padding: 0;
    margin: 0; /* Ensure no margin for ordered list */
}

li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: var(--white); /* White background for items */
    border: 1px solid var(--light-gray); /* Light gray border */
    border-radius: 8px; /* Rounded corners */
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Slight shadow */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Transition for hover effect */
}

li img {
    margin-right: 20px;
    border-radius: 4px; /* Slightly rounded corners for images */
}

/* Ensure divs within li have consistent spacing */
li > div {
    flex: 1; /* Allows the text container to take up remaining space */
}

/* Competencies and other sections */
ul {
    margin-top: 20px;
}

li {
    margin-bottom: 10px;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Added transition for scale effect */
}

.button:hover {
    background-color: var(--primary-dark); /* Darken button color on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
}

/* Hover Effects on List Items */
li:hover {
    background-color: #f9f9f9; /* Slightly lighter background on hover */
    border-color: var(--primary-color); /* Change border color */
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-container {
        flex-direction: column; /* Stack images vertically on smaller screens */
        align-items: center; /* Center items */
    }

    img {
        width: 100%; /* Full width on smaller screens */
        max-width: 300px; /* Keep a max width */
    }
}

/* Accessibility enhancements */
a:focus, .button:focus {
    outline: 2px solid var(--primary-dark); /* Focus outline for accessibility */
}
