: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;
}

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

a:hover {
    opacity: 0.8;
}

.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-in-out;
}

/* Header Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
}

.profile-info h2 {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.location-email {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.summary {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.links-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

/* General Sections */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: var(--card-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

/* Cards (Experience/Education) */
.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;
}

.card:hover {
    transform: translateY(-2px);
}

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


.card-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

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

.date {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .links-container {
        justify-content: center;
    }
    .date {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }
}
