/* * 0. Identity & Design Goals
 * Professional, Systems-Oriented, Low Maintenance.
 */

:root {
    /* Base Colors */
    --bg-color: #F3F4F6;       /* Soft cool gray */
    --card-bg: #FFFFFF;        /* Pure white */
    --card-bg-subtle: #F9FAFB; /* Secondary backgrounds */
    
    /* Text Colors */
    --text-primary: #111827;   /* Near black */
    --text-secondary: #6B7280; /* Muted gray */
    --text-light: #9CA3AF;     /* Faint meta text */
    
    /* Accents */
    --accent-blue: #1D4ED8;    /* Academic/Professional */
    --accent-red: #B91C1C;     /* Engineering/Miata (Used sparingly) */
    --rutgers-scarlet: #CC0033; /* Rutgers Identity */
    
    /* Borders */
    --border-color: #E5E7EB;
    
    /* Spacing & Layout */
    --container-width: 1024px;
    --radius: 8px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Global Link Styles --- */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

a:active {
    color: var(--accent-red);
}

img, video {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    display: inline-block;
}

/* Helper Classes */
.text-blue { color: var(--accent-blue) !important; }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-secondary); }

/* --- 3.2 Header / Nav (Rutgers Update) --- */
header {
    background: var(--card-bg);
    border-bottom: 3px solid var(--rutgers-scarlet); /* Rutgers Identity */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding-bottom: 4px; 
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--rutgers-scarlet); /* Hover: Rutgers Scarlet */
    text-decoration: none; 
}

.nav-links a.active {
    color: var(--rutgers-scarlet);
    border-bottom-color: var(--rutgers-scarlet); /* Active: Rutgers Scarlet Underline */
}

.nav-links a[href="#"].active {
    /* Dim the text color */
    opacity: 0.6; 
    cursor: default;
    pointer-events: none;
}

/* --- 3.3 Hero Section --- */
.hero {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 50px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-role {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-bio,.hero-bio-part-1, .hero-bio-part-2 {
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-bio a {
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.hero-bio-part-2 {
    margin-top: 6px; 
    margin-bottom: 1.5rem;
}

.hero-bio-part-1 {
    margin-bottom: 0; 
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-blue);
}


/* --- 3.4 Research Themes --- */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.theme-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; 
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 1. Add Hover Shadow for Interactivity */
.theme-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); 
    cursor: pointer;
}

.theme-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* 2. Reduce Line Width for Readability */
.theme-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 280px; 
    margin-left: auto; 
    margin-right: auto;
}

/* --- 3.5 Publications --- */
.media-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.media-visual {
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-visual video, .media-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pub-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.pub-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.pub-links a {
    color: var(--accent-blue);
    text-decoration: none;
}

.pub-links a:hover {
    text-decoration: underline;
}

/* --- 3.6 News --- */
.news-list {
    list-style: none;
    margin-bottom: 4rem;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.news-date {
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bridge-banner {
    background: var(--card-bg);
    border: 1px solid var(--accent-blue);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    transition: var(--transition);
    display: block;
}

.bridge-banner:hover {
    background: #eff6ff;
    text-decoration: none;
}

.bridge-link {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

/* --- Projects Page --- */
.projects-intro {
    padding: 3rem 0;
    max-width: 700px;
}

.project-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.accent-bar {
    width: 4px;
    height: 24px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card-img {
    height: 200px;
    background-color: #eee;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    margin-bottom: 0.75rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-color);
    color: var(--text-secondary);
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 500;
}

.tag.field {
    background: #FEF2F2;
    color: var(--accent-red);
    border: 1px solid #FECACA;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-image img {
        width: 160px;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .media-row {
        grid-template-columns: 1fr;
    }
    
    .media-visual {
        min-height: 200px;
    }
}