:root {
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --card-bg: #1e293b;
    --border: #334155;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 2rem 1rem;
}

/* Link Styling */
a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.loader, .error {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-muted);
}

.resume-wrapper {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

/* Header Adjustments */
.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.summary {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Publication Cards */
.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle lift effect on hover */
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Make sure the link inside the H3 inherits the header size */
.card-header h3 a {
    color: var(--text-main);
}

.card-header h3 a:hover {
    color: var(--accent);
}

.card-header h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Date Pill */
.date {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Smooth load-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .date {
        margin-left: 0; /* Moves the date to the left on small screens */
        width: fit-content;
    }
}
