body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    text-align: justify;
    margin: 0 20px; /* 20px margin on left and right */
    padding: 0;
    background-color: #f9fbfd;
    color: #333333;
}

header {
    background: #f1f1f1;
    color: #333;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    background: #2c3e50;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

nav ul li a.active, nav ul li a:hover {
    background: #8ac6d1;
    border-radius: 5px;
}

.profile-container {
    position: fixed;
    top: 120px; /* Adjusted to be below the header */
    left: 30px;
    padding: 20px;
    background-color: #f1f1f1;
    border-right: 2px solid #ddd;
    z-index: 1000;
    max-width: 220px;
    text-align: center; /* Center-align content */
}

.profile-photo {
    width: 180px; /* Increased size */
    border-radius: 50%; /* Make it a perfect circle */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.contact-info {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-link, .supervisor-link, .doi-link {
    color: #0077cc;
    text-decoration: none;
}

.contact-link:hover, .supervisor-link:hover, .doi-link:hover {
    color: #005f99;
    text-decoration: underline;
}

.email-link {
    color: #f39c12;
}

.linkedin-link {
    color: #0077b5;
}

.scholar-link {
    color: #4285F4;
}

.rg-link {
    color: #2ECC71;
}

.education-row, .experience-row, .publication-list li {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
}

.education-row:nth-child(even), .experience-row:nth-child(even), .publication-list li:nth-child(even) {
    background-color: #e0e0e0;
}

.section-heading-box {
    background-color: #f1f1f1;
    padding: 10px;
    margin-bottom: 10px;
}

ul, ol {
    padding-left: 20px;
}

main {
    padding: 20px;
    margin-left: 240px; /* Leave space for the profile container */
    margin-right: 30px; /* Adjust right margin */
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

.content-wrapper {
    margin: 0 20px; /* 20px margin on both sides */
    max-width: 1200px; /* Optional: limit the width of content */
    margin-left: auto; /* Center content */
    margin-right: auto; /* Center content */
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    main {
        margin-left: 0; /* Remove left margin on mobile */
        margin-right: 0; /* Remove right margin on mobile */
        padding: 10px; /* Adjust padding */
        width: 100%; /* Ensure main content takes full width */
    }

    .content-wrapper {
        margin: 0; /* Remove margins */
        padding: 0; /* Remove padding */
        width: 100%; /* Full width */
    }

    .profile-container {
        position: static; /* Remove fixed positioning */
        margin: 0 auto 20px; /* Center and add margin below */
        width: 100%; /* Full width on mobile */
        max-width: 100%; /* Ensure it doesn't exceed screen width */
        padding: 10px; /* Add padding */
    }

    .profile-photo {
        width: 150px; /* Adjust photo size */
        margin: 0 auto; /* Center the photo */
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 130px; /* Further adjust size for small screens */
    }
}

@media (max-width: 400px) {
    .profile-photo {
        width: 120px; /* Further adjust size for very small screens */
    }
}
