/* Define color constants (variables) at the top */
:root {
    --menu-color: #2c3e3f;
    --dropdown-color: #2c3e3f;
    --highlight-color: #FFB703;
    --background-color: #1b2b2d;
    --hero-color: #1b2b2d;
    --light-font-color: #FFFFFF;
    --section-title-color: #76b29c;
    --card-background-color: #253b3c;
    /*--secondary-color: #e74c3c;*/
    /*--accent-color: #2ecc71;*/
    /*--text-color: #333333;*/
    /*--background-color: #f4f4f4;*/
}

/* Define some extra fonts */
/*Courier Prime monofont*/
@font-face {
    font-family: 'Courier_Prime';
    src: url('fonts/Courier_Prime/CourierPrime-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Courier_Prime';
    src: url('fonts/Courier_Prime/CourierPrime-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
/*Gelasio serif*/
@font-face {
    font-family: 'Gelasio';
    src: url('fonts/Gelasio/static/Gelasio-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Gelasio';
    src: url('fonts/Gelasio/static/Gelasio-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
/*Poppins sans-serif*/
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
/*Lato sans-serif*/
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato/Lato-Light.ttf') format('truetype');
    font-weight: 300; /* Light */
    font-style: normal;
}
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato/Lato-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}


.mono-font {
    font-family: 'Courier_Prime', monospace;
}
.serif-font {
    font-family: 'Gelasio', serif;
}
.sans-serif {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

/* Adds some space*/
.spaced {
    margin-top: 1.5rem;
}

/* Style adjustments for menu bar*/
.header {
    background-color: var(--menu-color);
    color: var(--light-font-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* Ensures the header spans exactly the viewport width */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem; /* Thinner padding */
}

.logo {
    font-size: 1.5rem;
    font-weight: 100;
    font-family: 'Courier_Prime', monospace;
    color: var(--light-font-color);
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto; /* Keeps the aspect ratio */
}


.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative; /* Allows for positioning the dropdown */
}

.nav a {
    font-weight: 400;
    color: var(--light-font-color);
    text-decoration: none;
    padding: 0.5rem; /* Adds spacing around links */
    position: relative; /* Required for hover effects */
}

.nav a:hover {
    color: var(--highlight-color);
}

/* Dropdown styles */
.dropdown {
    position: relative; /* Ensures submenu is positioned relative to this element */
}

.submenu {
    display: none; /* Hide submenu by default */
    position: absolute; /* Position submenu below the parent link */
    top: 120%; /* Align submenu below the "Research" link */
    left: 0; /* Align submenu to the left of the dropdown */
    background-color: var(--dropdown-color);
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 15px; /* Optional: rounded corners */
    /*box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); !* Optional: Add depth *!*/
    z-index: 1000; /* Ensure the submenu appears above other elements */
    min-width: 200px; /* Ensure consistent width */
}

.submenu li {
    list-style: none; /* Remove default list styling */
}

.submenu li a {
    display: block; /* Stack submenu items vertically */
    color: var(--light-font-color);
    padding: 0.5rem 1rem; /* Add spacing inside submenu links */
    text-decoration: none;
    font-weight: 400;
}

.submenu li a:hover {
    /*background-color: var(--highlight-color); !* Highlight on hover *!*/
    color: var(--highlight-color); /* Contrast text color */
}

/* Ensure submenu stays visible when hovering */
.dropdown:hover .submenu,
.dropdown .submenu:hover {
    display: block; /* Show submenu when hovering over the dropdown or the submenu itself */
}

/* Style adjustments for text*/
.title {
    font-size: 2.5rem;
    font-weight: 600;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
}

.section {
    position: relative;
    padding: 2rem 0;
}

h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--section-title-color);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    width: 100%; /* Ensure heading takes up full width */
    margin-top: 0;
}

h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--light-font-color);
    font-size: 1.5rem;
    text-align: center;
    padding: 0 5rem; /* narrows down the text so that it looks nicer below h1 */
    margin-bottom: 1rem;
    /*width: 80%; !* Ensure heading takes up full width *!*/
    margin-top: 0;

}

h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--section-title-color);
    width: 100%; /* Ensure heading takes up full width */
    /*margin-top: 0;*/
    margin-bottom: -0.5rem;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    margin: 0;
    font-size: 1.1rem;
    background-color: var(--background-color);
    color: var(--light-font-color);
    line-height: 1.6;
}

/* Style adjustments for hero section*/
.hero {
    background: var(--section-title-color);
    height: 25vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-font-color);
    text-align: center;
    margin: 0 0%; /* Adds cropping effect by limiting the horizontal extent */
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); !* Adds a shadow for depth *!*/
}

.hero .intro-text {
    position: relative;
    /*top: -2px; !* Move down *!*/
    /*left: -10px; !* Move left *!*/
    /*background: rgba(100, 0, 0, 0.2); !* Semi-transparent background for readability *!*/
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 2.4rem;
    /*font-weight: bold;*/
    max-width: 90%;
}

/* Style adjustments for About Me section*/
.content_container {
    display: flex; /* Set container to flex */
    flex-wrap: wrap; /* Allow wrapping for the content */
    justify-content: flex-start; /* Align items to the left */
    width: 60%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 1rem;
}

.content_container p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    width: 100%; /* Ensure paragraphs take up full width */
    text-align: justify; /* Justify text for clean wrapping */
    margin-bottom: -0.3rem; /* Add space after each paragraph (half-line space) */
}

/* Adjusting figure styling */
.content_container figure {
    width: 100%; /* Ensure figure doesn't exceed container width */
    max-width: 100%; /* Max width set to container width */
    margin-top: 20px; /* Some space above the figure */
    text-align: center; /* Centering the figure and caption */
    overflow: hidden; /* Prevents any overflow if image size is too large */
}

.content_container figure img {
    width: 100%; /* Makes image responsive */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensures image doesn't exceed container's width */
    /*max-height: 500px; !* Optional: Limits height to avoid oversized images *!*/
    border-radius: 8px; /* Optional: rounded corners */
    object-fit: contain; /* Adjusts image to fit within container */
}

.content_container figcaption {
    font-size: 0.9rem; /* Smaller font size for caption */
    font-style: italic; /* Italic text for caption */
    color: var(--light-font-color); /* Ensure caption is legible */
    margin-top: 8px; /* Adds space between image and caption */
}

@media (max-width: 768px) {
    .figure {
        float: none;
        width: 100%;
        margin-left: 0;
    }
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    text-decoration: none;
    background-color: var(--section-title-color); /* Dark Green */
    color: var(--light-font-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px; /* Rounded buttons */
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--highlight-color); /* Amber */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.btn_narrow {
    text-decoration: none;
    background-color: rgba(118, 178, 156, 0.3);
    /*background-color: var(--section-title-color); !* Dark Green *!*/
    color: var(--light-font-color);
    padding: 0.1rem 1.5rem;
    border-radius: 20px; /* Rounded buttons */
    margin-bottom: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn_narrow:hover {
    background-color: var(--highlight-color); /* Amber */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.button-wrapper {
    display: flex;
    justify-content: center; /* Horizontally centers the button */
    align-items: center; /* Vertically centers within the container */
    margin-top: auto; /* Push the button down to the bottom */
}

/* Style adjustments for footer*/
.footer {
    background-color: var(--menu-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    color: var(--light-font-color);
}

.footer_container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Styles for References*/
.reference_container {
    display: flex; /* Set container to flex */
    flex-wrap: wrap; /* Allow wrapping for the content */
    justify-content: flex-start; /* Align items to the left */
    width: 50%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 1rem;
}

.reference_container p {
    width: 100%; /* Ensure paragraphs take up full width */
    text-align: justify; /* Justify text for clean wrapping */
    margin-bottom: -0.5rem; /* Add space after each paragraph (half-line space) */
    font-weight: 100;
    text-indent: -30px; /* Negative indent for the first line */
    padding-left: 30px; /* Pushes the rest of the text to the right */
}
