/* ============================================
   Jordan Lab - Georgia Tech
   Modern Redesign 2026
   ============================================ */

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

:root {
    --navy: #003057;
    --navy-light: #1a4a7a;
    --gold: #B3A369;
    --gold-light: #c9bc8e;
    --gold-bg: #f5f3ed;
    --text: #1a1a2e;
    --text-light: #4a4a5e;
    --text-muted: #6a6a7a;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.nav-brand .gt-mark {
    display: inline-block;
    background: var(--navy);
    color: var(--gold);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
    background: var(--bg-alt);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(165deg, var(--navy) 0%, #00254a 50%, #001a36 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(179, 163, 105, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: white;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Page Headers --- */
.page-header {
    padding: 8rem 0 3rem;
    background: var(--navy);
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179,163,105,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.08);
}

/* --- Section --- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Banner Section --- */
.banner-section {
    padding: 0;
    background: var(--bg);
    overflow: hidden;
}

.lab-banner {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
}

/* --- PI Section --- */
.pi-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
}

.pi-photo-wrapper {
    position: relative;
}

.pi-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-md);
}

.pi-info h1 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.pi-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.pi-dept {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pi-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.75rem;
}

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

/* --- Research Cards --- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.research-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.research-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--gold-light);
}

.research-card:hover::before {
    opacity: 1;
}

.research-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}

.research-card h3 {
    margin-bottom: 0.875rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.research-card p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-light);
}

/* --- Links Grid --- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.link-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background: var(--bg-alt);
}

.link-card img {
    margin-bottom: 1rem;
    transition: transform var(--transition);
}

.link-card:hover img {
    transform: scale(1.05);
}

.link-card .link-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.link-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 600;
}

.link-card p {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- People --- */
.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
}

.person-card {
    text-align: center;
}

.person-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--bg-alt);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.person-role {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.person-dept {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.person-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.person-links a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    padding: 0.3rem 0.7rem;
    background: var(--gold-bg);
    border-radius: 4px;
    transition: all var(--transition);
}

.person-links a:hover {
    background: var(--gold);
    color: white;
}

.person-program {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* --- Publications --- */
.pub-year-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--navy);
}

.pub-year-header:first-child {
    margin-top: 0;
}

.pub-year-header h2 {
    font-size: 1.5rem;
}

.pub-entry {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.pub-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.pub-journal {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.pub-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pub-links a {
    font-size: 0.775rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--navy);
    padding: 0.2rem 0.6rem;
    background: var(--bg-alt);
    border-radius: 4px;
    transition: all var(--transition);
}

.pub-links a:hover {
    background: var(--navy);
    color: white;
}

/* Additional publication styles for modern layout */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-item {
    background: var(--bg);
    padding: 1.75rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.pub-item:hover {
    box-shadow: var(--shadow-sm);
    border-left-color: var(--gold);
    transform: translateX(2px);
}

.pub-title {
    font-weight: 600;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.pub-journal {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.pub-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pub-links a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    padding: 0.35rem 0.75rem;
    background: var(--gold-bg);
    border-radius: 4px;
    transition: all var(--transition);
}

.pub-links a:hover {
    background: var(--gold);
    color: white;
}

/* --- Videos/Talks --- */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.video-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-md);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Alumni --- */
.year-section {
    margin-bottom: 3.5rem;
}

.year-section h2 {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    letter-spacing: -0.01em;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.alumni-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
}

.alumni-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.alumni-card h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.alumni-degree {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.alumni-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alumni-links a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    padding: 0.3rem 0.7rem;
    background: var(--gold-bg);
    border-radius: 4px;
    transition: all var(--transition);
}

.alumni-links a:hover {
    background: var(--gold);
    color: white;
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
}

.footer a:hover {
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .people-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .alumni-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pi-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .pi-photo {
        margin: 0 auto;
    }
    
    .pi-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .links-grid,
    .talks-grid {
        grid-template-columns: 1fr;
    }
    
    .people-grid,
    .alumni-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .lab-banner {
        max-height: 250px;
    }
    
    .pi-info h1 {
        font-size: 1.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}
