/* style.css (Maroon & Gold Palette - Modernized) */

/* --- 1. Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

/* --- 2. CSS Variables (New Palette & Fonts) --- */
:root {
    --primary-color: #570036; /* Original Maroon */
    --primary-darker: #3d0026; /* Original Darker Maroon */
    --secondary-color: #fbf9fa; /* Cream Light Canvas */
    --accent-color: #c78c36; /* Original Gold */
    --card-bg: rgba(255, 255, 255, 0.75);
    --border-color: rgba(87, 0, 54, 0.05);
    --text-color: #2a2d34; /* Dark gray */
    --light-text-color: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif; /* Modern geometric heading */
    --font-body: 'Plus Jakarta Sans', sans-serif; /* Clean readable body copy */
    
    /* Input and Component background variables */
    --input-bg: #f7f0f3;
    --input-focus-bg: #ffffff;
    --social-card-bg: linear-gradient(135deg, #fdf4f8 0%, #ffffff 100%);
    
    /* Premium primary-tinted shadows based on original maroon */
    --shadow-light: 0 20px 20px -10px rgba(87, 0, 54, 0.04);
    --shadow-hover: 0 40px 40px -15px rgba(87, 0, 54, 0.06);
}

.dark {
    --secondary-color: #1e0012; /* Rich Dark Maroon Canvas */
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-color: #f0ebed; /* Off-white */
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Dark mode component inputs and gradients */
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-focus-bg: rgba(255, 255, 255, 0.1);
    --social-card-bg: linear-gradient(135deg, rgba(87, 0, 54, 0.2) 0%, rgba(255, 255, 255, 0.03) 100%);
    
    --shadow-light: 0 20px 20px -10px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 40px 40px -15px rgba(0, 0, 0, 0.35);
    --accent-color: #dca146; /* Vibrant Gold */
}

/* --- 3. General Body & Layout Styling --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; 
}
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    background-color: var(--secondary-color);
    font-size: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='30' cy='30' r='3' fill='%23570036' opacity='0.04'/%3E%3Ccircle cx='90' cy='50' r='2' fill='%23570036' opacity='0.03'/%3E%3Ccircle cx='160' cy='30' r='4' fill='%23570036' opacity='0.03'/%3E%3Ccircle cx='50' cy='120' r='3' fill='%23570036' opacity='0.04'/%3E%3Ccircle cx='130' cy='100' r='2.5' fill='%23570036' opacity='0.03'/%3E%3Ccircle cx='170' cy='160' r='3' fill='%23570036' opacity='0.04'/%3E%3Ccircle cx='40' cy='180' r='2' fill='%23570036' opacity='0.03'/%3E%3Ccircle cx='100' cy='170' r='3.5' fill='%23570036' opacity='0.03'/%3E%3Cline x1='30' y1='30' x2='90' y2='50' stroke='%23570036' stroke-width='0.5' opacity='0.03'/%3E%3Cline x1='90' y1='50' x2='160' y2='30' stroke='%23570036' stroke-width='0.5' opacity='0.03'/%3E%3Cline x1='50' y1='120' x2='130' y2='100' stroke='%23570036' stroke-width='0.5' opacity='0.03'/%3E%3Cline x1='130' y1='100' x2='170' y2='160' stroke='%23570036' stroke-width='0.5' opacity='0.03'/%3E%3Cline x1='40' y1='180' x2='100' y2='170' stroke='%23570036' stroke-width='0.5' opacity='0.03'/%3E%3C/svg%3E");
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='30' cy='30' r='3' fill='%23ffffff' opacity='0.02'/%3E%3Ccircle cx='90' cy='50' r='2' fill='%23ffffff' opacity='0.02'/%3E%3Ccircle cx='160' cy='30' r='4' fill='%23ffffff' opacity='0.02'/%3E%3Ccircle cx='50' cy='120' r='3' fill='%23ffffff' opacity='0.02'/%3E%3Ccircle cx='130' cy='100' r='2.5' fill='%23ffffff' opacity='0.02'/%3E%3Ccircle cx='170' cy='160' r='3' fill='%23ffffff' opacity='0.02'/%3E%3Ccircle cx='40' cy='180' r='2' fill='%23ffffff' opacity='0.02'/%3E%3Ccircle cx='100' cy='170' r='3.5' fill='%23ffffff' opacity='0.02'/%3E%3Cline x1='30' y1='30' x2='90' y2='50' stroke='%23ffffff' stroke-width='0.5' opacity='0.02'/%3E%3Cline x1='90' y1='50' x2='160' y2='30' stroke='%23ffffff' stroke-width='0.5' opacity='0.02'/%3E%3Cline x1='50' y1='120' x2='130' y2='100' stroke='%23ffffff' stroke-width='0.5' opacity='0.02'/%3E%3Cline x1='130' y1='100' x2='170' y2='160' stroke='%23ffffff' stroke-width='0.5' opacity='0.02'/%3E%3Cline x1='40' y1='180' x2='100' y2='170' stroke='%23ffffff' stroke-width='0.5' opacity='0.02'/%3E%3C/svg%3E");
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: 80px 0;
}
main > section:nth-of-type(even) {
    background-color: var(--secondary-color);
}
hr.separator { 
    border: 0; 
    height: 1px; 
    background: #dee2e6; 
    margin: 60px 0; 
}

/* --- 4. Typography --- */
h1, h2, h3 { 
    font-family: var(--font-heading); 
    color: var(--primary-color); 
    margin-top: 0; 
    font-weight: 700; 
    letter-spacing: -0.02em; 
}
h1 { 
    font-size: 3.2rem; 
    line-height: 1.25; 
}
h2 { 
    font-size: 2.6rem; 
    text-align: center; 
    margin-bottom: 50px; 
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 15px auto 0 auto;
    border-radius: 2px;
}
.dark h2::after {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}
h2 small {
  font-size: medium;
  font-weight: normal;
  color: #666; /* A lighter gray color */
  margin-left: 8px; /* Adds a little space after the main title */
}
h3 { font-size: 1.6rem; font-weight: 600; }
a { color: var(--accent-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }
strong { font-weight: 600; }

/* --- 5. Header & Navigation Bar (CORRECTED) --- */
/* --- NEW: Dropdown Menu Styles --- */
/* --- Dropdown Menu Styles (Corrected & Complete) --- */
.main-nav li.dropdown {
    position: relative; /* Essential for positioning the submenu */
}

.main-nav li.dropdown > a {
    display: inline-flex; /* Treat link as flex container */
    align-items: center;  /* Vertically align text and arrow */
    gap: 8px;           /* Space between text and arrow */
    position: relative;   /* Keep for dropdown positioning if needed */
    padding-right: 0;     /* Reset padding */
}

.main-nav li.dropdown > a .arrow {
    font-size: 0.7em;       /* Adjust arrow size */
    line-height: 1;      /* Prevent extra line height issues */
    /* No absolute positioning needed */
}

.dropdown-menu {
    display: none;/* Hides the menu by default */
    position: absolute;
    top: 100%; /* Positions below the parent link */
    left: 0; /* Aligns with the left edge of the parent */
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none; /* Remove top border for seamless look */
    border-radius: 0 0 8px 8px; 
    box-shadow: var(--shadow-light);
    min-width: 200px; 
    z-index: 1001; 
    padding: 10px 0;
    list-style: none;
    margin: 0; 
    overflow: hidden;
}

/* This rule makes the menu visible ONLY when hovering the parent LI */
.main-nav li.dropdown:hover > .dropdown-menu {
    display: block; 
}

.dropdown-menu li {
    margin: 0; 
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: none; 
    font-size: 0.9rem;
    letter-spacing: 0;
    white-space: nowrap;
    border-bottom: none; 
}
/* Ensure the main nav underline effect doesn't apply here */
.dropdown-menu li a::after {
   display: none;
}

.dropdown-menu li a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.main-header {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap; /* Keeps name on one line */
    flex-shrink: 0; /* Prevents shrinking */
    text-decoration: none; /* Ensure no underline on the link */
}.main-nav { flex-grow: 1; display: flex; justify-content: flex-end; }
.main-nav > ul { list-style: none; display: flex; margin: 0; padding: 0; align-items: center; }
.main-nav li { margin-left: 20px; display: inline-flex; align-items: center; } /* Reduced margin */
.main-nav a { font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: 0.5px; text-decoration: none; color: var(--text-color); padding-bottom: 8px; position: relative; } /* Reduced font size */
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background-color: var(--primary-color); transition: width 0.3s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.8rem; color: var(--primary-color); }

/* --- 6. Homepage & Page Header Styles --- */
.hero { position: relative; padding: 120px 0; background-image: url('https://source.unsplash.com/random/1600x900/?molecule,network'); background-size: cover; background-position: center; color: var(--light-text-color); }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(60deg, rgba(87, 0, 54, 0.9), rgba(61, 0, 38, 0.9)); z-index: 1; } /* Updated gradient to match maroon */
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; gap: 50px; }
.hero h1, .hero p { color: var(--light-text-color); text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.hero-image { flex: 1; max-width: 280px; }
.hero-image img { width: 100%; border-radius: 50%; border: 6px solid hsla(0,0%,100%,.7); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hero-text { flex: 2; }
.hero-text h1 { margin-bottom: 15px; }
.hero-text .professional-title { display: inline-block; background-color: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 8px 18px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.2); font-family: var(--font-heading); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 20px 0; color: var(--light-text-color); }
.hero-text .research-statement { font-family: var(--font-body); font-size: 1.5rem; font-style: italic; color: hsla(0,0%,100%,.95); border-left: 4px solid var(--accent-color); padding-left: 25px; margin: 25px 0 0 0; }
.page-header { background: linear-gradient(60deg, var(--primary-color), var(--primary-darker)); padding: 70px 0; text-align: center; }
.page-header h1 { font-size: 3rem; margin: 0; color: var(--light-text-color); }
.welcome-message { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 25px; }

/* --- 7. Generic Card & Component Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #a0702b 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    color: var(--light-text-color);
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-light);
    cursor: pointer;
}
.btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(199, 140, 54, 0.5);
    color: var(--light-text-color);
}
.btn:active {
    transform: translateY(-1px) scale(0.98);
}
.pillar-card, .project-card, .course-card, .service-item, .impact-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.3s ease;
}
.pillar-card:hover, .project-card:hover, .course-card:hover, .service-item:hover, .impact-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}
.impact-grid, .pillars-grid, .projects-grid, .courses-grid, .contact-grid, .cv-columns, .collaborator-columns { display: grid; gap: 30px; }
.impact-grid { grid-template-columns: repeat(4, 1fr); }
.pillars-grid { grid-template-columns: repeat(3, 1fr); }
.projects-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
.contact-grid { grid-template-columns: 1fr 1fr; }
.cv-columns { grid-template-columns: repeat(3, 1fr); }
.impact-item { text-align: center; }
.impact-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.course-card .program {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -15px; /* Pulls it up slightly */
    margin-bottom: 15px;
}

.course-card .key-topics {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.course-card .key-topics strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.course-card .key-topics span {
    font-size: 0.9rem;
    color: #6c757d;
}
/* --- 8. Page Specific Styles --- */
.intro-section, .narrative-section, .philosophy-section, .research-overview, .mentorship-section .container, .collaboration-section .container {max-width: 1100px; margin: 0 auto;}
.overview-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.overview-interests { padding-left: 30px; border-left: 2px solid var(--primary-color); }
.interests-list { list-style: none; padding: 0; margin: 0; }
.interests-list li { margin-bottom: 12px; padding-left: 25px; position: relative; font-weight: 600; }
.interests-list li::before { content: "→"; position: absolute; left: 0; color: var(--primary-color); font-weight: 700; }
.project-card .status, .course-card .level { font-size: 0.9rem; font-weight: 600; color: #6c757d; margin-top: -15px; margin-bottom: 15px; }
.project-card .status { display: inline-block; padding: 4px 12px; border-radius: 20px; align-self: flex-start; }
.project-card .status.ongoing { background-color: #d1e7dd; color: #0f5132; }
.project-card .status.completed { background-color: #e2e3e5; color: #41464b; }
.project-card .funding { font-size: 0.9rem; font-weight: 600; color: #495057; margin-top: auto; padding-top: 15px; border-top: 1px solid #dee2e6; }
.impact-item .number { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; color: var(--accent-color); line-height: 1; margin-bottom: 10px; }
.impact-item .label { display: inline-block; padding: 4px 12px; background-color: #e9ecef; border-radius: 20px; font-family: var(--font-heading); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; color: #495057; font-weight: 700; }
.impact-item .description { display: none; }
.publication-list { list-style: none; padding-left: 0; counter-reset: pub-counter; }
.publication-list li { padding-left: 50px; position: relative; padding-bottom: 60px; margin-bottom: 25px; border-bottom: 1px solid rgba(50, 0, 29, 0.04); }
.publication-list li::before { counter-increment: pub-counter; content: counter(pub-counter); position: absolute; left: 0; top: 0; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary-color); opacity: 0.2; }
.publication-list .citation { display: block; }
/* Find and replace this rule */
.publication-list li::after {
    content: 'Published: ' attr(data-year); /* Adds text before the year */
    position: absolute;
    bottom: 25px;            /* Positions it 25px from the very bottom */
    left: 50px;             /* Aligns it with the citation text (respecting the number) */
    
    /* Subtle styling */
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    font-weight: 400;       /* Normal font weight */
    color: #6c757d;         /* A muted gray color */
    
    /* Resetting badge styles */
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.publication-list .journal { font-style: italic; }
.publication-list .journal strong { font-style: normal; font-weight: 700; color: #495057; }
.doi-link { display: inline-block; margin-left: 15px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background-color: #e9ecef; padding: 6px 14px; border-radius: 20px; color: var(--primary-color); }
.doi-link:hover { background-color: var(--primary-color); color: var(--light-text-color); }
.pub-filters { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; display: flex; gap: 20px; align-items: center; margin-bottom: 40px; }
.pub-filters input, .pub-filters select { padding: 12px; border: 1px solid #ced4da; border-radius: 5px; font-size: 1rem; font-family: var(--font-body); }
.pub-filters input { flex-grow: 1; }
.page-nav { border-top: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6; padding: 10px 0; margin-bottom: 50px; }
.page-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 15px; }
.page-nav li{ background-color: #e9ecef; padding: 0; border-radius: 20px; color: var(--primary-color);}
.page-nav a { display: block; padding: 8px 20px; font-weight: 600; color: var(--text-color); border-radius: 20px; transition: all 0.3s ease; }
.page-nav a:hover { background-color: var(--primary-color); color: var(--light-text-color); }
.tab-nav { display: flex; border-bottom: 2px solid #dee2e6; margin-bottom: 30px; }
.tab-btn { padding: 15px 25px; cursor: pointer; border: none; background-color: transparent; font-size: 1.1rem; font-weight: 600; color: #6c757d; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.tab-btn.active, .tab-btn:hover { color: var(--primary-color); }
.tab-btn.active { border-bottom: 3px solid var(--primary-color); }
.tab-pane { display: none; } .tab-pane.active { display: block; }
.service-list, .project-list { list-style: none; padding: 0; margin: 0; }
.service-item, .project-list-item { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 35px; box-shadow: var(--shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 20px; }
.service-item:hover, .project-list-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.service-item .title, .project-title { font-weight: 700; font-size: 1.2rem; display: block; color: var(--primary-color); font-family: var(--font-heading); }
.service-item .details, .project-meta { font-size: 1rem; color: #495057; margin-top: 5px; }
.project-list-item .project-title { text-align: justify; }
/* Add this to style.css for the status badge */
.project-list-item .status {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 10px; /* Space below the badge */
}

.project-list-item .status.ongoing {
    background-color: #d4edda; /* Light Green */
    color: #155724; /* Dark Green */
}
.project-meta .year { font-weight: 600; }
.contact-info-item { margin-bottom: 25px; }
.contact-info-item strong { display: block; color: var(--text-color); font-family: var(--font-heading); margin-bottom: 5px; }
.map-container { border-radius: 12px; overflow: hidden; margin-top: 30px; box-shadow: var(--shadow-light); }
.map-container iframe { width: 100%; height: 350px; border: 0; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    background-color: var(--input-focus-bg);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(199, 140, 54, 0.15);
}
.contact-form textarea {
    resize: none;
    min-height: 150px;
}
.social-card { 
    background: var(--social-card-bg);
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 35px; 
    text-align: center; 
    box-shadow: var(--shadow-light); 
}
.social-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 25px; justify-content: center; }
.social-links a { font-size: 2.5rem; color: var(--primary-color); transition: transform 0.3s ease, color 0.3s ease; }
.social-links a:hover { transform: scale(1.15) translateY(-5px); }
/* Brand colors on hover */
.social-links a[title="LinkedIn"]:hover { color: #0077B5; }
.social-links a[title="Google Scholar"]:hover { color: #4285F4; }
.social-links a[title="ResearchGate"]:hover { color: #00CCBB; }
.social-links a[title="ORCID"]:hover { color: #A6CE39; }
.cv-timeline-section .container { position: relative; }
.cv-timeline-section .container::before { content: ''; position: absolute; width: 4px; background-color: var(--primary-color); opacity: 0.1; top: 120px; bottom: 0; left: 50%; margin-left: -2px; z-index: 0; }
.cv-column { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 35px; 
    box-shadow: var(--shadow-light); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.3s ease;
    position: relative; 
}
.cv-column:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--accent-color);
}
.cv-column::after { content: ''; position: absolute; width: 20px; height: 20px; top: 45px; left: 50%; transform: translateX(-50%); background-color: white; border: 5px solid var(--primary-color); border-radius: 50%; z-index: 2; }
.cv-column h3 { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; }
.cv-column h3 .icon { font-size: 1.5rem; }
.cv-column ul { list-style: none; padding: 0; margin: 0; }
.cv-column li { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e9ecef; }
.cv-column li:last-child { border-bottom: none; }
.cv-column strong { display: block; font-size: 1.1rem; font-family: var(--font-heading); color: var(--text-color); font-weight: 600; }
.cv-column span { font-size: 1rem; color: #6c757d; }
.collaborator-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; padding: 0 20px; }
.collaborator-columns::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background-color: #dee2e6; }
.collaborators-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.collaborator-card { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    padding: 25px; 
    box-shadow: var(--shadow-light); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.3s ease;
    text-align: center; 
}
.collaborator-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--accent-color);
}
.collaborator-photo img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 4px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.collaborator-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--primary-color); }
.collaborator-affiliation { font-size: 0.9rem; color: #6c757d; margin: 5px 0 15px 0; }
.collaborator-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }

/* --- 9. Footer --- */
footer { background: linear-gradient(60deg, var(--primary-darker), #29001a); color: rgba(255, 255, 255, 0.85); padding: 50px 0; text-align: center; } /* Updated gradient */
footer a { color: #fcedc2   ; font-weight: 400; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); } /* This yellow works well with maroon */
footer a:hover {color: #f6edd2 ; font-weight: 600;text-decoration-color: var(--accent-color); }

/* --- 10. Animation on Scroll --- */
.fade-in-section, .fade-in-item { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.visible, .fade-in-item.visible { opacity: 1; transform: translateY(0); }

/* --- NEW: Login Page Styles --- */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.login-form h1 {
    margin-bottom: 30px;
}
.login-form .form-group {
    text-align: left;
}
.login-form .btn {
    width: 100%;
    margin-top: 10px;
}
#login-error {
    color: #dc3545; /* Red */
    font-weight: 600;
    margin-top: 15px;
    display: none; /* Hidden by default */
}

/* --- PharmDEX Shining Nav Link --- */
.pharmdex-link {
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    position: relative;
    text-transform: none !important;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
}

.pdx-pharm {
    color: var(--primary-color);
}

.pdx-dex {
    background: linear-gradient(135deg, var(--accent-color), #f5d590);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--accent-color), #e6a530);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(199, 140, 54, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

.new-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerBadge 2s ease-in-out infinite;
}

@keyframes shimmerBadge {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* --- 11. Mobile Styles --- */
@media (max-width: 992px) {
    /* Activate Hamburger Menu & Adjust Header */
    .main-header .container {
        flex-wrap: wrap; /* Allows nav to wrap below */
    }
    .logo {
        font-size: 1.3rem; /* Slightly smaller logo on tablets */
    }
    .menu-toggle { 
        display: block; /* Show hamburger */
    }
    .main-nav { 
        flex-basis: 100%; /* Nav takes full width on its own line */
        order: 3; /* Position nav below logo/button */
        justify-content: center; /* Center the nav items container */
    }
    .main-nav ul { 
        display: none; /* Hide nav links by default */
        flex-direction: column; 
        width: 100%; 
        text-align: center; 
        margin-top: 15px; 
    }
    .main-nav ul.active { 
        display: flex; /* Show nav links when toggled */
    }
    .main-nav li { 
        margin: 10px 0; /* Stack items vertically */
        width: 100%; 
    }

    /* Stack Grids */
    .impact-grid, .pillars-grid, .projects-grid, .courses-grid, .cv-columns, .collaborator-columns, .overview-grid, .contact-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Adjustments for specific layouts */
    .collaborator-columns::before { display: none; } /* Hide vertical line */
    .overview-interests { padding-left: 0; border-left: none; margin-top: 30px; }
     .cv-timeline-section .container::before { display: none; } /* Hide timeline line */
    .cv-column { margin-left: 0; }
    .cv-column::after { display: none; } /* Hide timeline dots */
    .collaborators-grid { grid-template-columns: repeat(2, 1fr); } /* Keep 2 columns for collaborators if possible */

}
@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    .page-header h1 { font-size: 2.2rem; }
    .hero .container { flex-direction: column; text-align: center; }
    .logo { font-size: 1.2rem; }
    .main-header .container { flex-wrap: wrap; }
    .menu-toggle { display: block; }
    .main-nav { flex-basis: 100%; order: 3; }
    .main-nav ul { display: none; flex-direction: column; width: 100%; text-align: center; margin-top: 15px; }
    .main-nav ul.active { display: flex; }
    .main-nav li { margin: 10px 0; width: 100%; }
    .overview-grid, .contact-grid, .impact-grid { grid-template-columns: 1fr; }
    .overview-interests { padding-left: 0; border-left: none; margin-top: 30px; }
    .pub-filters { flex-direction: column; align-items: stretch; }
    .tab-nav { flex-direction: column; border-bottom: none; }
    .tab-btn { text-align: left; border-bottom: 1px solid #dee2e6; }
    .tab-btn.active { border-bottom: 3px solid var(--primary-color); }
    .page-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .page-nav ul { justify-content: flex-start; flex-wrap: nowrap; }
    .cv-timeline-section .container::before { left: 31px; }
    .cv-column { margin-left: 40px; }
    .cv-column::after { left: -25px; top: 48px; transform: translateX(0); }
    .collaborators-grid { grid-template-columns: 1fr; }
}

/* --- Theme Toggle & Dark Mode Overrides --- */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}
.theme-toggle-btn:hover {
    background-color: var(--border-color);
    transform: rotate(15deg) scale(1.08);
}
.dark .theme-toggle-btn {
    color: var(--accent-color);
    border-color: var(--border-color);
}
.dark .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dark Mode Typography and Overrides */
.dark h1, .dark h2, .dark h3 {
    color: var(--text-color);
}
.dark .logo {
    color: var(--text-color);
}
.dark .main-header {
    background-color: rgba(30, 0, 18, 0.65); /* Blurred dark maroon */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dark .pdx-pharm {
    color: var(--text-color);
}
.dark .tab-btn.active, .dark .tab-btn:hover {
    color: var(--accent-color);
}
.dark .welcome-message {
    color: var(--accent-color);
}
.dark .interests-list li::before, .dark .publication-list li::before {
    color: var(--accent-color);
}
.dark .social-links a, .dark .collaborator-name {
    color: var(--accent-color);
}
.dark .service-item .title, .dark .project-title {
    color: var(--accent-color);
}
.dark .main-nav a::after {
    background-color: var(--accent-color);
}
.dark hr.separator {
    background: var(--border-color);
}
.dark h2 small {
    color: #a0a0a0;
}
.dark .cv-timeline-section .container::before {
    background-color: var(--accent-color);
    opacity: 0.2;
}
.dark .cv-column::after {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
}
.dark .cv-column h3 {
    border-bottom: 2px solid var(--border-color);
}
.dark .page-nav li {
    background-color: var(--card-bg);
    color: var(--text-color);
}
.dark .page-nav a {
    color: var(--text-color);
}
.dark .page-nav a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}
.dark .collaborator-photo img, .dark .hero-image img {
    filter: brightness(0.9);
}
.dark .pub-filters input, .dark .pub-filters select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* --- 19. PharmDEX Announcement Section --- */
.pharmdex-section {
    background-color: var(--secondary-color);
}
.pharmdex-promo-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.pharmdex-promo-text {
    flex: 1.2;
}
.pharmdex-logo-display {
    margin-bottom: 24px;
}
.pharmdex-brand-logo {
    height: 54px;
    width: auto;
    display: block;
}
.light-only {
    display: block;
}
.dark-only {
    display: none;
}
.dark .light-only {
    display: none;
}
.dark .dark-only {
    display: block;
}
.pharmdex-promo-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
}
.pharmdex-promo-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.pharmdex-promo-text p {
    margin-bottom: 20px;
    text-align: justify;
}
.pharmdex-promo-actions {
    margin-top: 30px;
}
.btn-pharmdex {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    color: var(--light-text-color) !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(87, 0, 54, 0.2);
    box-shadow: 0 10px 20px -10px rgba(87, 0, 54, 0.3);
}
.btn-pharmdex:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(87, 0, 54, 0.4);
    filter: brightness(1.1);
}

/* Chem Structure Mockup Card */
.chem-structure-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chem-structure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card-header-mock {
    background: rgba(87, 0, 54, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}
.dark .card-header-mock {
    background: rgba(255, 255, 255, 0.05);
}
.dot-mock {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-mock.red { background-color: #ff5f56; }
.dot-mock.yellow { background-color: #ffbd2e; }
.dot-mock.green { background-color: #27c93f; }
.title-mock {
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-color);
    opacity: 0.8;
}
.card-body-mock {
    padding: 24px;
}
.mock-input-row {
    margin-bottom: 20px;
}
.mock-label {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
    display: block;
    margin-bottom: 6px;
}
.mock-input-code {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--text-color);
}
.mock-prediction-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(87, 0, 54, 0.02) 0%, rgba(199, 140, 54, 0.05) 100%);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
}
.mock-score {
    display: flex;
    flex-direction: column;
}
.score-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
    font-family: var(--font-heading);
}
.score-lbl {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 4px;
}
.mock-status-chip {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.mock-status-chip.stable {
    background-color: rgba(39, 201, 63, 0.15);
    color: #1a7f2a;
}
.dark .mock-status-chip.stable {
    background-color: rgba(39, 201, 63, 0.25);
    color: #4ef065;
}

@media (max-width: 768px) {
    .pharmdex-promo-container {
        flex-direction: column;
        gap: 30px;
    }
    .pharmdex-promo-text {
        text-align: center;
    }
    .pharmdex-promo-text p {
        text-align: center;
    }
}