/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');


body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #122533;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.1rem;
}

/* Dark Mode */
body.dark-mode {
    background-color: #122533;
    color: #fafafa;
}

/* Navigation */
nav {
    background-color: #fafafa;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: background-color 0.3s;
}

body.dark-mode nav {
    background-color: #1a2a3a;
}

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

.logo {
    font-size: 20px;
    color: #122533;
    transition: color 0.3s;
}

body.dark-mode .logo {
    color: #fafafa;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #122533;
    padding: 5px 10px;
    transition: color 0.3s;
}

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

body.dark-mode .nav-links a {
    color: #fafafa;
}

body.dark-mode .nav-links a:hover {
    color: #fada7a;
}

/* Dark Mode Button */
.dark-mode-btn {
    background: none;
    border: none;
    color: #122533;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

body.dark-mode .dark-mode-btn {
    color: #fafafa;
}

/* About Section */
.about-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
    padding: 40px 0;
}

.about-left {
    text-align: center;
    flex: 1;
    margin-top: 32px;
}
.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.about-right {
    flex: 2;
    text-align: left;
    padding-left: 40px;
}

.about-header h1 {
    margin-top: 0;
    font-size: 2.2em;
}

/* Interests and Education */
.interests-education {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: auto;
    padding-top: 20px;
}

.interests {
    flex: 1;
    max-width: 40%;
    padding-right: 20px;
}

.education {
    flex: 1.5;
}

.education .school {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}


/* Lists (Square Bullets) */
ul {
    list-style-type: square;
    padding-left: 20px;
}

ul li {
    margin-bottom: 5px;
}
/* Projects & Publications Section */
.projects-publications-container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

/* Each Project-Publication Block */
.project-publication {
    display: flex;
    align-items: flex-start;
    justify-content: space-between; /* Text left, image right */
    gap: 20px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: background-color 0.3s, box-shadow 0.3s;
    flex-wrap: wrap; /* Ensures content wraps naturally */
    overflow: hidden;
}

body.dark-mode .project-publication {
    background-color: #1a2a3a;
}

/* Project Image - Float Right & Wrap Text */
.project-publication img {
    width: 35%;  /* Adjust width to avoid overflow */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    float: right; /* Ensures text wraps around */
    margin-left: 20px; /* Space between text and image */
}

/* Clearfix to ensure proper layout */
.project-publication::after {
    content: "";
    display: table;
    clear: both;
}

/* Project Details */
.project-publication-details {
    flex: 1;
    text-align: justify;
    overflow: hidden; /* Prevents content overflow */
}

/* Project Titles */
.project-publication h2 {
    font-size: 1.3em;
    font-weight: bold;
    color: #122533;
    margin-top: 0; /* Align heading with image */
}

body.dark-mode .project-publication h2 {
    color: #fafafa;
}

/* Project Description */
.project-publication p {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

body.dark-mode .project-publication p {
    color: #ddd;
}

/* List Formatting */
.project-publication ul {
    list-style-type: square;
    padding-left: 20px;
    margin: 0;
}

.project-publication ul li {
    font-size: 0.95em;
    margin-bottom: 5px;
    color: #555;
}

body.dark-mode .project-publication ul li {
    color: #ddd;
}

/* Responsive Design */
@media screen and (max-width: 800px) {
    .project-publication {
        flex-direction: column; /* Stack text and image vertically */
    }

    .project-publication img {
        width: 100%; /* Full width image for smaller screens */
        float: none; /* Remove float */
        margin: 10px 0; /* Add spacing */
    }
}

/* Sections */
.section {
    padding: 80px 20px;
    background-color: #fafafa;
    margin-top: 50px;
    transition: background-color 0.3s;
    border-bottom: none;
}

body.dark-mode .section {
    background-color: #1a2a3a;
    border-bottom: none;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

h1 {
    font-size: 2em;
    color: #122533;
    font-weight: normal;
    margin-bottom: 10px;
    transition: color 0.3s;
}

body.dark-mode h1 {
    color: #fafafa;
}

/* Footer */
footer {
    background-color: #fafafa;
    color: #122533;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode footer {
    background-color: #1a2a3a;
    color: #fafafa;
}

/* Recognitions & Presentations Section */
#recognitions-presentations {
    padding: 50px 20px;
    background-color: #fafafa;
}

body.dark-mode #recognitions-presentations {
    background-color: #1a2a3a;
}

/* Grid Layout */
.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding-top: 20px;
}

/* Individual Recognition Blocks */
.recognition-block {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    padding-bottom: 15px;
}

body.dark-mode .recognition-block {
    background-color: #2a3a4a;
}

.recognition-block:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Image Styling */
.recognition-block img {
    width: 100%;
    height: 180px; /* Consistent height */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Text Content */
.recognition-block h2 {
    font-size: 1.1em;
    font-weight: bold;
    color: #122533;
    margin: 12px 15px 5px 15px;
}

body.dark-mode .recognition-block h2 {
    color: #fafafa;
}

.recognition-block p {
    font-size: 0.9em;
    color: #555;
    margin: 0 15px 15px 15px;
}

body.dark-mode .recognition-block p {
    color: #ddd;
}

