:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #f0f0f0;
    --background-color: #1a1a1a;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    padding: 2rem;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
}

nav {
    background-color: var(--secondary-color);
    padding: 1rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0.5rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.project {
    background-color: var(--primary-color);
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: scale(1.03);
}

.project h3 {
    margin-top: 0;
}

.project a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.project a:hover {
    text-decoration: underline;
}

#skills {
    margin-top: 2rem;
}

#skills h2 {
    margin-bottom: 1rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.skill {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill:hover {
    transform: scale(1.05);
    background-color: #2980b9; /* A slightly darker shade for hover effect */
}

@media (max-width: 600px) {
    .skills-container {
        justify-content: center;
    }

    .skill {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

#contact {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-item {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.05);
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

#languageSelector {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        flex-direction: column;
    }

    #skills {
        justify-content: center;
    }

    .skill {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}