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

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-text: #666666;
    --accent-color: #4f46e5;
    --border-color: #e5e7eb;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --max-width: 900px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --text-color: #f1f5f9;
        --secondary-text: #94a3b8;
        --accent-color: #818cf8;
        --border-color: #1e293b;
        --card-bg: rgba(30, 41, 59, 0.8);
        --glass-bg: rgba(15, 23, 42, 0.7);
        --glass-border: rgba(148, 163, 184, 0.1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Glassmorphism Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Sections */
section {
    padding: 4rem 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* Bio Section */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.profile-pic {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* News Section */
.news-item {
    padding: 1rem;
    border-left: 3px solid var(--accent-color);
    background: var(--card-bg);
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(5px);
}

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

/* Links & Buttons */
a.link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

a.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

a.link:hover::after {
    width: 100%;
}

/* Photography Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

/* Publication Styles */
.publication-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--card-bg);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.pub-thumb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
}

.pub-content {
    flex-grow: 1;
}

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

.pub-authors {
    font-weight: 500;
    color: var(--secondary-text);
    margin-bottom: 0.25rem;
}

.pub-venue {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .publication-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pub-thumb {
        width: 120px;
        height: 120px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-pic {
        max-width: 250px;
        margin: 0 auto;
    }

    h1 {
        font-size: 2.25rem;
    }

    .nav-links {
        display: none;
    }
}