:root {
    /* Light Theme Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-primary: #c2410c;    /* Burnt Orange / Terracotta */
    --accent-hover: #9a3412;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 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);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* Use a serif font for headings to give an academic, published feel */
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--text-primary);
}

a { text-decoration: none; color: inherit; }

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

/* Navigation */
nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000; padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo { font-weight: 700; font-size: 1.5rem; font-family: 'Merriweather', serif; color: var(--accent-primary); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-primary); }

/* Buttons */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem;
    border-radius: 8px; font-weight: 500; font-size: 0.95rem;
    transition: all 0.2s; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--accent-primary); color: white; border: 1px solid var(--accent-primary); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--text-primary); background: var(--bg-secondary); }

/* General Sections */
section { padding: 6rem 0; }
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; }
.section-title span { color: var(--accent-primary); }

.bg-light { background-color: var(--bg-secondary); }

/* Hero */
.hero { padding: 10rem 0 6rem; background: linear-gradient(135deg, #f8fafc 0%, #ffedd5 100%); }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.hero-content { flex: 1; text-align: left; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 700px; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; }
.hero-profile { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-image { display: flex; justify-content: center; position: relative; width: 100%; max-width: 350px; }
.hero-image > img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); border: 8px solid white; display: block; }
.school-badges { position: absolute; bottom: -15px; right: -15px; display: flex; gap: 0.6rem; z-index: 10; }
.school-badges img { width: 3.8rem; height: 3.8rem; background: white; border-radius: 50%; padding: 0.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); object-fit: contain; transition: transform 0.2s; }
.school-badges img:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }
.hero-links { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.hero-links a { display: inline-flex; align-items: center; font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); transition: all 0.2s; padding: 0.5rem 0.8rem; background: white; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.hero-links a:hover { color: var(--accent-primary); border-color: var(--accent-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Projects Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.card {
    background: white; border-radius: 12px; padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-primary); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; color: var(--accent-primary); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; background: var(--bg-tertiary); color: var(--text-secondary); border-radius: 4px; border: 1px solid #cbd5e1; }
.card-link { font-weight: 600; font-size: 0.9rem; color: var(--accent-primary); display: inline-flex; align-items: center; gap: 0.25rem; }
.card-link:hover { text-decoration: underline; }

/* Blog Section */
.blog-card { display: flex; gap: 2rem; background: white; border-radius: 12px; padding: 2rem; border: 1px solid var(--border-color); margin-bottom: 1.5rem; transition: transform 0.2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-primary); }
.blog-date { min-width: 100px; color: var(--accent-primary); font-weight: 600; font-size: 0.9rem; margin-top: 0.2rem; }
.blog-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.blog-content p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Invite / Contact Section */
.invite-box {
    background: white; border-radius: 16px; padding: 4rem; text-align: center;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
    max-width: 800px; margin: 0 auto;
}
.invite-box h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.invite-box p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.contact-item { padding: 1.5rem; background: var(--bg-secondary); border-radius: 8px; font-weight: 500; transition: all 0.2s; border: 1px solid var(--border-color); }
.contact-item:hover { background: #eff6ff; color: var(--accent-primary); border-color: var(--accent-primary); transform: translateY(-2px); }

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

@media (max-width: 768px) {
    .hero-container { flex-direction: column-reverse; text-align: center; gap: 3rem; }
    .hero-content { text-align: center; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .blog-card { flex-direction: column; gap: 0.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .invite-box { padding: 2rem; }
    .nav-links { display: none; /* In a real app, add a hamburger menu */ }
}
