@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #334155;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --max-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 4rem 0;
}

/* Header & Nav */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.nav-links a.active {
    color: var(--accent);
}

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

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Components */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.research-figure {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: calc(var(--radius) + 6px);
    padding: 0.7rem 0.55rem;
    box-shadow: var(--shadow-sm);
}

.research-figure img {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    border-radius: calc(var(--radius) - 4px);
}

.research-figure figcaption {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.focus-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.focus-list li + li {
    margin-top: 0.45rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-hover);
    color: var(--white);
}

/* Profile Card */
.profile-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-info .title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.profile-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

footer p {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none; /* Will handle with mobile menu later if needed */
    }

    .nav-toggle {
        display: block;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section {
        padding: 2.5rem 0;
    }

    header {
        height: auto;
        padding: 1rem 0;
    }
}
