body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    color: #1a1a1a;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
body.loaded { opacity: 1; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header { text-align: center; }
header h1 { margin: 0; font-size: 2.5em; }
header h2 { margin: 5px 0 10px 0; font-weight: 500; color: #555; }
.location { font-style: italic; color: #666; }

.contacts {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 15px 0 30px 0;
}
.contacts li a {
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500;
}
.contacts li a:hover { text-decoration: underline; }

.photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #1a73e8;
}

section {
    width: 100%;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}
section.visible { opacity: 1; transform: translateY(0); }

section h3 {
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #1a73e8;
}

.job, .project-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.job .period, .project-card .period {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    display: block;
}
.stack {
    font-size: 0.9em;
    color: #333;
    font-style: italic;
    margin-top: 10px;
}

ul.skills, ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.skills li {
    display: inline-block;
    background: #e0e7ff;
    color: #1a73e8;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px 5px 0 0;
    font-size: 0.9em;
}

.projects { display: flex; flex-direction: column; gap: 10px; }
.project-card a { color: #1a73e8; font-weight: 500; text-decoration: none; }
.project-card a:hover { text-decoration: underline; }

footer {
    text-align: center;
    font-size: 0.8em;
    color: #555;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .contacts { flex-direction: column; gap: 10px; }
    .projects { flex-direction: column; }
}

.contacts li:last-child a {
    font-weight: 600;
}

.contact-button {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-button:hover {
    background: #1669c1;
    transform: translateY(-2px);
}
.contact-button:active {
    transform: translateY(0);
}
