@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Roboto+Mono&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.7;
    scroll-behavior: smooth;
}

a {
    color: #61dafb;
    text-decoration: none;
    transition: color 0.2s, border-bottom 0.2s;
}

a:hover {
    color: #21a1f1;
}

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

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

header img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #61dafb;
    transition: transform 0.3s;
}

header img:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 0.3rem 0;
    font-size: 2.2rem;
    font-weight: 700;
}

header p {
    margin: 0.2rem 0;
}

.nav {
    margin-top: 1rem;
}

.nav a {
    margin: 0 0.8rem;
    font-weight: 600;
    position: relative;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #61dafb;
}

hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

section {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.3s, background-color 0.3s;
}

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

.section-hover:hover {
    transform: translateY(-5px);
    background-color: rgba(255,255,255,0.03);
}

h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.job-period {
    font-style: italic;
    color: #aaa;
    font-weight: 400;
}

ul {
    padding-left: 1.2rem;
}

.achievements {
    font-style: italic;
    margin-top: 0.3rem;
    color: #bbb;
}

.skills {
    font-family: 'Roboto Mono', monospace;
}

@media(max-width: 600px) {
    header img {
        width: 120px;
        height: 120px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .nav a {
        display: block;
        margin: 0.4rem 0;
    }
}
