body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f2f5; /* A light grey background */
    color: #333;
    line-height: 1.6;
}

/* Main Container for the Flexbox Layout */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Left Navigation Sidebar */
.nav-sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.nav-title {
    font-size: 2em;
    font-weight: 300;
    margin-bottom: 5px;
    color:#f5f9f7;
    border-bottom: 2px solid #278ef5;
    padding-bottom: 10px;
}

.nav-subtitle {
    font-size: 1.2em;
    font-weight: 300;
    color: #bdc3c7;
    margin-top: 0;
    margin-bottom: 20px;
}

.nav-link, .sub-nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 2px 12px;
    margin-bottom: 0px;
    border-radius: 12px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover, .sub-nav-link:hover {
    background-color: #34495e;
    transform: translateX(1px);
}

.nav-link {
    font-size: 1em;
    padding: 11px 14px;
    margin-top: 12px;
    margin-left:1px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.92), rgba(44, 62, 80, 1));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.nav-link.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 1px solid rgba(52, 152, 219, 0.5);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: #fff;
}

.sub-nav-link {
    margin-top: 3px;
    margin-left: 3px;
    padding: 9px 10px;
    font-size: 0.8em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Main Content Area */
.content-area {
    margin-left: 290px; /* Aligned with sidebar width (250px + 40px padding) */
    flex-grow: 1;
    padding: 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Sections Styling */
.content-section {
    width: 90%;    margin-bottom: 60px; /* added spacing between sections */}

/* Manual slider */
.manual-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 24px 0;
}

.manual-slider--compact {
    min-height: 250px;
}

.manual-slider--large {
    min-height: 290px;
}

.slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 16px;
    background: #f7f9fb;
    padding: 18px 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.slider-viewport::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
    align-items: stretch;
}

.slider-track img {
    flex: 0 0 auto;
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manual-slider--large .slider-track img {
    width: 300px;
    height: 220px;
}

.slider-track img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.slider-button {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #3498db;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: grid;
    place-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.slider-button:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .manual-slider {
        gap: 8px;
    }

    .slider-button {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .slider-track img {
        width: 220px;
        height: 150px;
    }

    .manual-slider--large .slider-track img {
        width: 240px;
        height: 170px;
    }
}

/* Research section image */
.research-section-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    margin: 24px 0;
    display: block;
}

/* Research images grid */
.research-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.research-images-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-images-grid img:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

/* Research document box */
.research-document-box {
    background: linear-gradient(135deg, #ecf0f1 0%, #f5f7fa 100%);
    border-left: 5px solid #3498db;
    padding: 24px;
    border-radius: 10px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.research-document-box h4 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.2em;
}

/* Landing page research summaries */
.research-summary {
    font-size: 1.05em;
    color: #34495e;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
    border-left: 5px solid #3498db;
    padding: 18px 20px;
    border-radius: 12px;
    margin: 12px 0 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.research-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.research-pill {
    display: inline-block;
    background: #eaf3fb;
    color: #2c3e50;
    border: 1px solid #cfe3f5;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
}

.research-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 18px 0 22px;
}

.research-info-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 18px 16px;
    border: 1px solid #e7edf3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
}

.research-info-card h3 {
    font-size: 1.05em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.research-info-card p {
    margin: 0;
    color: #566573;
}

.highlights-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0 22px;
}

.cv-list {
    margin: 0;
    padding-left: 20px;
    color: #566573;
}

.cv-list li {
    margin-bottom: 8px;
}

.cv-list li:last-child {
    margin-bottom: 0;
}

.publication-list em {
    color: #34495e;
}

.research-metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0 18px;
}

.research-metric {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9fc 100%);
    border: 1px solid #e5edf4;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.research-metric span {
    display: block;
    font-size: 1.35em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 6px;
}

.research-metric small {
    color: #6b7b88;
    font-size: 0.9em;
}

.research-cta-link {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 18px;
    background-color: #3498db;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.research-cta-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.document-link {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.document-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Academic Overview Styling */
.education-timeline {
    margin: 24px 0;
}

.education-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #ecf0f1 100%);
    border-left: 5px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.education-degree {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 6px;
}

.education-institution {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 4px;
}

.education-period {
    color: #7f8c8d;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.education-details p {
    margin: 6px 0;
    color: #555;
    font-size: 0.95em;
}

.research-experience {
    margin: 24px 0;
}

.research-experience h4 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.1em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.research-experience p {
    color: #555;
    margin: 8px 0;
    font-size: 0.95em;
}

.research-experience ul {
    margin: 12px 0 24px 24px;
    color: #555;
}

.research-experience li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.expertise-item {
    background: #f9fafb;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    border-color: #3498db;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.15);
    transform: translateY(-4px);
}

.expertise-item strong {
    color: #2c3e50;
    font-size: 1.05em;
    display: block;
    margin-bottom: 10px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.expertise-item p {
    color: #555;
    font-size: 0.95em;
    margin: 0;
}

.hidden {
    display: none;
}

.active {
    display: block;
}

/* Specific Element Styling */
h1, h2, h3 {
    color: #2c3e50;
    margin-top: 0;
}

p {
    margin-bottom: 1em;
}

.content-section h2 a {
    color: inherit;
    text-decoration: none;
}

.content-section h2 a:hover {
    color: #3498db;
}

.research-section-heading {
    display: inline-block;
    padding: 10px 16px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fbff 0%, #e9f3fb 100%);
    border: 1px solid #d8e8f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.research-section-heading a {
    display: inline-block;
    position: relative;
    padding-left: 14px;
    text-decoration: none;
}

.research-section-heading a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    border-radius: 999px;
    background: #3498db;
}

.research-pop-title {
    display: inline-block;
    margin-bottom: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f4ff 0%, #d9ecff 100%);
    border: 1px solid #bfdcf7;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.2);
    letter-spacing: 0.2px;
}

.research-pop-intro {
    margin: 8px 0 20px;
    padding: 12px 16px;
    border-left: 5px solid #3498db;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fcff 0%, #eef7ff 100%);
    color: #1f3c56;
    font-size: 1.06em;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* Media Coverage Section */
.media-coverage-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0 20px;
}

.media-item {
    padding: 14px 16px;
    border-left: 4px solid #3498db;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9fcfe 0%, #eef6fc 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.media-item h4 {
    margin: 0 0 6px;
    font-size: 0.98em;
    color: #2c3e50;
}

.media-item h4 a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.media-item h4 a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.media-item .media-meta {
    margin: 0 0 8px;
    font-size: 0.85em;
    color: #7f8c8d;
    font-style: italic;
}

.media-item p {
    margin: 0;
    font-size: 0.95em;
    color: #566573;
    line-height: 1.5;
}

.back-to-research {
    display: inline-block;
    margin-bottom: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.back-to-research:hover {
    color: #2980b9;
}

/* New styling for the research links list */
.nav-links-list {
    list-style-type: none; /* Removes bullet points */
    padding: 0;
    margin: 10px 0 0 0;
    padding-left: 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.nav-links-list li {
    margin-bottom: 8px;
}

.nav-links-list li a {
    display: block; /* Makes the entire link a clickable block */
    background: linear-gradient(135deg, #34495e 0%, #2f4359 100%);
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.98em; /* Increased font size */
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.nav-links-list li a:hover {
    background-color: #3498db;
    transform: translateY(-2px) translateX(2px); /* Subtle animation on hover */
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.16);
}

/* Styling for the About Me links container */
.about-links {
    margin-top: 10px;
    display: flex;
    gap: 15px; /* Adds space between the buttons */
}

/* Base styling for the buttons */
.cv-link,
.github-link {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Specific button colors and hover effects */
.cv-link {
    background-color: #3498db; /* A nice blue color */
    color: #fff;
}

.cv-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.github-link {
    background-color: #2c3e50; /* A dark grey color */
    color: #fff;
}

.github-link:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

/* Styling for the header with logos */
/* New styling for the logo header inside the sidebar */
.logo-header {
    text-align: center;
    padding-bottom: 5px;

}

.logo {
    height: 38px; /* A smaller height to fit the sidebar */
    width: auto; /* Maintain aspect ratio */
    margin: 0 10px; /* Adjust spacing between logos */
}

/* Styling for the contact section in the sidebar */
.contact-section {
    margin-top: auto;
    padding: 16px 14px 12px;
    margin-top: 18px;
    border-top: 0;
    width: 100%; /* Ensure the section takes full width of its parent */
    min-width: 100%;
    align-self: stretch;
    box-sizing: border-box; /* To prevent padding from overflowing the width */
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 20px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-section.is-active {
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.16), rgba(255, 255, 255, 0.03));
    border-color: rgba(52, 152, 219, 0.55);
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.12), 0 12px 28px rgba(0,0,0,0.16);
    transform: translateY(-2px);
}

.contact-section.is-active h4 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.55);
}

.contact-section.is-active .location-text {
    background: rgba(52, 152, 219, 0.22);
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.25), 0 0 18px rgba(52, 152, 219, 0.15);
}

.contact-section.is-active .contact-logos img {
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.35));
}

.contact-section h4 {
    color: #f5f9f7;
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.05em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-logos {
    display: flex;
    justify-content: center; /* Center the logos horizontally */
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%; /* Explicitly set this to ensure centering works */
    margin-bottom: 10px;
}

.contact-logos img {
    height: 32px;
    width: auto;
    margin-bottom: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-logos img:hover {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.45));
}

.site-footer {
    padding: 30px;
    text-align: center;
}

.site-footer .contact-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.location-text {
    color: #ecf0f1; /* A light grey color */
    text-align: center;
    font-size: 0.88em;
    margin-top: 0;
    margin-bottom: 18px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.location-text a {
    color: inherit;
    text-decoration: none;
}

.location-text a:hover {
    text-decoration: underline;
}

.portfolio-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image a perfect circle */
    object-fit: cover; /* Ensures the image fills the space without distortion */
    border: 3px solid #3498db;
    margin-top: 15px;
    margin-bottom: 15px;
    display: block; /* Centers the image on its own line */
    margin-left: auto;
    margin-right: auto;
}


/* ============================================ */
/* LAPTOP / SMALL DESKTOP RESPONSIVENESS */
/* ============================================ */

@media (max-width: 1280px) {
    .nav-sidebar {
        width: 220px;
        padding: 24px 16px;
    }

    .content-area {
        margin-left: 250px;
        padding: 32px 24px;
    }

    .content-section {
        width: 100%;
    }

    .nav-title {
        font-size: 1.75em;
    }

    .nav-subtitle {
        font-size: 1.05em;
    }

    .portfolio-photo {
        width: 135px;
        height: 135px;
    }

    .research-card-grid,
    .hobbies-preview-grid,
    .hobby-cards-grid {
        gap: 14px;
    }

    .research-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .hobbies-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .manual-slider--compact .slider-track img {
        width: 200px;
        height: 135px;
    }

    .manual-slider--large .slider-track img {
        width: 225px;
        height: 155px;
    }
}


/* ============================================ */
/* MOBILE RESPONSIVENESS - TABLET & SMALL DEVICES */
/* ============================================ */

@media (max-width: 768px) {
    /* Adjust sidebar for tablets */
    .nav-sidebar {
        width: 200px;
        padding: 20px 15px;
        position: fixed;
        height: 100vh;
        z-index: 100;
    }

    /* Reduce sidebar width impact on content */
    .content-area {
        margin-left: 200px;
        padding: 30px 20px;
    }

    .nav-title {
        font-size: 1.5em;
    }

    .nav-subtitle {
        font-size: 0.95em;
    }

    .portfolio-photo {
        width: 120px;
        height: 120px;
    }

    /* Adjust content section width */
    .content-section {
        width: 100%;
    }

    /* Stack grids on smaller screens */
    .research-card-grid {
        grid-template-columns: 1fr;
    }

    .hobbies-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hobby-cards-grid {
        grid-template-columns: 1fr;
    }

    .education-timeline {
        display: block;
    }

    /* Reduce heading sizes */
    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }

    /* Adjust button sizes */
    .cv-link,
    .github-link,
    .research-cta-link {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    /* Adjust slider for tablets */
    .manual-slider--compact .slider-track img {
        width: 180px;
        height: 120px;
    }

    .manual-slider--large .slider-track img {
        width: 200px;
        height: 140px;
    }

    /* Research pills wrap better */
    .research-pill-row {
        gap: 8px;
    }

    .research-pill {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}

/* ============================================ */
/* MOBILE RESPONSIVENESS - SMARTPHONES */
/* ============================================ */

@media (max-width: 480px) {
    /* Convert sidebar to top navigation */
    .main-container {
        flex-direction: column;
    }

    .nav-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 20px;
        overflow-y: visible;
        max-height: none;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Content area takes full width */
    .content-area {
        margin-left: 0;
        padding: 20px 15px;
        width: 100%;
    }

    /* Responsive title */
    .nav-title {
        font-size: 1.3em;
        margin-bottom: 8px;
    }

    .nav-subtitle {
        font-size: 0.85em;
        margin-bottom: 15px;
    }

    /* Make portfolio photo smaller */
    .portfolio-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    /* Logo header on mobile */
    .logo-header {
        gap: 10px;
        margin-bottom: 15px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    /* Navigation links smaller on mobile */
    .nav-link {
        font-size: 0.9em;
        padding: 8px 12px;
        margin-top: 8px;
    }

    .sub-nav-link {
        font-size: 0.75em;
        padding: 6px 8px;
    }

    /* Adjust content section */
    .content-section {
        width: 100%;
        margin-bottom: 40px;
    }

    /* Responsive headings */
    h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 1.1em;
    }

    h4 {
        font-size: 1em;
    }

    /* Full-width cards */
    .research-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hobbies-preview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hobby-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Responsive sliders */
    .manual-slider--compact .slider-track img {
        width: 150px;
        height: 100px;
    }

    .manual-slider--large .slider-track img {
        width: 160px;
        height: 110px;
    }

    .manual-slider {
        gap: 5px;
    }

    .slider-button {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    /* About links stack on mobile */
    .about-links {
        flex-direction: column;
        gap: 10px;
    }

    .cv-link,
    .github-link {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
    }

    .research-cta-link {
        display: inline-block;
        padding: 10px 15px;
        font-size: 0.9em;
    }

    /* Photo gallery responsive */
    .hobbies-full-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    /* Contact section on mobile */
    .contact-section h4 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .location-text {
        font-size: 0.9em;
    }

    .contact-logos {
        gap: 8px;
    }

    .contact-logos a img {
        width: 28px;
        height: 28px;
    }

    /* Research pills responsive */
    .research-pill-row {
        gap: 6px;
    }

    .research-pill {
        font-size: 0.8em;
        padding: 5px 8px;
    }

    /* Media coverage items */
    .media-item {
        padding: 12px 14px;
    }

    .media-item h4 {
        font-size: 0.9em;
    }

    .media-item p {
        font-size: 0.85em;
    }

    /* Reduce section spacing on mobile */
    .manual-slider--compact {
        margin: 20px 0;
    }

    .manual-slider--large {
        margin: 20px 0;
    }

    /* Better text readability */
    p {
        font-size: 0.95em;
    }

    /* List items on mobile */
    .cv-list {
        padding-left: 15px;
        font-size: 0.9em;
    }

    .cv-list li {
        margin-bottom: 6px;
    }

    /* Education timeline mobile */
    .education-timeline {
        display: block;
    }

    .education-item {
        margin-bottom: 15px;
    }
}

/* Hobby Cards Grid */
.hobby-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    margin-top: 30px;
}

.hobby-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.hobby-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.hobby-card h3 {
    color: #2c3e50;
    margin: 10px 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.hobby-card p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95em;
}

/* Gallery slider styling for hobbies */
.manual-slider--gallery {
    margin-top: 30px;
    margin-bottom: 40px;
}

.manual-slider--gallery .slider-viewport {
    height: 320px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7f9fb 0%, #f0f3f7 100%);
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.manual-slider--gallery .slider-viewport::-webkit-scrollbar {
    display: none;
}

.manual-slider--gallery .slider-track {
    display: flex;
    gap: 15px;
    width: max-content;
    align-items: stretch;
}

.manual-slider--gallery .slider-track img {
    flex: 0 0 auto;
    width: 260px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    cursor: pointer;
}

.manual-slider--gallery .slider-track img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

/* Hobbies Photo Grid - 20+ images displayed at once with scrolling */
.hobbies-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0 40px;
    overflow-y: auto;
    max-height: 600px;
    padding: 10px;
    background: linear-gradient(135deg, #f7f9fb 0%, #f0f3f7 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hobbies-photo-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hobbies-photo-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.2);
}

/* Hobbies Preview on Landing Page */
.hobbies-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0 30px;
}

.hobby-preview-card {
    background: linear-gradient(135deg, #f5f9ff 0%, #f0f5fb 100%);
    border: 1px solid #d8e8f5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hobby-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

.hobby-preview-icon {
    font-size: 2.2em;
    margin-bottom: 12px;
    display: block;
}

.hobby-preview-card h4 {
    color: #2c3e50;
    margin: 10px 0 8px;
    font-size: 1.2em;
    font-weight: 600;
}

.hobby-preview-card p {
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

/* Full Hobbies Gallery on hobbies.html page */
.hobbies-full-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 30px 0 40px;
    overflow-y: auto;
    max-height: 800px;
    padding: 15px;
    background: linear-gradient(135deg, #f7f9fb 0%, #f0f3f7 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hobbies-full-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hobbies-full-gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.25);
}

.profile-pic {
    width: 600px;
    height: 500px;
    /* border-radius: 50%; Makes the image a perfect circle */
    object-fit: cover; /* Ensures the image fills the space without distortion */
    border: 3px solid #3498db;
    margin-top: 15px;
    margin-bottom: 15px;
    display: block; /* Centers the image on its own line */
    margin-left: auto;
    margin-right: auto;
}

