body {
    font-family: Arial, sans-serif;
}

nav {
    margin-bottom: 50px;
}

header {
    background-color: #f8f9fa;
    text-align: center; /* Center the text */
}

.banner-image {
    max-width: 100%; /* Ensures image doesn't overflow its container */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Image and About Section */
#image-about .banner-image {
    max-width: 100%; /* Ensures image doesn't overflow its container */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px; /* Add spacing below the image on smaller screens */
}

#image-about h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

#image-about hr {
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 20px auto;
    border: none;
}

#image-about p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.navbar-brand {
    vertical-align: middle;
    margin-right: 10px;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

header .col-md-6 {
    max-width: 50%;
}

.typing-container {
    font-size: 24px; /* Increase font size for the intro text */
    font-weight: 500; /* Make the text semi-bold */
    color: #555; /* Softer color for the description */
    max-width: 100%;
    line-height: 1.5;
    text-align: center; /* Center the text */
    margin-bottom: 10px; /* Add some spacing below the typing text */
}

.typing-container:after {
    content: "";
    display: inline;
    width: 0;
}

.typing-cursor {
    display: inline; /* Keep the cursor inline with the text */
    font-size: 24px; /* Match the cursor size with the text */
    color: #007bff; /* Use a color that contrasts well with the text */
    vertical-align: middle; /* Align cursor vertically with the text */
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* For screens less than 992 pixels (Bootstrap's md breakpoint) */
@media (max-width: 991.98px) {
    .desktop-cursor {
        display: none;  /* Hide the cursor on mobile views */
    }

    #image-about .col-md-6 {
        margin-bottom: 20px; /* Add spacing between the image and the about section on smaller screens */
    }
}


/* Mobile Specific Styles */
h3 {
    font-size: 1.2rem; /* Adjust as needed */
}


/* General section styling */
section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

/* Styling the hr element for sections */
#education hr, #experience hr {
    border-top: 2px solid #ccc;
    width: 100%;
    margin: 20px auto;
}


/* Education section styling */
#education {
    background-color: #f4f4f4;  /* subtle background */
}

#education h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

#education h4 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 25px;
}

#education p {
    font-size: 16px;
    margin-bottom: 10px;
}

#education p:last-of-type {
    margin-bottom: 0;
}

/* If using icons */
.icon-graduation {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Professional Experience section styling */
#professional-experience {
    background-color: #e9e9e9;  /* slightly different background for differentiation */
}

#professional-experience h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

#professional-experience h4 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 25px;
}

#professional-experience p {
    font-size: 16px;
    margin-bottom: 10px;
}

#professional-experience ul {
    margin-bottom: 20px;
}

#professional-experience li {
    margin-bottom: 10px;
}


#publications-appearances li {
    margin-bottom: 15px;  /* Adjust as necessary */
}


.social-links {
    display: flex;
    justify-content: space-between;
    max-width: 200px;  /* adjust as necessary */
    margin: 20px auto;
}

.social-links a {
    color: #333;  /* icon color, adjust as necessary */
    margin: 0 10px;  /* space between icons */
    transition: 0.3s;  /* smooth transition for hover effect */
}

.social-links a:hover {
    color: #0077b5;  /* color on hover, example here is LinkedIn blue. Adjust as necessary. */
}

#download-resume {
    background-color: #f9f9f9; /* A subtle grey background to differentiate the section */
    border-top: 1px solid #eaeaea; /* A light border at the top */
    border-bottom: 1px solid #eaeaea; /* A light border at the bottom */
}

#download-resume h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333; /* Dark grey text color */
}

#download-resume p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #777; /* Light grey text color */
}

#download-resume .btn {
    background-color: #007bff; /* Bootstrap primary color */
    border: none;
    padding: 10px 20px;
    border-radius: 5px; /* Slight roundness to the button */
    color: #fff; /* White text color */
    transition: background-color 0.3s ease; /* Smooth color transition */
}

#download-resume .btn:hover {
    background-color: #0056b3; /* A slightly darker shade for hover effect */
    text-decoration: none; /* Remove the default underline */
}

/* General form styling */
#contact-me {
    background-color: #f4f4f4;
    padding: 40px 0;
    border-radius: 8px;
}

#contact-me h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

#contact-me hr {
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 20px auto;
    border: none;
}

#contact-me .form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease-in-out;
}

#contact-me .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#contact-me textarea.form-control {
    resize: vertical;
}

#contact-me .loading,
#contact-me .sent-message,
#contact-me .error-message {
    display: none;
    font-size: 16px;
    margin-top: 10px;
}

#contact-me .loading {
    color: #007bff;
}

#contact-me .sent-message {
    color: #28a745;
}

#contact-me .error-message {
    color: #dc3545;
}

#contact-me .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

#contact-me .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}



/* About Section Styling */
#about {
    background-color: #f9f9f9;
    padding: 60px 0;
}

#about h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

#about hr {
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin: 20px auto;
    border: none;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

#about p:last-of-type {
    margin-bottom: 0;
}



/* Styles for the Intro Name */
.intro-name {
    font-size: 36px; /* Increase font size */
    font-weight: 700; /* Make the text bold */
    color: #333; /* Darker color for the name */
    margin-bottom: 20px;
}

/* Update the Typing Container Styles */
.typing-container {
    font-size: 24px; /* Increase font size for the intro text */
    font-weight: 500; /* Make the text semi-bold */
    color: #555; /* Softer color for the description */
    max-width: 100%;
    line-height: 1.5;
}

.typing-cursor {
    font-size: 24px; /* Match the cursor size with the text */
    color: #007bff; /* Use a color that contrasts well with the text */
}

/* Adjust the Mobile Typing Container */
.typing-container.d-md-none {
    font-size: 20px; /* Slightly smaller for mobile */
    line-height: 1.4;
}
