/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Fixes horizontal scrolling */
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-navy: #002366;
    --accent-gold: #DAA520;
    --bg-light: #F4F6F9; 
    --text-dark: #333333;
    --text-light: #FFFFFF;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--primary-navy);
    width: 100%;
    padding: 10px 0;
    position: relative; /* Required for mobile menu positioning */
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 50px;
    width: auto;
}

/* Desktop Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: 0.3s;
    font-weight: 500;
}

nav a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
}

/* Main Layout & Hero Section */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

#hero {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--text-light); 
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* PREVENTS THE IMAGE FROM SQUISHING */
    border: 4px solid var(--accent-gold);
}

.details h1 { color: var(--primary-navy); margin-bottom: 5px; }
.title { font-size: 1.1rem; color: #555; font-weight: bold; }
.institute { color: #777; margin-bottom: 15px; }
hr { border: 0; height: 1px; background: #ddd; margin: 20px 0; }
.research-interest { margin-bottom: 20px; font-size: 1.1rem; }

.scholar-link {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--text-light);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.scholar-link:hover { background-color: #b8860b; }

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

#contact h3 { color: var(--accent-gold); margin-bottom: 10px; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 15px;
    font-size: 0.9rem;
}

/* === MOBILE MEDIA QUERY === */
@media (max-width: 850px) {
    .menu-toggle {
        display: block; /* hamburger button */
    }

    /* Transforming nav into a dropdown menu */
    nav {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%; /* Places it right below the header */
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

    nav.active {
        display: block; /* Shown when 'active' class is added by JS */
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        display: block; /* Makes the whole row clickable */
        padding: 15px 20px;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
    }

    /* Stack the Hero Section */
    #hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}

/*PROFILE*/

.pt {
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

/* Enhanced Card Style */
.ic {
    background-color: var(--text-light); 
    padding: 30px; 
    margin-bottom: 30px;
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    border-left: 6px solid var(--primary-navy); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.ic:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
}

.ic h2 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}


.ig {
    display: grid;
    grid-template-columns: 150px 1fr; 
    gap: 15px;
    align-items: start;
}

.il {
    font-weight: bold;
    color: var(--primary-navy);
}

.iv {
    color: #444;
}
/* --------------------------------------------------- */

/* Timeline / List Styles */
.tl {
    list-style: none;
    padding: 0;
}

.tl li {
    padding: 15px 10px; 
    border-bottom: 1px solid #eee; 
    display: flex;
    justify-content: space-between; 
    transition: all 0.2s ease; 
    border-radius: 6px;
}

.tl li:last-child {
    border-bottom: none;
}

.tl li:hover {
    background-color: #f8f9fa; 
    padding-left: 15px; 
}

.tl .yr {
    color: var(--accent-gold);
    font-weight: bold;
}

/* Mobile Responsiveness for Profile Grid */
@media (max-width: 768px) {
    .ig {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .il {
        margin-top: 10px;
    }
    .tl li {
        flex-direction: column;
    }
}
/*Projects.html*/
/* === PROJECTS PAGE STYLES === */
.pl {
    list-style: none;
    padding: 0;
}

.pl li {
    padding: 20px 20px 20px 40px; 
    border-bottom: 1px solid #eee;
    position: relative;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

/* Custom gold bullet point */
.pl li::before {
    content: "•";
    color: var(--accent-gold);
    font-size: 2rem;
    position: absolute;
    left: 15px;
    top: 12px;
    line-height: 1;
}

.pl li:last-child {
    border-bottom: none;
}

/* Hover effect */
.pl li:hover {
    background-color: #f8f9fa;
}


.pl-title {
    display: block;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Styling the secondary information (Funding/Duration) */
.pl-meta {
    display: block;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}


/* === AWARDS PAGE STYLES === */
.al {
    list-style: none; /* Removes default browser numbers */
    padding: 0;
    counter-reset: award-counter; /* Starts a custom numbering sequence */
}

.al li {
    padding: 15px 15px 15px 50px; /* Leaves space on the left for the number */
    border-bottom: 1px solid #eee;
    position: relative;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    color: #444;
    line-height: 1.6;
}

/* Custom styling for the numbers */
.al li::before {
    counter-increment: award-counter; /* Increases the number by 1 for each row */
    content: counter(award-counter) "."; /* Displays the number with a period */
    color: var(--accent-gold); /* Colors the number gold */
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    left: 15px; /* Positions the number neatly on the left edge */
    top: 15px;
}

.al li:last-child {
    border-bottom: none;
}

/* Hover effect to match other pages */
.al li:hover {
    background-color: #f8f9fa;
}



/* === RESEARCH DASHBOARD TABS === */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap; /* Ensures buttons wrap cleanly on mobile viewports */
}

.tab-btn {
    background-color: var(--text-light);
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: rgba(0, 35, 102, 0.05);
}

.tab-btn.active {
    background-color: var(--primary-navy);
    color: var(--text-light);
    border-color: var(--primary-navy);
    box-shadow: 0 4px 10px rgba(0, 35, 102, 0.2);
}

/* === DYNAMIC PUBLICATION LINK STYLES === */
.paper-link {
    color: #0044cc; /* Rich professional blue for readability */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.paper-link:hover {
    color: var(--accent-gold);
    text-decoration: underline; /* Clear visual feedback on hover */
}



/* THESIS */


/* === STUDENT DASHBOARD CARD STYLES === */
.sc {
    background-color: var(--text-light);
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 4px solid var(--primary-navy);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc:hover {
    transform: translateX(4px); /* Clean, modern sideways slide action on focus */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-name {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.sc-year {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 0.95rem;
    background-color: rgba(218, 165, 32, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
}

.sc-title {
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
}

.sc-meta {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    background-color: var(--bg-light);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-gold);
}