:root {
    --main-color: #f6f8fa;
    --secondary-color: #dfe6e9;
    --font-color: #2d3436;
    --link-color: #0984e3;
    --link-color-hover: #74b9ff;
    --accent-color: #55efc4;
    --gap: 15px;
}

body, h1, h2, h3, p {
    margin: 0;
}

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

a {
    text-decoration: none;
    color: var(--link-color);
    transition: 0.3s;
}

a:hover, a:focus, a:active {
    color: var(--link-color-hover);
    opacity: 0.7;
}

html {
    background-color: var(--main-color);
    color: var(--font-color);
    scroll-behavior: smooth;
}

body {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--main-color);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

header {
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    gap: 20px;
    padding-left: 80px;
    flex-wrap: wrap;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: bold;
}

.language-switch {
    font-weight: bold;
    margin-left: auto;
}

.avatar {
    --avatar-size: 250px;
    display: block;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border: 2px solid var(--link-color);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

h1 {
    font-size: 32px;
    text-align: center;
}

.subtitle {
    font-size: 18px;
    text-align: center;
    margin-top: 5px;
}

.nickname, .description, footer {
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.large-button {
    padding: 12px 24px;
    background-color: #0077b6;
    color: white;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.large-button:hover {
    background-color: #0096c7;
}

.large-button.secondary {
    background-color: #0077b6;
    color: white;
}

.large-button.secondary:hover {
    background-color: #495057;
}

.links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.links a::after {
    content: attr(aria-label);
    font-size: 12px;
    display: block;
    text-align: center;
    margin-top: 4px;
}

.links img {
    width: 35px;
    height: 35px;
}

section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.skills-grid h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2d3436;
}

.skills-grid ul li {
  margin-bottom: 6px;
  font-size: 15px;
  padding-left: 1em;
  position: relative;
}

.skills-grid ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--link-color);
  font-size: 14px;
  line-height: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
}

.contact-form button {
    padding: 10px;
    border: none;
    background-color: #0077b6;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
