@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --card-bg: #161b22;
    --border-color: #30363d;
    --hover-color: #8b80f8;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0d1117, #1b232e, #0d1117);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--bg-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 30px;
}

.navbar nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: var(--secondary-color);
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2em;
}

.nav-icons i {
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-icons i:hover {
    color: var(--secondary-color);
}

/* Summary links at the Professional summary */
.summary-link {
    font-size: 0.9em; /* Makes the link slightly smaller than the main text */
    text-decoration: none; /* Removes the underline */
    color: #9999FF; /* Use a lighter, subtle version of your primary color */
    margin-left: 3px;
    font-weight: normal; /* Ensures the link text is not bold */
}

.summary-link:hover {
    text-decoration: underline; /* Add underline on hover for accessibility */
}


/* Research Interest */
.research-interests-container {
    margin-top: 5px; /* Space above the list */
    padding: 0px 20px;
    border-left: 5px solid var(--primary-color); /* Adds a subtle color accent */
    background-color: #1a1a2e; /* Slightly lighter background than the page */
    border-radius: 5px;
}

.interests-heading {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px dashed #333; /* Separates heading from list items */
    padding-bottom: 5px;
}

.interests-list {
    list-style: none; /* Removes default bullet points */
    padding-left: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.interests-list li {
    color: var(--text-color-light);
    /* Space below each item */
    margin-bottom: 5px; 
}

.interests-list i {
    /* Styles the icons */
    color: #FFFFFF;
    margin-right: 8px;
    width: 15px; /* Ensures all icons align */
    text-align: center;
}
/* New styles for education page */
/* Special styling for the online certifications card */
/* --- Online Course Specific Styling --- */

/* Style for the container list */
.styled-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    line-height: 2.2; /* Add space between items */
}

/* Style for the source initials (C or e) */
.course-source {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%; /* Makes it a circle */
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
    color: white;
}

/* Specific color for Coursera */
.coursera-icon {
    background-color: #0056D2; /* Coursera's blue */
}

/* Specific color for edX */
.edx-icon {
    background-color: #313131; /* edX's dark color */
    color: #FFFFFF;
}

/* Bold the course name itself */
.styled-list li strong {
    font-weight: bold;
    margin-right: 5px;
}
/* --- FIX 1: Ensure all content is vertically centered --- */
.styled-list li {
    display: flex; /* Use flexbox to align children */
    align-items: center; /* Center items vertically */
    margin-bottom: 10px; /* Space between list items */
}

/* --- FIX 2: Ensure the course text and link wrap together cleanly --- */
.course-details {
    /* Allows the text and link to take up the remaining space */
    flex-grow: 1; 
    
    /* Important for subtle visual alignment */
    line-height: 1.4; 
}

/* --- FIX 3: Style the Certification Link --- */
.certification-link {
    /* Makes the link text subtle and distinct */
    font-size: 0.9em; 
    color: #9999FF; /* Example color, use your preference */
    text-decoration: none; 
    margin-left: 5px; /* Space after the course name */
    
    /* Prevents the entire link phrase from wrapping unnecessarily */
    white-space: nowrap; 
}

.certification-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    display: flex;
    gap: 40px;
    padding: 15px 0;
    align-items: flex-start;
}

/* Profile Card */
.profile-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 250px;
    flex-basis: 250px; /* New: Locks the sidebar's width */
    position: sticky; /* Keep the sticky behavior */
    top: 100px;
    align-self: flex-start;
}

.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 5px;
    box-shadow: 0 0 0 5px rgba(108, 92, 231, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-bg);
}

.rocket-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    border: 3px solid var(--card-bg);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.profile-card .name {
    font-size: 1.5em;
    font-weight: 700;
    margin: 10px 0 5px;
    line-height: 1.1;
    text-transform: capitalize;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.profile-card .pronouns {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.profile-card .title {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-card .affiliation {
    font-size: 1em;
    color: #b0b0b0;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-links a {
    background-color: var(--bg-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background-color: var(--hover-color);
    color: white;
    transform: translateY(-3px);
}

/* Info Sections */
.info-sections {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-sections section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.section-header i {
    font-size: 2em;
    color: var(--primary-color);
    margin-right: 15px;
    background-color: #2a2f37;
    padding: 10px;
    border-radius: 10px;
}

.section-header h2 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 600;
}

.summary-section p {
    margin-bottom: 25px;
    font-size: 1.1em;
    color: #c0c0c0;
    text-align: justify;
    /* Add this line */
}



.download-cv {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.download-cv:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.education-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.education-card {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.education-card i {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    background-color: #2a2f37;
    padding: 12px;
    border-radius: 50%;
}

.education-card h3 {
    font-size: 1.3em;
    margin: 0 0 8px;
    font-weight: 600;
    color: var(--text-color);
}

.education-card p {
    font-size: 0.95em;
    color: #b0b0b0;
    margin: 0;
}

/* New sections */
.experience-list,
.projects-section p {
    font-size: 1.1em;
    color: #c0c0c0;
}

.experience-list h3 {
    font-size: 1.3em;
    margin: 0 0 5px;
    color: var(--primary-color);
}

.experience-list p {
    font-size: 0.9em;
    color: #b0b0b0;
    margin: 0 0 10px;
}

.experience-list ul {
    margin: 0;
    padding-left: 20px;
}

.experience-list li {
    margin-bottom: 5px;
}

.experience-list li {
    text-align: justify;
}

/* Styling for the new project section */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item h3 {
    color: var(--primary-color);
    margin: 0 0 5px;
}

.project-item p {
    margin: 0;
    color: #c0c0c0;
    text-align: justify;
}

/* Styling for the new research sections */
.research-section {
    display: flex;
    flex-direction: column;
    gap: 05px;
}

.research-item h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.research-item .conference-info {
    font-size: 1em;
    color: #b0b0b0;
    margin: 5px 0;
}

.abstract-content h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
}

.abstract-content p {
    font-size: 1em;
    color: #c0c0c0;
    line-height: 1.6;
    text-align: justify;
}

.media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.presentation-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.presentation-image:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .media-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Image Box Styles */
.image-box-container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-box {
    position: relative;
}

.image-box-img {
    width: 100%;
    height: auto;
    display: none; /* Hides all images by default */
}

.image-box-img.active-img {
    display: block; /* Shows only the active image */
}

.image-box-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.prev-img, .next-img {
    cursor: pointer;
    font-size: 2em;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 50%;
    user-select: none;
    transition: background-color 0.3s ease;
}

.prev-img:hover, .next-img:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* On hover, add a black background with a little opacity */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* New Expertise Page Styles */
.expertise-category {
    margin-bottom: 30px;
}

.expertise-category h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.expertise-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px; /* Adds space between each skill */
}

.skill-name {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
    display: block;
}

.project-description {
    margin-top: 20px;
    color: #c0c0c0;
    font-size: 1em;
}

.project-description h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.project-description p {
    margin: 5px 0;
    text-align: justify;
}

.profile-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

/* --- Responsive Design (Fixed for Universal Toggle) --- */

/* * IMPORTANT: We move the #menu-toggle display: block outside of any media query
* so it is visible by default on ALL screen sizes.
*/

/* * --------------------------------------------------------------------------
* GLOBAL/DESKTOP STYLES: Ensure the hamburger icon is visible next to links.
* --------------------------------------------------------------------------
*/

/* Remove the 'display: none !important' that was in your global/base CSS 
   (or ensure it's removed if it was there). We will control it here: */
#menu-toggle {
    display: block; /* Ensure it is visible always */
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px; /* Space it from the theme toggle icon */
}

/* Ensure the desktop navigation links are visible on large screens */
.navbar nav {
    /* If your primary horizontal navigation is using this, 
       ensure it is visible outside of the media queries. */
    display: flex; 
}


@media (max-width: 992px) {
    /* 1. LAYOUT ADJUSTMENTS for Tablet/Laptop */
    .hero-section {
        flex-direction: column;
        align-items: center;
    }

    .profile-card {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
    }

    .info-sections {
        width: 100%;
    }

    /* 2. NAVIGATION ADJUSTMENTS: 
       On small screens, we hide the PRIMARY horizontal menu 
       so the hamburger button toggles the vertical '.navbar-links' menu. */
    
    .navbar nav {
        display: none; /* HIDE the default desktop menu (ul/li list) */
    }

    /* We don't need to explicitly show #menu-toggle here since it's now global */
    
    /* Ensure the logo and icons are spaced correctly */
    .navbar .container {
        justify-content: space-between;
        flex-direction: row; 
        flex-wrap: nowrap;
    }

    /* MOBILE MENU STYLES: Define the hidden vertical menu */
    .navbar-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 60px; 
        right: 0;
        width: 100%;
        background-color: var(--card-bg); 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        z-index: 1001; /* Z-index increased for better reliability */
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }

    .navbar-links.active {
        display: flex; /* Shown when JS toggles the 'active' class */
    }
    
    .navbar-links li {
        text-align: center;
        width: 100%;
        margin: 0;
        padding: 12px 0;
        border-bottom: 1px solid #333;
    }

    .navbar-links li:last-child {
        border-bottom: none;
    }
}

/* ---------------------------------------------------- */

/* Styles that apply from 768px down (small phones) */
@media (max-width: 768px) {
    /* Layout adjustments */
    .education-cards {
        flex-direction: column;
        align-items: center;
    }

    .education-card {
        width: 90%;
        max-width: 350px;
    }
    
    .section-header h2 {
        font-size: 1.5em;
    }

    .profile-card .name {
        font-size: 2.5em;
    }
}

/* ---------------------------------------------------- */

/* Styles that apply from 480px down (very small phones) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    /* ... other 480px styles ... */
    .profile-card {
        padding: 20px;
    }
    /* ... and so on ... */
}

/* ---------------------------------------------------- */
/* --- Enhanced styling for research abstract bullet points --- */
.abstract-content ul {
    list-style: none;                 /* Remove default browser bullets */
    padding-left: 0;                  /* Align neatly with text */
    margin: 15px 0;                   /* Add vertical breathing room */
}

.abstract-content li {
    position: relative;               /* For custom bullet icons */
    padding-left: 28px;               /* Space for the icon */
    margin-bottom: 10px;              /* Space between bullets */
    color: #c0c0c0;                   /* Consistent with abstract text color */
    line-height: 1.6;                 /* Improve readability */
    text-align: justify;
}

.abstract-content li::before {
    content: "\f00c";                 /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);      /* Use site’s accent color */
    font-size: 0.9em;
}

/* Optional: small screen readability improvements */
@media (max-width: 768px) {
    .abstract-content li {
        font-size: 0.95em;
        padding-left: 25px;
        margin-bottom: 8px;
    }
}

/* --- Sub-link beside section titles --- */
.section-sub-link {
    font-size: 0.7em;                     /* Smaller, secondary look */
    color: var(--secondary-color);
    margin-left: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.section-sub-link:hover {
    color: var(--primary-color);
    opacity: 1;
    text-decoration: underline;
}

.my-video {
    width: 700px;
    height: 506px; /* A 16:9 aspect ratio */
}


/*
 * New CSS Style for Secondary Links (Media Coverage, Project Teaser)
 * Makes them look like a compact, purple button without the heavy padding of the primary CV button.
 */
.media-link-button {
    display: inline-flex; /* Use inline-flex to keep it compact and align icon/text */
    align-items: center;
    background-color: var(--secondary-color); /* Use the purple color */
    color: white !important; /* Text color is white */
    padding: 6px 12px; /* Reduced padding for a smaller button */
    margin-top: 15px; /* Add some spacing above the links */
    margin-right: 15px; /* Spacing between multiple buttons */
    border-radius: 8px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Soft shadow */
    font-size: 0.9rem; /* Slightly smaller font size */
}

.media-link-button i {
    margin-left: 8px; /* Space between text and icon */
    font-size: 0.9rem;
}

.media-link-button:hover {
    background-color: #5534A7; /* Slightly darker purple on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Styling for anchor tags (links) specifically within the publication author list */
.publication-author a {
    color: white !important; /* Forces the link text color to match the surrounding white text */
    text-decoration: none; /* Removes the default link underline */
    font-weight: 500; 
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* Hover effect: makes the link clickable and visible upon mouse interaction */
.publication-author a:hover {
    color: var(--secondary-color) !important; /* Changes text to the accent color (purple) on hover */
    text-decoration: underline; /* Adds the underline only when hovered */
}

/* Wrapper to center the video and provide spacing */
.video-wrapper {
    display: flex;        /* Activates flexbox layout */
    justify-content: center; /* Centers items horizontally */
    margin: 20px auto;     /* Adds vertical space */
    padding: 0 10px;       /* Small padding to prevent the video from touching the screen edges on mobile */
}

/* Ensures the iframe is responsive and visually appealing */
.video-wrapper iframe {
    max-width: 100%;       /* Video will shrink on small screens */
    border-radius: 8px;    /* Adds rounded corners to the video player */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Subtle shadow for depth */

}

.doi-link a {
    /* Ensure color is white, overriding any inherited blue link color */
    color: white !important; 
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.doi-link a:hover {
    /* Apply the accent color on hover */
    color: var(--secondary-color) !important; 
    text-decoration: underline;
}
