/*=============== GOOGLE VARIABLES ===============*/
:root {
    --header-height: 3.5rem;

    --hue: 250;

    --first-color: hsl(var(--hue), 66%, 75%);
    --first-color-alt: hsl(var(--hue), 66%, 71%);
    --title-color: hsl(var(--hue), 8%, 95%);
    --text-color: hsl(var(--hue), 8%, 75%);
    --text-color-light: hsl(var(--hue), 8%, 65%);
    --body-color: hsl(var(--hue), 24%, 8%);
    --container-color: hsl(var(--hue), 24%, 12%);

    --body-font: 'Poppins', sans-serif;

    --biggest-font-size: 2.7rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.35rem;
    --h3-font-size: 1.05rem;
    --normal-font-size: .95rem;
    --small-font-size: .813rem;

    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;

    --transition: .35s ease;
}

/*=============== BASE ===============*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background: var(--body-color);
    color: var(--text-color);
    line-height: 1.7;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--body-color);
}

body::-webkit-scrollbar-thumb {
    background: var(--container-color);
    border-radius: 20px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--first-color);
}

::selection {
    background: var(--first-color);
    color: var(--body-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1024px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 5rem 0 2rem;
}

.section__subtitle {
    display: block;
    text-align: center;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    margin-bottom: .5rem;
}

.section__title {
    text-align: center;
    color: var(--title-color);
    font-size: var(--h1-font-size);
    margin-bottom: 3rem;
}

/*=============== HEADER ===============*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
}

.header.scroll-header {
    background: rgba(18, 18, 24, .72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}

/*=============== NAV ===============*/

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--first-color);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .5px;
    transition: var(--transition);
}

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

.nav__list {
    display: flex;
    column-gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
    font-size: .9rem;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -6px;
    background: var(--first-color);
    transition: var(--transition);
}

.nav__link:hover,
.active-link {
    color: var(--first-color);
}

.nav__link:hover::after,
.active-link::after {
    width: 100%;
}

/*=============== HOME ===============*/

.home__container {
    row-gap: 2rem;
    padding-top: 5rem;
    text-align: center;
}

.home__greeting {
    color: var(--text-color-light);
}

.home__name {
    color: var(--title-color);
    font-size: var(--biggest-font-size);
    margin: .5rem 0;
}

.home__profession {
    color: var(--first-color);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: .75rem;
}

.home__subtitle {
    max-width: 650px;
    margin: 0 auto 2rem;
    color: var(--text-color-light);
    font-weight: 400;
}

.home__handle {
    justify-self: center;
    width: 240px;
    height: 320px;
    border-radius: 12rem 12rem 1rem 1rem;
    overflow: hidden;

    background: linear-gradient(180deg,
            hsla(250, 66%, 75%, 1),
            hsla(250, 66%, 75%, .15));

    animation: floatImage 5s ease-in-out infinite;
}

.home__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.4rem;
    border-radius: .75rem;

    background: var(--first-color);
    color: var(--body-color);

    font-weight: 500;

    transition: var(--transition);
}

.button:hover {
    transform: translateY(-4px);
    background: var(--first-color-alt);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.button--ghost {
    background: transparent;
    border: 2px solid var(--first-color);
    color: var(--first-color);
}

.button--ghost:hover {
    color: var(--body-color);
}

.home__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.home__social-link {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    background: var(--container-color);

    color: var(--first-color);

    border-radius: .75rem;

    font-size: 1.25rem;

    transition: var(--transition);
}

.home__social-link:hover {
    background: var(--first-color);
    color: var(--body-color);
    transform: translateY(-5px);
}

/*=============== FLOAT ANIMATION ===============*/

@keyframes floatImage {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }

}

/*=============== ABOUT ===============*/

.about__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 3rem;
}

.about__img-wrapper {
    width: 260px;
    height: 320px;
    justify-self: center;

    overflow: hidden;
    border-radius: 1.5rem;

    transition: var(--transition);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: .6s;
}

.about__img-wrapper:hover .about__img {
    transform: scale(1.08);
}

.about__data {
    text-align: center;
}

.about__description {
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.9;
}

/*=============== PROJECTS ===============*/

.work__container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.work__card {
    background: var(--container-color);

    border-radius: 1.25rem;

    overflow: hidden;

    cursor: pointer;

    transition: .4s;

    border: 1px solid transparent;
}

.work__card:hover {

    transform: translateY(-10px);

    border-color: rgba(255, 255, 255, .08);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .35);

}

.work__img {

    width: 100%;
    height: 180px;

    object-fit: cover;

    transition: .5s;

}

.work__card:hover .work__img {

    transform: scale(1.08);

}

.work__title {

    padding: 1.25rem 1.25rem .25rem;

    color: var(--title-color);

    font-size: 1rem;

}

.work__description {

    padding: 0 1.25rem;

    font-size: .85rem;

    color: var(--text-color-light);

    line-height: 1.7;

    min-height: 90px;

}

.work__button {

    display: inline-flex;

    align-items: center;

    gap: .35rem;

    margin: 1rem 1.25rem 1.5rem;

    color: var(--first-color);

    font-size: .9rem;

    transition: .3s;

}

.work__button i {

    transition: .3s;

}

.work__card:hover .work__button i {

    transform: translateX(6px);

}

/*=============== SHOW MORE BUTTON ===============*/

.work__more {

    margin-top: 3rem;

    display: flex;

    justify-content: center;

}

/*=============== CONTACT ===============*/

.contact__content {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 1.75rem;

}

.contact__card {

    background: var(--container-color);

    padding: 2rem 1.5rem;

    border-radius: 1rem;

    text-align: center;

    transition: .35s;

    border: 1px solid transparent;

}

.contact__card:hover {

    transform: translateY(-8px);

    border-color: rgba(255, 255, 255, .08);

    box-shadow:

        0 15px 35px rgba(0, 0, 0, .35);

}

.contact__card-icon {

    font-size: 2rem;

    color: var(--first-color);

    margin-bottom: .75rem;

}

.contact__card-title {

    color: var(--title-color);

    margin-bottom: .25rem;

}

.contact__card-data {

    display: block;

    margin-bottom: 1rem;

    font-size: .85rem;

    word-break: break-word;

}

.contact__button {

    display: inline-flex;

    align-items: center;

    gap: .35rem;

    color: var(--first-color);

    transition: .3s;

}

.contact__button i {

    transition: .3s;

}

.contact__button:hover i {

    transform: translateX(5px);

}

/*=============== STATUS BADGE ===============*/

.status {

    display: inline-block;

    padding: .3rem .7rem;

    border-radius: 20px;

    background: rgba(138, 180, 255, .15);

    color: var(--first-color);

    font-size: .75rem;

    font-weight: 500;

    margin-top: .5rem;

}

/*=============== MODALS ===============*/

.modal {
    position: fixed;
    inset: 0;

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

    padding: 1rem;

    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1000;

    opacity: 0;
    visibility: hidden;

    transition: .35s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal__content {

    position: relative;

    width: 100%;
    max-width: 650px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 2rem;

    border-radius: 1.5rem;

    background: rgba(28, 28, 38, .96);

    border: 1px solid rgba(255, 255, 255, .06);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .45);

    transform: scale(.9) translateY(20px);

    transition: .35s ease;

}

.modal.show .modal__content {

    transform: scale(1) translateY(0);

}

.modal__content::-webkit-scrollbar {

    width: 8px;

}

.modal__content::-webkit-scrollbar-thumb {

    background: var(--first-color);
    border-radius: 20px;

}

.modal__close {

    position: absolute;

    top: 1rem;
    right: 1.2rem;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, .05);

    color: var(--title-color);

    font-size: 1.4rem;

    cursor: pointer;

    transition: .3s;

}

.modal__close:hover {

    background: var(--first-color);

    color: var(--body-color);

    transform: rotate(90deg);

}

.modal__title {

    color: var(--title-color);

    text-align: center;

    margin-bottom: 1.5rem;

}

.modal__img {

    width: 100%;

    border-radius: 1rem;

    margin-bottom: 1.5rem;

    transition: .4s;

}

.modal__img:hover {

    transform: scale(1.02);

}

.modal__img--full {

    max-height: none;

    object-fit: contain;

}

.modal__body h3 {

    color: var(--first-color);

    margin-bottom: .75rem;

}

.modal__body p {

    color: var(--text-color-light);

    line-height: 1.8;

    margin-bottom: 1.25rem;

}

.modal__action {

    margin-top: 1.5rem;

}

/*=============== REVEAL ANIMATION ===============*/

.reveal {

    opacity: 0;

    transform: translateY(40px);

    transition: all .8s ease;

}

.reveal.active {

    opacity: 1;

    transform: translateY(0);

}

/*=============== HOVER IMPROVEMENTS ===============*/

.work__card,
.contact__card,
.button,
.home__social-link,
.about__img-wrapper {

    will-change: transform;

}

/*=============== RESPONSIVE ===============*/

@media screen and (max-width:992px) {

    .container {

        max-width: 90%;

    }

}

@media screen and (max-width:768px) {

    .section {

        padding: 4rem 0 2rem;

    }

    .nav {

        padding-inline: 1rem;

    }

    .nav__list {

        column-gap: 1.2rem;

        flex-wrap: wrap;

        justify-content: center;

    }

    .home__name {

        font-size: 2.3rem;

    }

    .home__profession {

        font-size: 1rem;

    }

    .home__subtitle {

        font-size: .9rem;

    }

    .home__handle {

        width: 210px;
        height: 280px;

    }

    .about__container {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .about__img-wrapper {

        width: 220px;
        height: 280px;

    }

    .modal__content {

        padding: 1.5rem;

    }

}

@media screen and (max-width:576px) {

    .container {

        padding-inline: 1rem;

    }

    .home__buttons {

        flex-direction: column;

        align-items: center;

    }

    .button {

        width: 100%;

        justify-content: center;

    }

    .work__container {

        grid-template-columns: 1fr;

    }

    .contact__content {

        grid-template-columns: 1fr;

    }

    .modal__content {

        max-height: 92vh;

    }

}

@media screen and (min-width:1024px) {

    .section {

        padding: 6rem 0 3rem;

    }

    .home__container {

        padding-top: 6rem;

    }

}

/*=============== END OF FILE ===============*/

/*==================================================
                PROJECTS PAGE
==================================================*/

.projects__list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project__card {

    display: grid;
    grid-template-columns: 320px 1fr;

    gap: 2rem;

    background: var(--container-color);

    border-radius: 1.5rem;

    overflow: hidden;

    transition: .35s;

    border: 1px solid transparent;

}

.project__card:hover {

    transform: translateY(-8px);

    border-color: rgba(255, 255, 255, .08);

    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);

}

.project__image {

    overflow: hidden;

}

.project__image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;

}

.project__card:hover .project__image img {

    transform: scale(1.06);

}

.project__content {

    padding: 2rem;

    display: flex;

    flex-direction: column;

    justify-content: center;

}

.project__title {

    font-size: 1.7rem;

    color: var(--title-color);

    margin: .75rem 0;

}

.project__description {

    line-height: 1.8;

    color: var(--text-color);

    margin-bottom: 1.5rem;

}

.project__tech {

    display: flex;

    flex-wrap: wrap;

    gap: .75rem;

    margin-bottom: 2rem;

}

.project__tech span {

    background: rgba(124, 142, 255, .12);

    color: var(--first-color);

    border: 1px solid rgba(124, 142, 255, .15);

    padding: .45rem .9rem;

    border-radius: 30px;

    font-size: .82rem;

    transition: .3s;

}

.project__tech span:hover {

    background: var(--first-color);

    color: var(--body-color);

}

.project__buttons {

    display: flex;

    gap: 1rem;

    flex-wrap: wrap;

}

.project__buttons .button {

    min-width: 160px;

    justify-content: center;

}

/*================ FOOTER ================*/

.footer {

    padding: 4rem 0 2rem;

    text-align: center;

}

.footer__title {

    color: var(--title-color);

    font-size: 1.4rem;

    margin-bottom: .5rem;

}

.footer__subtitle {

    color: var(--text-color-light);

    margin-bottom: 1.5rem;

}

.footer__social {

    display: flex;

    justify-content: center;

    gap: 1rem;

    margin-bottom: 2rem;

}

.footer__social-link {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    background: var(--container-color);

    border-radius: .75rem;

    color: var(--first-color);

    font-size: 1.25rem;

    transition: .3s;

}

.footer__social-link:hover {

    background: var(--first-color);

    color: var(--body-color);

    transform: translateY(-5px);

}

.footer__copy {

    color: var(--text-color-light);

    font-size: .85rem;

}

/*================ RESPONSIVE ================*/

@media screen and (max-width:992px) {

    .project__card {

        grid-template-columns: 1fr;

    }

    .project__image {

        height: 260px;

    }

}

@media screen and (max-width:576px) {

    .project__content {

        padding: 1.5rem;

    }

    .project__title {

        font-size: 1.35rem;

    }

    .project__buttons {

        flex-direction: column;

    }

    .project__buttons .button {

        width: 100%;

    }

}

/* ==================== HEADER & DESKTOP FIX ==================== */
@media screen and (min-width: 768px) {

    .nav__toggle,
    .nav__close {
        display: none !important;
        /* Hides 4-square icon and X icon on desktop */
    }

    .nav__list {
        display: flex;
        column-gap: 2rem;
        align-items: center;
    }

    .nav__menu {
        margin-left: auto;
        /* Aligns nav links cleanly to the right of the logo */
    }
}

/* ==================== CLEAN FOOTER ==================== */
.footer {
    padding: 2.5rem 0;
    text-align: center;
    background-color: transparent;
}

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

.footer__copy {
    font-size: 0.9rem;
    color: #a1a1aa;
}

/* ==================== BULLETPROOF MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active-modal,
.modal.show-modal {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal__content {
    position: relative;
    background-color: #181824;
    padding: 2rem;
    border-radius: 1.25rem;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal__close:hover {
    color: #9d4edd;
}

.modal__title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.modal__img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

.modal__body {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}