:root {
    --primary-color: #007bff;
    --secondary-color: #343a40;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background-color: var(--light-grey);
    color: var(--secondary-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin-bottom: 15px;
    color: #333;
}

h2 {
    font-size: 2em;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

p {
    margin-bottom: 10px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

.section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 25px;
}

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

nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-logo:hover {
    text-decoration: none;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #555;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

#home h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.8em;
    margin: 0 12px;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.experience-item,
.education-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ddd;
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-subtitle {
    font-size: 1.1em;
    color: #444;
}

.item-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
    font-style: italic;
}

.experience-item ul {
    list-style: disc;
    padding-left: 20px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    background-color: #e9ecef;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.contact-list {
    list-style: none;
    margin-top: 20px;
}

.contact-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-list li i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-color);
    color: #f0f0f0;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    #home h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    h2 {
        font-size: 1.8em;
    }
}
