:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #3498db;
    --secondary-color: #f0f4f8;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark {
    --bg-color: #1a202c;
    --text-color: #e2e8f0;
    --accent-color: #4299e1;
    --secondary-color: #2d3748;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.5s ease forwards;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.theme-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.theme-switch:hover {
    transform: scale(1.05);
}

section {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

h2 svg {
    margin-right: 0.5rem;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

.skill {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9rem;
}

.skill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--accent-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.language-list {
    list-style: none;
    padding: 0;
}

.language-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.language-name {
    font-weight: 500;
}

.proficiency-dots {
    display: inline-block;
}

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

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .language-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .proficiency-dots {
        margin-top: 0.25rem;
    }
}

#certifications ul {
    list-style-type: none;
    padding-left: 0;
}

#certifications li {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    display: inline-block;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#certifications li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-color);
}