/* Core Variables */
:root {
    --bg-color: #FAFAFA;
    --surface-color: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #52525B;
    --accent-color: #0F172A;
    --border-color: #E4E4E7;
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 1.25rem; }

/* Layout Wrappers */
main {
    width: 100%;
    max-width: 600px; /* Minimalist constrained width */
    margin-top: 100px;
    margin-bottom: 60px;
}

/* Header */
.site-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #ccc; /* fallback */
}
.divider { color: var(--text-secondary); font-weight: 300; }
.header-name { font-weight: 600; font-size: 0.95rem; }

/* Sections */
section { margin-bottom: 48px; }

/* Hero */
.hero-section h1 { font-size: 2.25rem; margin-bottom: 4px; }
.hero-section .subtitle { color: var(--text-secondary); font-weight: 500; margin-bottom: 16px; }
.hero-section .bio { color: var(--text-secondary); font-size: 1.05rem; }

/* Timeline (Education) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}
.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.timeline-icon {
    width: 42px;
    height: 42px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-color);
}
.timeline-icon .material-icons { font-size: 20px; }
.timeline-content {
    background: var(--surface-color);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    width: 100%;
}
.timeline-content h3 { font-size: 1rem; margin-bottom: 4px; }
.timeline-content .institution { color: var(--text-secondary); font-size: 0.9rem; }
.timeline-content .date { color: var(--accent-color); font-size: 0.8rem; font-weight: 600; margin-top: 8px; }

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-card:hover {
    background: var(--text-primary);
    color: var(--surface-color);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    width: 100%;
    max-width: 600px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.claudeflire-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--text-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 6px;
}
.claudeflire-badge .material-icons { font-size: 14px; }

/* Interactivity Classes */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}