@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
* {
    font-family: 'Lato', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: transparent;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100vh;
}

body {
    background: linear-gradient(135deg, #1466a4 0%, #b4c7d6 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

#cursor-ripples {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body > *:not(#cursor-ripples) {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6, span {
    color: #242424;
    text-align: center;
    line-height: 1.25;
}

h1 {
    font-size: 36px;
}

p {
    line-height: 1.5;
    font-size: 16px;
}

a {
    text-decoration: none;
    position: relative;
}

i:hover {
    opacity: 0.7;
    transition: opacity 300ms ease ;
}

.link__hover-effect:after {
    content: "";
    position: absolute;
    height: 3px;
    width: 0;
    bottom: -3px;
    right: 0;
    transition: all 300ms ease;
}

.link__hover-effect--white:after {
    background-color: white;
}

.link__hover-effect--black:after {
    background-color: #162cbc;
}

.link__hover-effect:hover:after {
    width: 100%;
    left: 0;
}

li {
    list-style-type: none;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;  
}

.container {
    padding: 50px 0;
}

.row {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 12px;
}

.text--blue {
    color: #9ac6e8
}

section:nth-child(even) {
    background-color: transparent;
}

.section__title {
    margin-bottom: 20px;
}

/* NAVIGATION BAR */

nav {
    height: 100px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 0 12px;
}

.nav__link--list {
    display: flex;
}

.nav__link--anchor {
    margin: 0 12px;
    color: #9ac6e8;
    font-weight: 700;
}

.nav__link--anchor-primary {
    background-color: #78b7e7;
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    transition:  all 300ms ease;
}

.nav__link--anchor-primary:hover {
    background-color: #1466a4;
}

.personal__logo {
    font-size: 24px;
    color: #78b7e7;
    margin: 0 12px;
    font-weight: bold;
}

/* ABOUT ME */

#about-me {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-me__info {
    display: flex;
    flex-direction: column;
}

.about-me__info--container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-me__picture--mask {
    width: 100px;
    height: 100px;
    border-radius:  50%;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 28px;
    animation: animate-profile-picture 800ms 300ms backwards;
}

@keyframes animate-profile-picture {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.about-me__picture {
    width: 100%;
    transform: scale(1.5);
    padding-top: 8px;


}

.about-me__info--title {
    font-size: 16px;
    animation: fade-up 650ms 400ms backwards
}
.about-me__info--para {
    font-size: 20px;
    margin-bottom: 28px;
    animation: fade-up 650ms 600ms backwards
}

.about-me__link {
    font-size: 20px;
    color: #1b2a8b;
    padding: 0 16px;
}

.about-me__link {
    font-size: 20px;
    color: #78b7e7;          
    padding: 0 16px;
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease;
}

.about-me__link:hover {
    transform: scale(1.3);
    color: #162cbc;          
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.about-me__img--container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.about-me__visual {
    width: 100%;
    max-width: 420px;
    animation: fade-in 1200ms 800ms backwards;
}

.code-editor {
    display: block;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background-color: #1c1d25;
    box-shadow: 0 12px 32px rgba(20, 102, 164, 0.35);
    text-align: left;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.code-editor:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(20, 102, 164, 0.45);
}

.code-editor:focus-visible {
    outline: 3px solid #9ac6e8;
    outline-offset: 4px;
}

.code-editor__chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 16px;
    background-color: #252730;
}

.code-editor__dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.code-editor__dots::before,
.code-editor__dots::after {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #febc2e;
}

.code-editor__dots::before {
    background-color: #ff5f57;
    box-shadow: 18px 0 0 #febc2e;
}

.code-editor__dots::after {
    background-color: #28c840;
}

.code-editor__filename {
    flex: 1;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #b4c7d6;
}

.code-editor__body {
    display: flex;
    min-height: 200px;
    padding: 16px 12px 20px 0;
    background-color: #1c1d25;
    border-left: 3px solid rgba(20, 102, 164, 0.55);
    margin-left: 16px;
}

.code-editor__gutter {
    margin: 0;
    padding: 0 12px 0 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #5a6a7a;
    user-select: none;
    pointer-events: none;
}

.code-editor__pre {
    flex: 1;
    margin: 0;
    padding: 0 16px 0 0;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #b4c7d6;
}

.code-editor__code {
    display: block;
    white-space: pre;
}

.code-editor__caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background-color: #9ac6e8;
    animation: code-editor-caret-blink 1s step-end infinite;
}

.code-editor__caret--hidden {
    display: none;
}

.tok-comment {
    color: #78b7e7;
}

.tok-keyword {
    color: #9ac6e8;
}

.tok-name {
    color: #78b7e7;
}

.tok-tag {
    color: #78b7e7;
}

.tok-string {
    color: #b4c7d6;
}

.tok-plain {
    color: #b4c7d6;
}

.tok-prop {
    color: #9ac6e8;
}

@keyframes code-editor-caret-blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .code-editor__caret {
        animation: none;
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.wave {
    display: inline-block;
    animation: animate-wave 500ms infinite ease-in-out;
}

@keyframes animate-wave {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* TECH STACK */

.language__img {
    width: 100%;
    max-width: 100px;
    transition: all 300ms;
}

.language:hover  .language__img {
    filter: brightness(80%);
    opacity: .86;
    transform: scale(0.9);
}

.language {
    width: 25%;
    display: flex;
    justify-content: center;
    position: relative;
}

.language__img--wrapper {
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 25px 16px;

}

.language__list {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.language__name {
    position: absolute;
    bottom: 0;
    transform: scale(0);
    transition: all 300ms;
}
.language:hover .language__name {
    transform: scale(1);
    opacity: 1;
}

/* PROJECTS */

.project {
   margin-bottom: 135px;
}

.project:last-child {
    margin-bottom: 40px;
}
.project__img {
    width: 100%;
    transition: all 500ms ease;
}

.project__wrapper {
    display: flex;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.project__wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #1c1d25;
    opacity: 0;
    transition: opacity 450ms ease;
    z-index: 2;
}

.project:hover .project__wrapper:before {
    opacity: 0.7;
}

.project:hover .project__img {
    transform: scale(1.07);
    filter:blur(5px);
}

.project__list {
    padding-top: 40px;
}

.project:hover .project__description {
    opacity: 1;
    transform: translateY(-50%);
}

.project__description {
    position:absolute;
    top: 50%;
    left: 90px;
    transform: translateY(100%);
    max-width: 550px;
    z-index: 3;
    opacity: 0;
    transition: transform 450ms, opacity 300ms;
}

.project_description--title {
    font-size: 40px;
}

.project__description--para {
    margin: 16px 0
}

.project__description--link {
    font-size: 20px;
    margin-right: 16px;
}

.project__description--title,
.project__description--sub-title,
.project__description--para,
.project__description--link {
    text-align: left;
    color: #fff
}

/* FOOTER */

footer {
    background-color: transparent;
}

.footer__social--list {
    margin-bottom: 28px;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-around;
}

.footer__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8% 0;
}

.footer__logo--img {
    width: 70px;
    height: 70px;
}

.footer__social--link,
.footer__copyright,
.footer__logo--popup {
    color: #162cbc;
}

.footer__logo--popup {
    position: absolute;
    right: 0;
    top: 30px;
    font-weight: 700;
    opacity: 0;
    transition: all 300ms ease;
}

.footer__anchor {
    position: relative;
    margin-bottom: 20px;
}

.footer__anchor:hover .footer__logo--popup {
    transform: translateX(60px);
    opacity: 1;
}

/* MEDIA */
/* TABLETS AND LARGE PHONES */
@media (max-width: 768px) {
    nav {
        height: 68px;
    }

    h1 {
        font-size: 20px;
    }

    .about-me__info--para {
        font-size: 18px;
    }

    .language {
        width: calc(100% / 2);
    }

    .project__description--para {
        font-size: 14px;
    }

    .project__description {
        left: 30px;
        padding-right: 30px;
    }
}

/* SMALL PHONES */
@media (max-width: 480px) {
    .nav__link:not(:last-child) {
        display: none;
    }

    .project__description {
        padding: 0;
        left: 0;
        width: 100%;
    }

    .project__description--para {
        display: none;
    }

    .project__description--links {
        display: flex;
        justify-content: center;
    }

    .project__description--title {
        font-size: 32px;
        line-height: 1;
        text-align: center;
    }
    .project__description--title,
    .project__description--sub-title {
        text-align: center;
        margin: 12px 0;
    }


}