/* Base Reset and Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fcfcfc;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5rem 0;
}

.nav-container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #bdc3c7;
}

/* Main Content area */
main {
    width: 60%;
    margin: 40px auto;
    padding: 20px;
}

.bio-section h2 {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.bio-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Profile Image Styling */
.profile-img {
    width: 200px; /* Adjust this number to make the image bigger or smaller */
    height: auto;
    border-radius: 0%; /* This turns a square image into a perfect circle */
    float: left; /* This makes the text wrap around the right side of the image */
    margin-right: 25px; /* Adds breathing room between the picture and the text */
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds a subtle, professional shadow */
}

/* Clearfix to ensure the section contains the floating image properly */
.bio-section::after {
    content: "";
    display: table;
    clear: both;
}

/* Adds more spacing between the major research sections */
.research-category {
    margin-bottom: 50px; 
}

/* Modern Masonry Layout (No Image Cropping) */
.photo-grid {
    column-count: 3; /* Divide the gallery into 3 vertical columns */
    column-gap: 20px; /* Space between the columns */
    width: 100%;
    margin-top: 20px;
}

/* Individual Card Adjustments */
.photo-card {
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    display: inline-block; /* Prevents cards from splitting across columns */
    width: 100%;
    margin-bottom: 20px; /* Space between cards vertically */
}

/* Hover Effect */
.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* The Fix for Pixelation & Cutoffs */
.photo-card img {
    width: 100%;
    height: auto;       /* Lets the height scale naturally to prevent cutoff */
    display: block;
    max-width: 100%;    /* Prevents small images from over-stretching and pixelating */
}

/* Caption Style */
.photo-caption {
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #4f5d73;
    font-family: Arial, sans-serif;
    border-top: 1px solid #f0f4f8;
    background-color: #fafbfc;
}

/* Responsive adjustment for phones/smaller screens */
@media (max-width: 768px) {
    .photo-grid {
        column-count: 1; /* Drop down to 1 column on phones so everything stays readable */
    }
}

/* Contact Email Hover Effect */
.contact-section a:hover {
    color: #3498db;
    border-color: #3498db;
}