@import url(./fonts.css);

@font-face {
    font-family: 'NeuePlak';
    src: url('fonts/NeuePlak-ExtendedRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --green-color: #0D8A30;
    --green-bg: #0d8a301d;

    --gray-color: #B3B9BF;
    --gray-main: #031628;

    --white-text: #ffffff;
    --light-gray: #666666;
    --heading-font: 'NeuePlak', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --text-color: #031628;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.container {
    width: 890px;
    margin: 0 auto;
}

.header {
    width: 890px;
    margin: 20px auto 50px;
    display: grid;
    grid-template-columns: repeat(7, 110px);
    gap: 20px;
    padding: 0;
}

.header__left {
    grid-column: 1 / 4;
    padding: 0;
}

.header__right {
    grid-column: 5 / 8;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header__title {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.3;
}

.block {
    margin-bottom: 140px;
    display: grid;
    grid-template-columns: repeat(7, 110px);
    gap: 20px;
    width: 100%;
}

.block__title {
    grid-column: 1 / 4;
}

.block__content {
    grid-column: 5 / 8;
}

.footer {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(7, 110px);
    gap: 20px;
    width: 100%;
    padding: 0;
    background: none;
}

.footer__left {
    grid-column: 1 / 4;
}

/* Специфичные стили */
.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 20px 0;
    object-fit: cover;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.projects-list:hover .project-link {
    opacity: 0.3;
}

.projects-list:hover .project-item {
    opacity: 0.3;
}

.project-item {
    display: grid;
    grid-template-columns: 25px 140px 1fr auto;
    align-items: center;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    opacity: 1 !important;
}

.project-item:hover .project-icon {
    transform: scale(1.05);
}

.project-link {
    display: contents;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.project-link:hover {
    opacity: 1 !important;
}

.project-link:hover .project-item {
    opacity: 1 !important;
}

.project-icon {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.project-name {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
    margin-left: 5px;
}

.project-description {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
}

.project-status {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.3;
}

.ios-label {
    color: var(--text-color);
    justify-self: end;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 300;
    opacity: 0.3;
}

h1,
h2 {
    font-family: var(--heading-font);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 34px;
    font-family: var(--heading-font);
    margin: 0 0 20px 0;
}

h2 {
    font-size: 22px;
    font-family: var(--heading-font);
    margin: 0;
    opacity: 1;
    color: var(--text-color);
}

.experience-list {
    display: flex;
    flex-direction: column;
}

.experience-list:hover .experience-item {
    opacity: 0.3;
}

.experience-item {
    display: grid;
    grid-template-columns: 165px 1fr;
    align-items: center;
    padding: 10px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.experience-label {
    position: absolute;
    right: calc(100% + 10px);
    color: var(--text-color);
    opacity: 0.3;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 300;
    width: 120px;
    text-align: right;
}

.project-link .experience-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-link:last-child .experience-item {
    border-bottom: none;
}

.experience-item:hover {
    opacity: 1 !important;
}

.experience-item a {
    text-decoration: none;
    color: inherit;
    display: contents;
}

.experience-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.company-name {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
}

.position {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-color);
}

.plugin-icon-placeholder {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #E5E5E5;
}

.mail-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.mail-link:hover {
    opacity: 1 !important;
}

.mail-link img {
    width: 12px;
    height: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mail-link:hover img {
    transform: rotate(45deg);
}

.green_color {
    color: var(--green-color);
}

.header__donate {
    width: 100%;
    height: 40px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #000000;
}

.donate_span {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;
}

.donate_span span {
    color: #b3b9bfaf;
}

.header__donate a {
    text-decoration: none;
    border: none;

    transition: 0.3s ease;
}

header {
    margin: 0 0 120px 0;

    position: relative;
    padding: 25px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header__name {
    margin: 0 0 20px 0;
}

.available_for_work {
    width: 165px;

    margin-top: 10px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: var(--green-bg);

    gap: 7px;

    border-radius: 10px;
}

.circle {
    width: 8px;
    height: 8px;

    background-color: var(--green-color);
    border-radius: 50%;
}

.about__text {
    margin: 0 70px 20px 0;
    width: 484px;
}

.about__text p {
    margin: 0 0 20px 0;
}

.contact_btns {
    margin: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 40px;
}

.contact_btns a {
    transition: all 0.3s ease;
}

.contact_btns a:hover {
    opacity: 0.5;
}

.local__time {
    margin-top: -5px;

    width: 140px;
    padding: 5px 15px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 5px;
}

.local__time span {
    color: var(--gray-color);
}

.local-time {
    opacity: 0.3;
}

.portfolio {
    margin: 0 0 200px 0;
}

footer {
    height: 70px;

    padding: 25px;

    color: #FFFFFF;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #000000;
}

.white-text {
    color: var(--white-text);
}

.gray-text {
    color: var(--gray-color);
}

.gray-color {
    background-color: var(--gray-color);
}

.circle-animate {
    animation-name: circle-animate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes circle-animate {
    0% {
        scale: 0.5;
    }

    50% {
        scale: 1;
    }

    100% {
        scale: 0.5;
    }
}

.footer-header {
    display: flex;
    align-items: center;

    gap: 10px;
}

.footer-header a {
    border-bottom: 2px solid #ffffff48;

    transition: all 0.3s ease;
}

.footer-header a:hover {

    border-bottom: 2px solid #ffffff;
}

.get-in-touch {
    display: flex;
    align-items: center;

    gap: 10px;
}

footer .contact_btns {
    margin: 0 25px 0 0;
}

.footer-photo {
    width: 65px;
    height: 65px;
}

@media screen and (min-width: 320px) and (max-width: 640px) {

    .about__text {
        width: 100%;

        margin-top: 20px;
    }

    .local__time {
        margin-top: 20px;

        padding: 0;

        justify-content: flex-start;

        gap: 5px;
    }

    header {
        flex-direction: column;
    }

    .item-1 {
        grid-column-start: 1;
        grid-column-end: 2;
    }

    h3 {
        font-size: 26px;
    }

    footer {
        height: 230px;
        flex-direction: column;

        justify-content: center;

        gap: 40px;
    }

    .footer-header {
        flex-direction: column;

    }
}

@media screen and (min-width: 641px) and (max-width: 1300px) {
    .about__text {
        margin-top: 20px;
    }

    .local__time {
        margin-top: 20px;

        padding: 0;

        justify-content: flex-start;

        gap: 5px;
    }

    header {
        flex-direction: column;
    }

    h3 {
        font-size: 32px;
    }

    footer {
        height: 80px;
        flex-direction: column;

        justify-content: center;

        gap: 40px;
    }

    .footer-header {
        flex-direction: column;

    }
}

/* Tablet styles */
@media screen and (min-width: 641px) and (max-width: 1024px) {
    .container {
        width: auto;
        max-width: none;
        padding: 0 40px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .header {
        width: 100%;
        margin: 20px 0 40px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .header__left {
        width: auto;
    }

    .header__right {
        width: auto;
        display: flex;
        align-items: center;
        gap: 30px;
        white-space: nowrap;
    }

    .header__title {
        white-space: nowrap;
    }

    .block {
        margin-bottom: 100px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .block__title {
        grid-column: auto;
    }

    .block__content {
        grid-column: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .project-item {
        grid-template-columns: 25px 120px 1fr auto;
        width: 100%;
        box-sizing: border-box;
    }

    .experience-item {
        display: grid;
        grid-template-columns: 180px 1fr 80px;
        align-items: center;
        padding: 10px 0;
        gap: 20px;
        position: relative;
    }

    .experience-label {
        grid-column: 3;
        position: static;
        right: auto;
        margin-left: 0;
        text-align: right;
        width: auto;
        opacity: 0.3;
        white-space: nowrap;
    }

    .company-name {
        grid-column: 1;
        white-space: nowrap;
    }

    .position {
        grid-column: 2;
        white-space: nowrap;
        justify-self: start;
    }

    .hero .block__content,
    .mentoring .block__content {
        width: 60%;
    }

    .hero .block__content p,
    .mentoring .block__content p {
        width: 100%;
    }

    .footer {
        height: 45px;
        width: 100%;
        margin: 20px 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .footer__left {
        width: auto;
    }

    .footer .header__right {
        width: auto;
        display: flex;
        align-items: center;
        gap: 30px;
        white-space: nowrap;
    }

    .projects-list:hover .project-link,
    .projects-list:hover .project-item,
    .experience-list:hover .experience-item,
    .project-item:hover,
    .project-link:hover,
    .project-link:hover .project-item,
    .experience-item:hover,
    .mail-link:hover,
    .contact_btns a:hover,
    .footer-header a:hover {
        opacity: 1 !important;
        transform: none !important;
    }

    .project-item:hover .project-icon,
    .mail-link:hover img {
        transform: none !important;
    }
}

/* Mobile styles */
@media screen and (max-width: 640px) {
    .container {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .header {
        width: 100%;
        margin: 20px auto 15px;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .header__left {
        width: 100%;
        order: 2;
    }

    .header__right {
        width: 100%;
        justify-content: space-between;
        order: 1;
    }

    .hero {
        margin-top: 15px;
    }

    .block {
        margin-bottom: 60px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .block__title {
        grid-column: auto;
    }

    .block__content {
        grid-column: auto;
    }

    .project-item {
        grid-template-columns: 25px 120px 1fr auto;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .experience-item {
        display: grid;
        grid-template-columns: 135px minmax(0, 1fr) 0;
        align-items: center;
        padding: 10px 0;
        gap: 0px;
        position: relative;
    }

    .company-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 300;
        margin: 0;
        font-size: 13px;
        grid-column: 1;
    }

    .position {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.5;
        margin: 0;
        font-size: 13px;
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .experience-label {
        white-space: nowrap;
        opacity: 0.3;
        text-align: right;
        margin: 0;
        font-size: 13px;
        grid-column: 3;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .profile-image {
        width: 70px;
        height: 70px;
        margin: 15px 0;
    }

    .hero .block__content,
    .mentoring .block__content {
        width: 100%;
    }

    .hero .block__content p,
    .mentoring .block__content p {
        margin-bottom: 15px;
    }

    footer {
        height: 35px;
        padding: 0 0 40px 0;
        margin: 0 0 20px 0;
    }

    .footer {
        margin: 0;
        padding: 0 0 40px 0;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .footer__left {
        grid-column: auto;
        order: 2;
    }

    .footer .header__right {
        order: 1;
    }
}

/* Blog styles */
.blog-header-wrapper {
    width: 100%;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.blog-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.blog-header__logo a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.blog-header__logo a:hover {
    opacity: 0.7;
}

.blog-header__logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--gray-main);
    margin: 0;
    transform: scale(0.6);
    transform-origin: left center;
}

.blog-header__info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.share-button,
.share-button .share-text {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-main);
    transition: all 0.3s ease;
}

.share-button:hover {
    opacity: 0.7;
}

.share-button.copied,
.share-button.copied .share-text {
    color: var(--green-color);
}

.share-button img {
    width: 12px;
    height: 12px;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.share-button.copied img {
    transform: rotate(0deg);
}

.language-switcher {
    display: flex;
    gap: 5px;
}

.language-button {
    background: none;
    border: 1px solid var(--gray-color);
    padding: 2px 8px;
    font-family: 'Questrial', sans-serif;
    font-size: 0.8rem;
    color: var(--gray-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-button.active {
    background-color: var(--gray-main);
    color: white;
    border-color: var(--gray-main);
}

.blog-post {
    margin: 100px 0 0;
}

.blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-main);
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.blog-content {
    font-family: 'Questrial', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-main);
    text-align: left;
    margin: 0;
}

.blog-content p {
    margin: 0 0 20px 0;
    font-family: 'Questrial', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-main);
}

.blog-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-main);
    margin: 40px 0 20px 0;
}

.blog-content ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content strong {
    font-weight: 600;
}

.blog-content em {
    font-style: italic;
}

.blog-content blockquote {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 3px solid var(--gray-color);
    font-style: italic;
    color: var(--gray-main);
}

@media screen and (max-width: 640px) {
    .blog-container {
        margin: 50px auto 0;
        padding: 0;
    }

    .blog-title {
        font-size: 2rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content p {
        font-size: 1rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
        margin: 30px 0 15px 0;
    }
}

.animated-block {
    display: none;
    width: 100%;
    height: 260px;
    background: #F8F8F8;
    border-radius: 20px;
    margin-bottom: 140px;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: soft-light;
    opacity: 1;
    animation: move var(--speed) infinite alternate-reverse ease-in-out;
    transform-origin: center;
    will-change: transform;
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: radial-gradient(white, black);
}

@keyframes move {
    0% {
        transform: translate(var(--start-x), var(--start-y)) scale(0.9);
    }

    50% {
        transform: translate(var(--mid-x), var(--mid-y)) scale(1);
    }

    100% {
        transform: translate(var(--end-x), var(--end-y)) scale(0.9);
    }
}

.hero .block__content p,
.mentoring .block__content p {
    font-size: 14px;
    line-height: 1.6;
}
