@font-face {
    font-family: "SpaceGrotesk";
    src: url("../assets/fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
}

:root {
    --bg-primary: hsl(0, 0%, 8%);
    --bg-secondary: hsl(0, 0%, 14%);
    --text-primary: hsl(0, 0%, 100%);
    --text-secondary: hsl(0, 0%, 85%);
    --accent-color: hsl(153, 71%, 59%);
    --border-color: hsl(0, 0%, 100%);
    --error-color: hsl(7, 100%, 68%);
    --overlay-bg: hsla(0, 0%, 0%, .75);
    --input-placeholder: hsla(0, 0%, 100%, .5);
}

[data-theme="light"] {
    --bg-primary: hsl(0, 0%, 98%);
    --bg-secondary: hsl(0, 0%, 95%);
    --text-primary: hsl(0, 0%, 10%);
    --text-secondary: hsl(0, 0%, 25%);
    --accent-color: hsl(153, 71%, 45%);
    --border-color: hsl(0, 0%, 20%);
    --error-color: hsl(7, 100%, 55%);
    --overlay-bg: hsla(0, 0%, 100%, .85);
    --input-placeholder: hsla(0, 0%, 0%, .5);
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
}

body {
    min-height: 100vh;
}

@media (max-width: 768px) {
    body *{
        overflow: hidden;
        box-sizing: border-box;
    }
}

.hidden{
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.body-wrapper {
    background-color: var(--bg-primary);
    background-image: url(/assets/images/pattern-circle.svg);
    background-repeat: no-repeat;
    background-position: 84vw 67.5vw;
    display: grid;
    grid-template-columns: [full-start] minmax(1.6rem, 1fr) [center-start] repeat(12, [col-start] minmax(min-content, 9.25rem) [col-end]) [center-end] minmax(1.6rem, 1fr) [full-end];
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

@media only screen and (max-width: 42em) {
    .body-wrapper {
        width: 100%;
        max-width: 100vw;
        grid-template-columns: [full-start] 1.6rem [center-start] 1fr [center-end] 1.6rem [full-end];
    }
}

@media only screen and (min-width: 42em) {
    .body-wrapper {
        grid-template-columns: [full-start] minmax(3rem, 1fr) [center-start] repeat(12, [col-start] minmax(min-content, 9.25rem) [col-end]) [center-end] minmax(3rem, 1fr) [full-end];
    }
}

@media only screen and (min-width: 42em) {
    .body-wrapper {
        background-image: none;
    }
}

.main {
    grid-column: center-start / center-end;
    display: grid;
    grid-template-rows: min-content;
    row-gap: 8rem;
    padding-bottom: 8rem;
}

@media only screen and (max-width: 42em) {
    .main {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media only screen and (min-width: 63.5em) {
    .main {
        row-gap: 9.032rem;
        padding-bottom: 13.9rem;
    }
}

@media only screen and (min-width: 79.5em) {
    .main {
        row-gap: 9.244rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .main {
        row-gap: 10.4rem;
    }
}

.center-text {
    text-align: center;
}

.right-text {
    text-align: right;
}

.flex {
    display: flex;
}

.column {
    flex-direction: column;
    width: fit-content;
}

@media only screen and (min-width: 23em) {
    .column {
        flex-direction: row;
    }
}

.sm-y-padding {
    padding-bottom: 0.1rem !important;
}

.invisible {
    opacity: 0;
    visibility: hidden;
}

.d-none {
    display: none;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-color) 100%);
    z-index: 10000;
    transition: width 0.1s ease;
}

.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
    width: 2.4rem;
    height: 2.4rem;
}

*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

body {
    color: var(--text-secondary);
    font-family: "SpaceGrotesk", sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.6rem;
    transition: color 0.3s ease;
}

@media only screen and (max-width: 42em) {
    body {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media only screen and (min-width: 42em) {
    body {
        font-size: 1.8rem;
        line-height: 2.8rem;
    }
}

.heading-primary,
.heading-secondary,
.heading-tertiary,
.projects-title,
.form__heading {
    color: var(--text-primary);
    font-weight: 700;
}

/* Fix deprecated H1UserAgentFontSizeInSection API */
h1 {
    font-size: inherit;
}

.heading-primary {
    display: inline-block;
}

.heading-primary,
.projects-title,
.form__heading {
    font-size: 4rem;
    letter-spacing: -0.114rem;
    line-height: 1;
    margin-bottom: 2.4rem;
}

@media only screen and (max-width: 42em) {
    .heading-primary,
    .projects-title,
    .form__heading {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media only screen and (min-width: 42em) {

    .heading-primary,
    .projects-title,
    .form__heading {
        font-size: 7.2rem;
        letter-spacing: -0.205rem;
        margin-bottom: 7.7rem;
        line-height: 1.08;
    }
}

@media only screen and (min-width: 63.5em) {

    .heading-primary,
    .projects-title,
    .form__heading {
        font-size: 7.64rem;
        letter-spacing: -0.25rem;
        margin-bottom: 3.73rem;
        line-height: 1;
    }
}

@media only screen and (min-width: 79.5em) {

    .heading-primary,
    .projects-title,
    .form__heading {
        font-size: 7.822rem;
    }
}

@media only screen and (min-width: 89.5em) {

    .heading-primary,
    .projects-title,
    .form__heading {
        font-size: 8.8rem;
        margin-bottom: 4.2rem;
    }
}

.projects-title {
    margin-bottom: 0;
    font-size: 4rem;
    letter-spacing: -0.114rem;
    line-height: 1;
}

@media only screen and (min-width: 42em) {
    .projects-title {
        font-size: 7.2rem;
        letter-spacing: -0.205rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .projects-title {
        font-size: 7.64rem;
        letter-spacing: -0.25rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .projects-title {
        font-size: 8.8rem;
    }
}

.form__heading {
    margin-bottom: 2rem;
    font-size: 4rem;
    letter-spacing: -0.114rem;
    line-height: 1;
}

@media only screen and (min-width: 42em) {
    .form__heading {
        font-size: 7.2rem;
        letter-spacing: -0.205rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .form__heading {
        font-size: 7.64rem;
        letter-spacing: -0.25rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .form__heading {
        font-size: 8.8rem;
    }
}

@media only screen and (min-width: 42em) {

    .projects-title,
    .form__heading {
        line-height: 1;
    }
}

.heading-secondary {
    font-size: 3.2rem;
    letter-spacing: -0.1rem;
    line-height: 4rem;
}

@media only screen and (min-width: 42em) {
    .heading-secondary {
        font-size: 4.8rem;
        line-height: 5.6rem;
    }
}

.heading-tertiary {
    font-size: 2.4rem;
    line-height: 3.2rem;
    text-transform: uppercase;
}

.underline,
.underline:link,
.underline:active {
    border-bottom: 4px solid var(--accent-color);
    color: currentColor;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.underline:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.btn,
.btn:link,
.btn:visited {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.229rem;
    line-height: 2.6rem;
    padding-bottom: 1rem;
    /* only for the .btn itself */
    border: none;
    cursor: pointer;
    font-family: inherit;
    /* Put transition on the original "state" */
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
    position: relative;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.btn:hover::after {
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--green:link,
.btn--green:visited {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
}

button.btn--green {
    background-color: transparent;
    outline: none;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
}

.btn--green:hover,
.btn--green:active {
    color: hsl(153, 71%, 59%);
}

.btn--download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn--outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn--outline:hover,
.btn--outline:focus {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.btn__icon {
    width: 2rem;
    height: 2rem;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

@media only screen and (max-width: 42em) {
    .hero__buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

.btn--form {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    background-color: transparent;
}

.btn--form:hover,
.btn--form:active {
    color: var(--accent-color);
}

.theme-toggle {
    background: transparent;
    border: none;
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.15);
}

.theme-toggle__icon {
    position: absolute;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle__icon--sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle__icon--moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle__icon--sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle__icon--moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

@media only screen and (max-width: 42em) {
    .theme-toggle {
        width: 2rem;
        height: 2rem;
    }
}

.header {
    grid-column: center-start / center-end;
    display: flex;
    flex-direction: column;
    height: 9.2rem;
    align-items: center;
    justify-content: end;
    gap: 2rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: calc(100% - 3.2rem);
    max-width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@media only screen and (max-width: 42em) {
    .header {
        padding: 0 1rem;
        gap: 1.5rem;
    }
}

@media only screen and (min-width: 42em) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        height: 6.1rem;
        align-items: end;
    }
}

@media only screen and (min-width: 79.5em) {
    .header {
        height: auto;
        align-items: center;
        padding-top: 3.466rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .header {
        padding-top: 3.9rem;
    }
}

.header__logo {
    color: var(--text-primary);
    font-size: 2.4rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 3.2rem;
    letter-spacing: -0.033rem;
}

@media only screen and (min-width: 42em) {
    .header__logo {
        font-size: 3.2rem;
        letter-spacing: -0.044rem;
    }
}

.header__social-box {
    display: flex;
    align-items: center;
    gap: 2.467rem;
}

@media only screen and (max-width: 42em) {
    .header__social-box {
        gap: 1.5rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .header__social-box {
        margin-right: 3rem;
    }
}

.header__social-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header__social-svg {
    width: 2rem;
    height: 2rem;
}

@media only screen and (min-width: 42em) {
    .header__social-svg {
        width: 2.4rem;
        height: 2.4rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .header__social-svg {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.header__social-logo {
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
}

.header__social-svg {
    transition: transform 0.3s ease;
}

.header__social-link:hover .header__social-svg {
    transform: translateY(-3px);
}

.header__social-link:hover .header__social-svg .header__social-logo,
.header__social-link:active .header__social-svg .header__social-logo {
    fill: var(--accent-color);
}

.header__social-logo {
    fill: var(--text-primary);
}

.section-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
}

@media only screen and (max-width: 42em) {
    .section-hero {
        max-width: 100%;
        overflow-x: hidden;
    }
}

.section-hero::before {
    content: url(../assets/images/pattern-rings.svg);
    position: absolute;
    top: 12.4rem;
    right: 50vw;
    z-index: 0;
}

[data-theme="light"] .section-hero::before {
    filter: invert(1);
}

@media only screen and (min-width: 50.5em) {
    .section-hero::before {
        top: 7.5rem;
        right: 64vw;
    }
}

@media only screen and (min-width: 63.5em) {
    .section-hero::before {
        top: 7rem;
        right: 72vw;
    }
}

@media only screen and (min-width: 79.5em) {
    .section-hero::before {
        top: 10.5rem;
        left: -29rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .section-hero::before {
        top: 12.9rem;
        left: -26rem;
    }
}

@media only screen and (min-width: 42em) {
    .section-hero {
        grid-template-columns: 8.47fr 5fr;
        gap: 0;
        padding-top: 14.1rem;
        text-align: left;
    }
}

@media only screen and (min-width: 50.5em) {
    .section-hero {
        grid-template-columns: 8fr 5fr;
    }
}

@media only screen and (min-width: 57em) {
    .section-hero {
        grid-template-columns: 9fr 4fr;
    }
}

@media only screen and (min-width: 63.5em) {
    .section-hero {
        grid-template-columns: 7fr 4fr;
        padding-bottom: 11.4rem;
    }
}

@media only screen and (min-width: 79.5em) {
    .section-hero {
        padding-top: 17.6rem;
        padding-bottom: 10.222rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .section-hero {
        padding-top: 19.8rem;
        padding-bottom: 11.5rem;
    }
}

.hero__pic {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.2s both;
}

@media only screen and (min-width: 42em) {
    .hero__pic::before {
        content: url(../assets/images/pattern-circle.svg);
        position: absolute;
        bottom: 0;
        left: 88vw;
        z-index: 1;
        height: 12.9rem;
    }

    [data-theme="light"] .hero__pic::before {
        filter: invert(1);
    }
}

@media only screen and (min-width: 63.5em) {
    .hero__pic::before {
        bottom: 7rem;
        left: 50vw;
    }
}

@media only screen and (min-width: 79.5em) {
    .hero__pic::before {
        bottom: 6.22rem;
        left: 64rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .hero__pic::before {
        bottom: 7rem;
        left: 59.7rem;
    }
}

.hero__img {
    width: 63.73%;
    height: auto;
    z-index: 1;
    position: relative;
    transition: transform 0.4s ease;
}

.hero__img:hover {
    transform: scale(1.05);
}

@media only screen and (min-width: 23em) {
    .hero__img {
        width: 50.73%;
    }
}

@media only screen and (min-width: 42em) {
    .hero__img {
        width: 45.45%;
        position: absolute;
        top: 0;
        right: -3.1rem;
        z-index: 0;
    }
}

@media only screen and (min-width: 48.5em) {
    .hero__img {
        width: 45%;
        right: -3rem;
    }
}

@media only screen and (min-width: 50.5em) {
    .hero__img {
        width: 43%;
    }
}

@media only screen and (min-width: 51em) {
    .hero__img {
        width: 42.4%;
    }
}

@media only screen and (min-width: 52em) {
    .hero__img {
        width: 41.7%;
    }
}

@media only screen and (min-width: 57em) {
    .hero__img {
        width: 37.9%;
    }
}

@media only screen and (min-width: 63.5em) {
    .hero__img {
        right: 0;
        width: 40.091%;
    }
}

@media only screen and (min-width: 79.5em) {
    .hero__img {
        width: 36.4%;
    }
}

@media only screen and (min-width: 89.5em) {
    .hero__img {
        width: auto;
        max-width: 40.09%;
    }
}

.hero__text-box {
    max-width: 100%;
    animation: slideUp 0.8s ease-out 0.3s both;
}

@media only screen and (max-width: 42em) {
    .hero__text-box {
        padding: 0 1rem;
    }
}

@media only screen and (min-width: 42em) {
    .hero__text-box {
        grid-column: 1 / 2;
        grid-row: 1;
        position: relative;
        z-index: 1;
        padding: 0;
    }
}

.hero__text {
    margin-bottom: 2.4rem;
    text-align: justify;
}

.description {
    text-align: justify;
}

@media only screen and (max-width: 42em) {
    .hero__text {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media only screen and (min-width: 50.5em) {
    .hero__text {
        padding-right: 3rem;
    }
}

@media only screen and (min-width: 57em) {
    .hero__text {
        padding-right: 14rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .hero__text {
        margin-bottom: 5.732rem;
        padding-right: 16rem;
    }
}

@media only screen and (min-width: 79.5em) {
    .hero__text {
        margin-bottom: 5.866rem;
        padding-right: 26rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .hero__text {
        margin-bottom: 6.5rem;
    }
}

.section-experience {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: grid;
    row-gap: 2.4rem;
    position: relative;
}

.section-skills {
    padding: 8rem 0;
    position: relative;
}

@media only screen and (max-width: 42em) {
    .section-skills {
        padding: 4rem 0;
    }
}

.section-skills .heading-secondary {
    margin-bottom: 4rem;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

@media only screen and (min-width: 42em) {
    .skills__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .skills__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5rem;
    }
}

.skill__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--bg-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill__icon {
    width: 6rem;
    height: 6rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.skill__item:hover .skill__icon {
    transform: scale(1.1) rotate(5deg);
}

.skill__name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-counter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 6rem;
    padding: 4rem 2rem;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
}

@media only screen and (min-width: 42em) {
    .experience-counter {
        grid-template-columns: repeat(3, 1fr);
    }
}

.counter__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.counter__number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

@media only screen and (min-width: 42em) {
    .counter__number {
        font-size: 6rem;
    }
}

.counter__label {
    font-size: 1.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

@media only screen and (max-width: 42em) {
    .section-experience {
        max-width: 100%;
        padding: 4rem 0;
    }
}

@media only screen and (min-width: 42em) {
    .section-experience {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        column-gap: 1.8rem;
        row-gap: 5.2rem;
        padding: 5.2rem 0 0;
        margin-bottom: 2rem;
        border-bottom: none;
    }
}

@media only screen and (min-width: 63.5em) {
    .section-experience {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 3rem;
        row-gap: 5.8rem;
        padding: 7.3rem 0 0;
    }
}

@media only screen and (min-width: 79.5em) {
    .section-experience {
        column-gap: 3.75rem;
        margin-bottom: 3.2rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .section-experience {
        margin-bottom: 3.6rem;
    }
}

.section-experience::before {
    position: absolute;
    content: url(../assets/images/pattern-rings.svg);
    bottom: 0;
    left: 50vw;
    transform: translateY(50%);
}

[data-theme="light"] .section-experience::before {
    filter: invert(1);
}

@media only screen and (min-width: 42em) {
    .section-experience::before {
        left: 72vw;
    }
}

@media only screen and (min-width: 63.5em) {
    .section-experience::before {
        left: 83vw;
    }
}

@media only screen and (min-width: 79.5em) {
    .section-experience::before {
        left: 97.9rem;
        bottom: 1rem;
    }
}

@media only screen and (max-width: 42em) {
    .experience__text-box {
        max-width: 100%;
        padding: 0 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media only screen and (min-width: 63.5em) {
    .experience__text-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.21rem;
    }

    .experience__text-box {
        transition: transform 0.3s ease;
    }

    .experience__text-box:hover {
        transform: translateY(-5px);
    }
}

@media only screen and (min-width: 79.5em) {
    .experience__text-box {
        gap: 1.4rem;
    }
}

.section-projects {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 6rem;
}

@media only screen and (max-width: 42em) {
    .section-projects {
        padding: 0;
    }
}

@media only screen and (min-width: 23em) {
    .section-projects {
        row-gap: 4rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .section-projects {
        row-gap: 6.918rem;
    }
}

@media only screen and (min-width: 79.5em) {
    .section-projects {
        row-gap: 7.111rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .section-projects {
        row-gap: 8rem;
    }
}

.projects__title-box {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.projects__title-box .btn {
    width: auto;
    text-align: center;
}

@media only screen and (min-width: 42em) {
    .projects__title-box {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .projects__title-box .btn {
        flex-shrink: 0;
    }
}

.projects__boxes {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 6rem;
}

@media only screen and (min-width: 23em) {
    .projects__boxes {
        row-gap: 4rem;
    }
}

@media only screen and (min-width: 42em) {
    .projects__boxes {
        grid-template-columns: 1fr 1fr;
        column-gap: 2.4rem;
        row-gap: 6rem;
    }
}

@media only screen and (min-width: 79.5em) {
    .projects__boxes {
        column-gap: 2.666rem;
        row-gap: 6.133rem;
    }
}

@media only screen and (min-width: 89.5em) {
    .projects__boxes {
        column-gap: 3rem;
        row-gap: 6.9rem;
    }
}

.projects__box {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2rem;
    transition: transform 0.3s ease;
}

.projects__box:hover {
    transform: translateY(-8px);
}

@media only screen and (min-width: 79.5em) {
    .projects__box {
        display: flex;
        flex-direction: column;
    }
}

@media only screen and (min-width: 79.5em) {
    .projects__pic-box {
        position: relative;
    }

    .projects__overlay {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4.8rem;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: transparent;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: all 300ms ease-in-out;
        -webkit-transition: all 300ms ease-in-out;
        z-index: 10;
    }

    .projects__pic-box:hover .projects__overlay {
        opacity: 1;
        visibility: visible;
    }
}

.projects__overlay {
    display: none;
}

.projects__img {
    display: block;
    width: 100%;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.projects__img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.projects__img.loaded {
    opacity: 1;
}

.projects__pic-box:hover .projects__img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.projects__project-title {
    display: grid;
    gap: 0.7rem;
}

.projects__languages {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    list-style: none;
}

.projects__language {
    font-size: 1.6rem;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.projects__language:hover {
    color: var(--accent-color);
}

.projects__language::after {
    content: "|";
    color: var(--accent-color);
    margin-left: 1.3rem;
}

.projects__language:last-child::after {
    content: none;
}

.projects__links {
    gap: 3rem;
}

@media only screen and (max-width: 42em) {
    .projects__links {
        flex-direction: column;
        gap: 1rem;
    }

    .projects__links .btn {
        width: 100%;
        margin-top: 0 !important;
    }
}

.footer {
    grid-column: full-start / full-end;
    background-color: var(--bg-secondary);
    padding: 6rem 0;
    display: grid;
    grid-template-columns: [full-start] minmax(1.6rem, 1fr) [center-start] repeat(12, [col-start] minmax(min-content, 9.25rem) [col-end]) [center-end] minmax(1.6rem, 1fr) [full-end];
    row-gap: 8.7rem;
    position: relative;
    transition: background-color 0.3s ease;
}

@media only screen and (min-width: 42em) {
    .footer {
        grid-template-columns: [full-start] minmax(3rem, 1fr) [center-start] repeat(12, [col-start] minmax(min-content, 9.25rem) [col-end]) [center-end] minmax(3rem, 1fr) [full-end];
    }
}

@media only screen and (min-width: 63.5em) {
    .footer {
        padding: 8.4rem 0;
        row-gap: 9.2rem;
    }
}

.footer::before {
    position: absolute;
    content: url(../assets/images/pattern-rings.svg);
    bottom: 25.5rem;
    right: 50vw;
    z-index: 0;
}

@media only screen and (min-width: 42em) {
    .footer::before {
        bottom: 15.7rem;
        right: 77.5vw;
    }
}

@media only screen and (min-width: 63.5em) {
    .footer::before {
        bottom: 21.9rem;
        right: 81.5vw;
    }
}

@media only screen and (min-width: 79.5em) {
    .footer::before {
        bottom: 19.9rem;
        right: 80.7vw;
    }
}

@media only screen and (min-width: 89.5em) {
    .footer::before {
        right: 77.43vw;
    }
}

@media only screen and (min-width: 104.5em) {
    .footer::before {
        right: 73.5vw;
    }
}

@media only screen and (min-width: 119em) {
    .footer::before {
        right: 70vw;
    }
}

@media only screen and (min-width: 160em) {
    .footer::before {
        right: 65.25vw;
    }
}

.footer__logo-box {
    grid-column: center-start / center-end;
    border-top: 1px solid var(--border-color);
    padding-top: 3.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 2rem;
}

@media only screen and (min-width: 42em) {
    .footer__logo-box {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__logo:link,
.footer__logo:visited {
    color: var(--text-primary);
    font-size: 2.4rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 3.2rem;
    letter-spacing: -0.033rem;
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
}

@media only screen and (min-width: 42em) {

    .footer__logo:link,
    .footer__logo:visited {
        font-size: 3.2rem;
        letter-spacing: -0.044rem;
    }
}

.footer__logo:hover,
.footer__logo:active {
    color: var(--accent-color);
}

.footer__social-box {
    display: flex;
    align-items: center;
    gap: 2.467rem;
}

.footer__social-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer__social-svg {
    width: 2rem;
    height: 2rem;
}

@media only screen and (min-width: 42em) {
    .footer__social-svg {
        width: 2.4rem;
        height: 2.4rem;
    }
}

.footer__social-logo {
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
}

.footer__social-link:hover .footer__social-svg .footer__social-logo,
.footer__social-link:active .footer__social-svg .footer__social-logo {
    fill: var(--accent-color);
}

.footer__social-logo {
    fill: var(--text-primary);
}

.form {
    grid-column: center-start / center-end;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 5rem;
    overflow-x: hidden;
}

@media only screen and (max-width: 42em) {
    .form {
        padding: 0;
    }
}

@media only screen and (min-width: 42em) {
    .form {
        width: 60.49%;
        transform: translateX(33%);
    }
}

@media only screen and (min-width: 63.5em) {
    .form {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        transform: translateX(0);
        gap: 11rem;
    }
}

@media only screen and (min-width: 79.5em) {
    .form {
        gap: 22rem;
    }
}

@media only screen and (min-width: 63.5em) {
    .form__heading-box {
        text-align: left;
    }
}

.form__group {
    position: relative;
}

.form__group.success .form__input {
    border-bottom: 1px solid var(--accent-color);
}

.form__group.error .form__input {
    border-bottom: 1px solid var(--error-color);
}

.form__group.error .form__small {
    opacity: 1;
    visibility: visible;
}

.form__input {
    font-size: 1.6rem;
    font-family: inherit;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-primary);
    padding: 0.7rem 1.6rem 1.4rem 2.4rem;
    border-radius: 2px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    width: 89.5%;
    display: block;
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
}

@media only screen and (min-width: 63.5em) {
    .form__input {
        width: 90.5%;
    }
}

.form__input:focus {
    outline: none;
}

.form__input::placeholder {
    color: var(--input-placeholder);
    letter-spacing: -0.22px;
}

.form__label {
    color: var(--input-placeholder);
    font-size: 1rem;
    font-weight: 700;
    margin-left: 2rem;
    margin-top: 0.6rem;
    letter-spacing: 0.1rem;
    display: block;
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
}

.form__input:placeholder-shown+.form__label {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4.4rem);
}

.form__small {
    color: var(--error-color);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6rem;
    position: absolute;
    right: 0;
    bottom: 1.1rem;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
}

.form__small::before {
    content: "!";
    position: absolute;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.5rem;
    border-radius: 50%;
    outline: 1px solid currentColor;
    right: 1px;
    top: -4.5rem;
    /* transform: translate(-50%, -50%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.form__status {
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form__status:not(:empty) {
    display: block;
}

.form__status--success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form__status--error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.btn__loader {
    display: inline-block;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 2rem;
    height: 2rem;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}
