/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Grey text */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #ffffff; /* White background */
}

header {
    background: #007bff; /* Blue background */
    color: #ffffff; /* White text */
    padding: 20px 0;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    background: #0056b3; /* Darker blue for nav bar */
}

nav a {
    color: #ffffff; /* White text */
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

nav a:hover {
    background: #333333; /* Grey for hover state */
}

section {
    padding: 20px;
    margin: 20px 0;
}

footer {
    background: #333333; /* Grey background */
    color: #ffffff; /* White text */
    text-align: center;
    padding: 10px 0;
}

/* Bio Section */
.bio-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bio-section img, .repo img {
    width: 200px; /* Fixed width */
    height: 200px; /* Fixed height */
    object-fit: cover; /* Maintains the aspect ratio without distortion */
    border-radius: 60%; /* Optional: makes the image round */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}



/* Papers Grid */
.paper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.paper {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.paper embed {
    width: 400px; /* Increased width */
    height: 600px; /* Increased height */
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.paper-content {
    padding: 50px;
    text-align: center;
}

/* Repositories Grid */
.repositories {
    padding: 20px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.repo {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}



.repo h4 {
    margin: 10px 0;
}

.repo p {
    font-size: 0.9em;
}

/* Contact Section */
.contact {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Single column for mobile */
    gap: 20px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item img {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.contact-item p {
    margin: 0;
    font-size: 1em;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    margin: 10px;
    text-decoration: none;
    color: #333;
}

.social-links img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.presentation-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.presentation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.presentation-content {
    margin-top: 10px;
}

.presentation-content h3 {
    margin-bottom: 10px;
}

.presentation-content p {
    line-height: 1.6;
}


/* Responsive Design */
@media screen and (max-width: 768px) {

    .contact-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .paper-grid{
        grid-template-columns: repeat(1, 1fr);
    }

    nav {
        flex-direction: column;
    }

    .paper embed {
        width: 100%; /* Full width on small screens */
        height: auto; /* Auto height to maintain aspect ratio */
    }

    .bio-section img, .repo img {
        width: 100px; /* Adjust for smaller screens */
        height: 100px; /* Adjust for smaller screens */
    }
}


@media screen and (max-width: 1024px) {
    .paper embed {
        width: 450px; /* Adjusted for medium screens */
        height: 600px; /* Adjusted for medium screens */
    }
}

