:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #22d3ee;
    --font-main: 'Inter', sans-serif;
}

body.light-mode {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #0891b2;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(to right, #1e293b, #0f172a);
    padding: 60px 0;
    border-bottom: 1px solid #334155;
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.btn-icon {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-download {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Sections */
.section {
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease-out;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Job & Education Items */
.job,
.education-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #334155;
    transition: transform 0.2s, box-shadow 0.2s;
}

.job:hover,
.education-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.job-header,
.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.job-header h3,
.edu-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.date {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.job-subheader,
.edu-subheader {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-style: italic;
    flex-wrap: wrap;
}

.role,
.degree {
    font-weight: 500;
    color: var(--secondary-color);
}

ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.job ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    list-style: none;
}

.job ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Publications */
.publications-list {
    list-style: none;
}

.publications-list li {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.skill-category h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}

.skill-category p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #334155;
    margin-top: 60px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .job-header,
    .edu-header,
    .job-subheader,
    .edu-subheader {
        flex-direction: column;
        gap: 5px;
    }

    .date {
        order: -1;
    }
}