/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
    padding-top: 70px; /* Compensates for the fixed navbar */
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Navbar Styles */
.navbar {
    background-color: #333;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .brand {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar .logo,
.navbar .second-logo {
    height: 40px;
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px;
    vertical-align: middle;
}

/* Hamburger Button for Mobile */
.hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
}

.nav-links a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger button */
    }

    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #333;
        border-radius: 5px;
        padding: 10px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Show nav links when toggled */
    }

    .nav-links a {
        padding: 10px 20px;
    }
}

/* Ordered List Styling */
ol {
    list-style-type: none; /* Removes default numbering */
    counter-reset: item; /* Resets the counter for custom numbering */
    padding-left: 0; /* Removes default padding */
    text-align: left;
}

ol li {
    counter-increment: item; /* Increments the counter for each item */
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px; /* Ensures space for the bracket */
}

ol li::before {
    content: "[" counter(item) "]"; /* Formats the number */
    position: absolute;
    left: 0;
    font-weight: bold;
    color: black;
    width: 30px;
    text-align: right;
    display: inline-block;
}

/* Hero Section */
.hero {
    background-image: url('pictures/fsu4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hero {
        background-attachment: scroll; /* Disable parallax for mobile */
        padding: 90px 20px;
    }

    .hero h1 {
        font-size: 2rem; /* Reduce font size for better fit */
        line-height: 1.4;
    }
}

/* Lead Researcher Section */
.lead-researcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 50px 0;
}

.lead-researcher img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.lead-researcher h3 {
    font-size: 24px;
    font-weight: bold;
}

.lead-researcher p {
    font-size: 16px;
    color: #666;
}

/* Team Section */
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 20px auto;
    max-width: 1200px;
    text-align: center;
}

.team-member {
    flex-basis: calc(33.333% - 40px); /* Three items per row on large screens */
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
}

/* Default: circular for everyone */
.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

/* On the Photos page: override to square */
.photos-page .team-member img {
    border-radius: 0;
    object-fit: contain;
    width: 100%;
    height: auto;
    background: #f0f0f0; /* optional: adds background padding for irregular images */
}

}


.team-member h3 {
    font-size: 18px;
    margin-top: 10px;
}

.team-member p {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .team-member {
        flex-basis: calc(50% - 20px); /* Two items per row on tablets */
    }
}

@media (max-width: 480px) {
    .team-member {
        flex-basis: 100%; /* One item per row on small screens */
    }
}

/* Bio Page */
.bio-content {
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Default vertical layout for smaller screens */
    align-items: center; /* Center-align items */
    gap: 20px; /* Space between sections */
}

.bio-text {
    text-align: left;
    max-width: 600px;
    line-height: 1.6;
    padding-left: 30px; /* Keeps the existing left padding */
}

.bio-text ul {
    padding-left: 40px; /* Add padding to the list */
    list-style-type: disc; /* Optional: Changes bullet style */
}

.bio-text li {
    margin-bottom: 10px; /* Adds space between list items */
}



.bio-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%; /* Makes the image circular */
}

.bio-buttons {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between buttons */
}

.bio-buttons a {
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    width: 200px; /* Set a fixed width for all buttons */
    display: inline-block; /* Ensures the width is respected */
}

.bio-buttons a:hover {
    background-color: #0056b3;
}


/* Responsive Styles */
/* Push bio-text down on larger screens */
@media (min-width: 768px) {
    .bio-text {
        margin-top: 50px; /* Adjusts the spacing above bio-text */
    }
}

@media (min-width: 768px) {
     .bio-content {
        flex-direction: row; /* Horizontal layout for larger screens */
        align-items: flex-start; /* Align items to the top */
    }

    .bio-text {
        flex-grow: 1; /* Allow bio-text to take up remaining space */
        max-width: 100%; /* Adjust width to fill container */
        padding-top: 0; /* Remove padding for horizontal layout */
    }

    .bio-image,
    .bio-buttons {
        flex-shrink: 0; /* Prevent shrinking */
    }

    .bio-buttons {
        align-items: flex-start; /* Align buttons to the start */
    }

    
}



/* General Styles for the Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Sticky Footer */
html, body {
    height: 100%; /* Ensure the document height covers the entire viewport */
    margin: 0; /* Remove default margins */
}

body {
    display: flex;
    flex-direction: column; /* Use flexbox for layout */
}

.container {
    flex-grow: 1; /* Ensure the main content pushes the footer to the bottom */
}

footer {
    margin-top: auto; /* Push the footer to the bottom of the page */
}


/* Mobile-Specific Adjustments */
@media (max-width: 600px) {
    body {
        padding-top: 100px; /* Adjust this value to match the height of your navbar */
    }

    .navbar .container {
        flex-direction: column;
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .navbar .nav-links li {
        margin: 10px 0;
    }

    .team-grid {
        flex-direction: column;
    }

    .team-member {
        margin-bottom: 20px;
    }

    .lead-researcher {
        text-align: center;
        padding: 0 20px;
    }

    .bio-content {
        flex-direction: column;
        text-align: center;
    }

    .bio img {
        margin-bottom: 15px;
    }
}
