* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Poppins", sans-serif;
    background-color: #161513;
    color: #c5c5c5;
}
a {
    text-decoration: none;
}
header {
    background-color: #222;
}
nav {
    display: flex;
    justify-content: space-between;
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    padding: 0 20px;
}
.logo img {
    width: 250px;
}
.navbar {
    display: flex;
}
.navbar div {
    padding: 30px 20px;
}
.navbar a {
    color: #fff;
}
.container {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    padding: 80px 20px;
}
.avatar img {
    width: 251px;
    max-width: 100%;
}
.about {
    text-align: center;
}
.about-text {
    width: 652px;
    max-width: 100%;
    margin: 30px auto;
}
.about-text h1 {
    font-size: 55px;
    line-height: 1.2;
    color: #fff;
}
.about-text h1 > span {
    background: var(
        --Primary-Gradient,
        linear-gradient(116deg, #ff8660 71.79%, #9a33ff 95.51%)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-text p {
    font-size: 18px;
    margin-top: 30px;
}
.about-btn {
    margin-top: 30px;
}
.btn-secondary {
    width: 195px;
    height: 64px;
    background: none;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}
.experience-with {
    text-align: center;
    padding: 20px 0;
}

.experience-with h2 {
    font-size: 20px;
}
.experience-with-lang {
    display: flex;
    width: 500px;
    max-width: 100%;
    margin: 30px auto;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.experience-with-lang img {
    width: 60px;
    cursor: pointer;
}
.primary-heading {
    text-align: center;
    font-size: 35px;
}
.heading-project {
    background: var(
        --Orange-Gradient,
        linear-gradient(180deg, #ff8660 0%, #d5491d 100%)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.projects {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    flex-wrap: wrap;
}
.project-item {
    background: #2a2a2a;
    margin: 20px;
    border-radius: 18px 18px 0 0;
    flex: 1;
    min-width: 250px;
}
.project-item img {
    width: 100%;
    border-radius: 18px 18px 0 0;
}
.project-title {
    padding: 15px;
}
.project-title h3 {
    color: #fff;
}

.heading-experience {
    background: var(
        --Blue-Gradient,
        linear-gradient(180deg, #5badff 0%, #1373d1 100%)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.experience-item {
    padding: 30px 0;
}
.experience-title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.experience-title-container .date {
    margin-left: auto;
}
.experience-title {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}
.experience-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.stack-tag {
    display: inline-block;
    margin-right: 5px;
}
footer {
    background-color: #191919;
}
footer h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}
footer p {
    font-size: 15px;
}
.email-container {
    display: flex;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}
.email-container img {
    margin-right: 10px;
}

.social-links {
    display: flex;
    margin-top: 40px;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.social-links img {
    margin-right: 20px;
    width: 40px;
    height: 40px;
}

/* Медиа-запросы для планшетов */
@media screen and (max-width: 768px) {
    nav {
        width: 100%;
        padding: 10px 20px;
    }

    .logo img {
        width: 150px;
    }

    .navbar div {
        padding: 20px 10px;
    }

    .container {
        width: 100%;
        padding: 40px 20px;
    }

    .about-text h1 {
        font-size: 40px;
    }

    .about-text p {
        font-size: 16px;
    }

    .btn-secondary {
        width: 180px;
        height: 56px;
        font-size: 18px;
    }

    .experience-with-lang {
        width: 100%;
        justify-content: space-around;
        padding: 0 20px;
    }

    .experience-with-lang img {
        width: 50px;
    }

    .primary-heading {
        font-size: 28px;
    }

    .projects {
        flex-direction: column;
        margin: 20px 0;
    }

    .project-item {
        margin: 10px 0;
        width: 100%;
    }

    .experience-title-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-title-container .date {
        margin-left: 0;
        margin-top: 10px;
    }

    .experience-title {
        font-size: 18px;
    }

    .social-links img {
        width: 35px;
        height: 35px;
        margin-right: 15px;
    }
}

/* Медиа-запросы для мобильных устройств */
@media screen and (max-width: 480px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }

    .logo img {
        width: 120px;
        margin-bottom: 10px;
    }

    .navbar {
        flex-direction: row;
        justify-content: center;
    }

    .navbar div {
        padding: 10px 8px;
    }

    .navbar a {
        font-size: 14px;
    }

    .container {
        padding: 30px 15px;
    }

    .avatar img {
        width: 180px;
    }

    .about-text {
        width: 100%;
        padding: 0 10px;
    }

    .about-text h1 {
        font-size: 28px;
    }

    .about-text p {
        font-size: 14px;
        margin-top: 20px;
    }

    .btn-secondary {
        width: 160px;
        height: 50px;
        font-size: 16px;
    }

    .experience-with-lang {
        width: 100%;
        gap: 15px;
    }

    .experience-with-lang img {
        width: 40px;
    }

    .primary-heading {
        font-size: 24px;
    }

    .experience-item {
        padding: 20px 0;
    }

    .experience-title {
        font-size: 16px;
    }

    .experience-stack {
        font-size: 14px;
    }

    .stack-tag {
        font-size: 12px;
    }

    .experience-item p {
        font-size: 14px;
    }

    footer h2 {
        font-size: 20px;
    }

    footer p {
        font-size: 13px;
    }

    .email-container {
        font-size: 14px;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .social-links img {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
}
