/* Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General styling for body and main content */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn’t increase element width */
}

header {
    position: relative;
    color: #fff;
    text-align: center;
}

.header-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

main section {
    display: none; /* Hide all sections by default */
    padding: 2em;
}

main section#about {
    display: block; /* Show only the "About" section initially */
}


/* Main Sections */
section {
    background: #fff;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #333;
    margin-bottom: 0.5em;
    font-size: 1.8em;
}

#publications ul, #projects ul {
    list-style-type: none;
    padding-left: 1em;
}

#publications ul li, #projects ul li {
    margin-bottom: 0.5em;
}

#publications ul li a, #projects ul li a {
    color: #4CAF50;
    text-decoration: none;
}

#publications ul li a:hover, #projects ul li a:hover {
    text-decoration: underline;
}

/* Contact Section */
#contact p, #contact a {
    font-size: 1.1em;
    color: #333;
    text-align: center;
    display: block;
}

#contact a {
    color: #4CAF50;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

.contact-image {
    width: 50%; /* Increase the width to make the image larger */
    height: auto; /* Keeps the aspect ratio */
    display: block; /* Allows centering with margin */
    margin: 10px auto; /* Centers the image horizontally */
    border-radius: 5px; /* Optional: rounds the corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: adds a subtle shadow */
}

.about-image {
    width: 80%; /* Increase the width to make the image larger */
    height: auto; /* Keeps the aspect ratio */
    display: block; /* Allows centering with margin */
    margin: 10px auto; /* Centers the image horizontally */
    border-radius: 5px; /* Optional: rounds the corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: adds a subtle shadow */
}


#about {
    max-width: 100%; /* Expands the section to the full width of the container */
    margin: 0; /* Removes any default margin */
     padding: 10px 20px; /* Adjust top/bottom and left/right padding */
}


#about h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#about p {
    font-size: 16px;
    line-height: 1.6;
}

.topic {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9; /* light background for each topic section */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.topic h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.topic p {
    font-size: 16px;
    color: #333;
}

.topic img {
    max-width: 100%;
    height: auto; /* Keeps the aspect ratio */
    margin-top: 10px; /* Adds spacing between the text and the image */
    border-radius: 5px; /* Adds rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}

figure {
    margin: 10px 0;
    text-align: center;
}

figcaption {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.container {
    padding: 0;
    margin: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 1em;
    background-color: #333;
    color: #fff;
    font-size: 0.9em;
}

.layout {
    display: flex;
}

/* Sidebar styles */
.sidebar {
    width: 500px; /* wider sidebar */
    background-color: #f4f4f4;
    padding: 15px;
}

.sidebar h3 {
    font-size: 18px;
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

/* Main content next to sidebar */
.main-content {
    flex: 1;
    padding: 20px;
}
