/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*==================== VARIABLES CSS ====================*/
/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;

    /*========== Monochrome Color Tokens (Light Mode: White Major, Black Accent) ==========*/
    --first-color: #09090b;
    --first-color-second: #18181b;
    --first-color-alt: #27272a;
    --first-color-lighter: #e4e4e7;
    --button-text-color: #ffffff;
    --blob-color: #e4e4e7;
    --title-color: #09090b;
    --text-color: #3f3f46;
    --text-color-light: #71717a;
    --input-color: #f4f4f5;
    --body-color: #ffffff;
    --container-color: #ffffff;
    --border-color: #e4e4e7;
    --scroll-bar-color: #e4e4e7;
    --scroll-thumb-color: #a1a1aa;

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;

    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margenes Bottom ==========*/
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*========== Variables Dark Theme (Pitch Black Major, Crisp White Accent) ==========*/
body.dark-theme {
    --first-color: #ffffff;
    --first-color-second: #18181b;
    --first-color-alt: #e4e4e7;
    --first-color-lighter: #27272a;
    --button-text-color: #09090b;
    --blob-color: #1a1a24;
    --title-color: #ffffff;
    --text-color: #a1a1aa;
    --text-color-light: #71717a;
    --input-color: #121217;
    --body-color: #050508;
    --container-color: #0d0d12;
    --border-color: #27272a;
    --scroll-bar-color: #18181b;
    --scroll-thumb-color: #3f3f46;
}

/*========== Button Dark/Light ==========*/
.nav__btns {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.change-theme {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: .3s;
}

.change-theme:hover {
    color: var(--first-color);
}

/*==================== BASE ====================*/
*, ::before, ::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    transition: background-color .3s;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

.main {
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
    padding: 2rem 0 4rem;
}

.section__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
    text-align: center;
}

/*==================== LAYOUT ====================*/
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

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

.header {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
    transition: background-color .3s;
}

/*==================== NAV ====================*/
.nav {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    font-size: var(--h3-font-size);
    transition: .3s;
}

.nav__logo span {
    color: var(--first-color);
}

.nav__logo:hover {
    color: var(--first-color);
}

.nav__toggle {
    font-size: 1.1rem;
    color: var(--title-color);
    cursor: pointer;
    transition: .3s;
}

.nav__toggle:hover {
    color: var(--first-color);
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
        border-radius: 1.5rem 1.5rem 0 0;
        transition: .3s;
    }
}

/* Show menu */
.show-menu {
    bottom: 0;
}

.nav__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
}

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

.nav__icon {
    font-size: 1.2rem;
}

.nav__close {
    position: absolute;
    right: 1.3rem;
    bottom: .5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--first-color);
    transition: .3s;
}

.nav__close:hover {
    color: var(--first-color-alt);
}

/* Active link */
.active-link {
    color: var(--first-color);
}

/* Change background header */
.scroll-header {
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
}

/*==================== HOME ====================*/
.home__container {
    gap: 2rem;
    max-width: 1050px;
    margin: 0 auto;
}

.home__content {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
}

@media screen and (min-width: 768px) {
    .home__content {
        grid-template-columns: 1.2fr 1fr;
        gap: 3.5rem;
    }

    .home__img {
        justify-self: center;
        order: 2;
    }

    .home__data {
        grid-column: 1 !important;
        order: 1;
    }
}

.home__blob {
    width: 320px;
    fill: var(--blob-color);
    justify-self: center;
    transition: transform 0.4s ease;
}

.home__blob:hover {
    transform: scale(1.03);
}

.home__blob-img {
    width: 200px;
}

.home__data {
    grid-column: auto;
}

.home__title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home__title-accent {
    color: var(--first-color);
}

.home__subtitle {
    font-size: 1.25rem;
    color: var(--text-color-light);
    font-weight: var(--font-medium);
    margin-bottom: 1.25rem;
}

.home__description {
    margin-bottom: var(--mb-2);
    font-size: 1rem;
    line-height: 1.6;
}

.home__scroll {
    display: none;
}

.home__scroll-button {
    color: var(--first-color);
    transition: .3s;
}

.home__scroll-button:hover {
    transform: translateY(.25rem);
}

.home__scroll-mouse {
    font-size: 2rem;
}

.home__scroll-name {
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
    font-size: 1.25rem;
}

/*==================== BUTTONS ====================*/
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--button-text-color);
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    border: 1px solid var(--first-color);
    transition: .3s;
}

.button:hover {
    background-color: var(--first-color-alt);
    color: var(--button-text-color);
}

.button--flex {
    display: inline-flex;
    align-items: center;
}

.button__icon {
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: .3s;
}

.button:hover .button__icon {
    transform: translateX(4px);
}

.button--white {
    background-color: #fff;
    color: var(--first-color);
}

.button--white:hover {
    background-color: #fff;
}

.button--small {
    padding: .75rem 1rem;
}

.button--link {
    padding: 0;
    background-color: transparent;
    color: var(--first-color);
}

.button--link:hover {
    background-color: transparent;
    color: var(--first-color-alt);
}

.about__img {
    width: 240px;
    height: 290px;
    object-fit: contain;
    object-position: bottom center;
    background-color: #121218;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding-top: 1rem;
    justify-self: center;
    align-self: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

body.dark-theme .about__img {
    background-color: #0d0d12;
    border-color: #27272a;
}

.about__description {
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.about__info {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2-5);
}

.about__info-title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.about__info-name {
    font-size: var(--smaller-font-size);
}

.about__info-title,
.about__info-name {
    display: block;
    text-align: center;
}

.about__buttons {
    display: flex;
    justify-content: center;
}

/*==================== SKILLS ====================*/
.skills__container {
    row-gap: 0;
}

.skills__header {
    display: flex;
    align-items: center;
    margin-bottom: var(--mb-2-5);
    cursor: pointer;
}

.skills__icon,
.skills__arrow {
    font-size: 2rem;
    color: var(--first-color);
}

.skills__icon {
    margin-right: var(--mb-0-75);
}

.skills__title {
    font-size: var(--h3-font-size);
}

.skills__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.skills__arrow {
    margin-left: auto;
    transition: .4s;
}

.skills__list {
    row-gap: 1.5rem;
    padding-left: 2.7rem;
}

.skills__titles {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--mb-0-5);
}

.skills__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage {
    height: 5px;
    border-radius: .25rem;
}

.skills__bar {
    background-color: var(--first-color-lighter);
}

.skills__percentage {
    display: block;
    background-color: var(--first-color);
    transition: width 1s ease;
}

/* Skill Percentages */
.skills__python    { width: 80%; }
.skills__java      { width: 75%; }
.skills__ml        { width: 70%; }
.skills__os        { width: 72%; }
.skills__design    { width: 90%; }
.skills__animation { width: 85%; }
.skills__video     { width: 88%; }
.skills__audio     { width: 92%; }

.skills__close .skills__list {
    height: 0;
    overflow: hidden;
}

.skills__open .skills__list {
    height: max-content;
    margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
    transform: rotate(-180deg);
}

.skills__content {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .75rem;
    margin-bottom: var(--mb-1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: box-shadow .3s;
}

.skills__content:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

/*==================== QUALIFICATION ====================*/
.qualification__tabs {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2);
}

.qualification__button {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    color: var(--title-color);
    transition: .3s;
}

.qualification__button:hover {
    color: var(--first-color);
}

.qualification__icon {
    font-size: 1.8rem;
    margin-right: var(--mb-0-25);
}

.qualification__data {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    column-gap: 1.5rem;
}

.qualification__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.qualification__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
}

.qualification__calendar {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.qualification__rounder {
    display: inline-block;
    width: 13px;
    height: 13px;
    background-color: var(--first-color);
    border-radius: 50%;
}

.qualification__line {
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--first-color);
    transform: translate(6px, -7px);
}

.qualification__content[data-content] {
    display: none;
}

.qualification__active[data-content] {
    display: block;
}

.qualification__button.qualification__active {
    color: var(--first-color);
}

/*==================== SERVICES ====================*/
.services__container {
    gap: 1.5rem;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

@media screen and (min-width: 568px) {
    .services__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.services__content {
    position: relative;
    background-color: var(--container-color);
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
    transition: .3s;
}

.services__content:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border-color: var(--first-color);
}

.services__icon {
    display: block;
    font-size: 1.5rem;
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.services__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    font-weight: var(--font-medium);
}

.services__button {
    cursor: pointer;
    font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
    transform: translateX(.25rem);
}

.services__modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.services__modal-content {
    position: relative;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.services__modal-services {
    row-gap: 1rem;
}

.services__modal-service {
    display: flex;
    align-items: flex-start;
    column-gap: .5rem;
}

.services__modal-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-1-5);
}

.services__modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
    transition: .3s;
}

.services__modal-close:hover {
    color: var(--first-color-alt);
}

.services__modal-icon {
    color: var(--first-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Active Modal */
.active-modal {
    opacity: 1;
    visibility: visible;
}

/*==================== PORTFOLIO ====================*/
.portfolio__container {
    overflow: initial;
}

.portfolio__content {
    padding: 0 1.5rem;
}

.portfolio__img {
    width: 265px;
    border-radius: .5rem;
    justify-self: center;
}

.portfolio__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
}

.portfolio__description {
    margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
    transform: translateX(.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: '';
}

.swiper__icon {
    font-size: 2rem;
    color: var(--first-color);
}

.swiper-button-prev {
    left: -.5rem;
}

.swiper-button-next {
    right: -.5rem;
}

.swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
    background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
    outline: none;
}

/*==================== PROJECT IN MIND ====================*/
.project__bg {
    background-color: #09090b;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

body.dark-theme .project__bg {
    background-color: #09090c;
    border-top: 1px solid #27272a;
    border-bottom: 1px solid #27272a;
}

.project__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-0-75);
}

.project__description {
    margin-bottom: var(--mb-1-5);
}

.project__title,
.project__description {
    color: #fff;
}

.project__canvas-wrapper {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project__img-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project__img-canvas:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.button--white {
    background-color: #ffffff;
    color: #09090b;
    border: 1px solid #ffffff;
}

.button--white:hover {
    background-color: #e4e4e7;
    color: #09090b;
}

/*==================== FOOTER ====================*/
.footer {
    padding-top: 2rem;
}

.footer__bg {
    background-color: #09090b;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--border-color);
}

body.dark-theme .footer__bg {
    background-color: #030305;
    border-top: 1px solid #27272a;
}

.footer__title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-0-25);
    color: #fff;
}

.footer__title span {
    color: var(--first-color-lighter);
}

.footer__subtitle {
    font-size: var(--small-font-size);
    color: var(--first-color-lighter);
}

.footer__links {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.footer__link:hover {
    color: var(--first-color-lighter);
}

.footer__link {
    color: #fff;
    transition: .3s;
}

.footer__social {
    font-size: 1.25rem;
    margin-right: var(--mb-1-5);
    color: #fff;
    transition: .3s;
}

.footer__social:hover {
    color: var(--first-color-lighter);
}

.footer__copy {
    font-size: var(--smaller-font-size);
    text-align: center;
    color: var(--text-color-light);
    margin-top: var(--mb-3);
}

.footer__container {
    gap: 3.5rem;
}

.footer__bg .footer__copy {
    color: hsl(var(--hue-color), 8%, 90%);
}

/*========== SCROLL UP ==========*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    opacity: .8;
    padding: 0 .3rem;
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
}

.scrollup:hover {
    background-color: var(--first-color-alt);
}

.scrollup__icon {
    font-size: 1.5rem;
    color: #fff;
}

/* Show scroll */
.show-scroll {
    bottom: 5rem;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
    width: .60rem;
    background-color: var(--scroll-bar-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .nav__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .home__content {
        grid-template-columns: .25fr 3fr;
    }

    .home__blob {
        width: 180px;
    }

    .skills__title {
        font-size: var(--normal-font-size);
    }

    .qualification__data {
        gap: .5rem;
    }

    .services__container {
        grid-template-columns: max-content;
        justify-content: center;
    }

    .services__content {
        padding-right: 6rem;
    }

    .services__modal {
        padding: 0 .5rem;
    }

    .project__img {
        width: 200px;
    }

    .testimonial__data,
    .testimonial__header {
        flex-direction: column;
        align-items: center;
    }

    .testimonial__img {
        margin-right: 0;
        margin-bottom: var(--mb-0-25);
    }

    .testimonial__data {
        row-gap: .25rem;
    }
}

/* For medium devices */
@media screen and (min-width: 568px) {
    .home__content {
        grid-template-columns: max-content 1fr 1fr;
    }

    .home__data {
        grid-column: initial;
    }

    .home__img {
        order: 1;
        justify-self: center;
    }

    .about__container,
    .portfolio__content,
    .project__container,
    .contact__container,
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .qualification__sections {
        display: grid;
        grid-template-columns: .6fr;
        justify-content: center;
    }
}

@media screen and (min-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    body {
        margin: 0;
    }

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

    .section__subtitle {
        margin-bottom: 4rem;
    }

    .header {
        top: 0;
        bottom: initial;
    }

    .header,
    .main,
    .footer__container {
        padding: 0 1rem;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
        column-gap: 1rem;
    }

    .nav__icon,
    .nav__close,
    .nav__toggle {
        display: none;
    }

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

    .nav__menu {
        margin-left: auto;
    }

    .change-theme {
        margin: 0;
    }

    .home__container {
        row-gap: 5rem;
    }

    .home__content {
        padding-top: 5.5rem;
        column-gap: 2rem;
    }

    .home__blob {
        width: 320px;
    }

    .home__scroll {
        display: block;
    }

    .home__scroll-button {
        margin-left: 3rem;
    }

    .about__container {
        column-gap: 5rem;
    }

    .about__img {
        width: 350px;
    }

    .about__description {
        text-align: initial;
    }

    .about__info {
        justify-content: space-between;
    }

    .about__buttons {
        justify-content: initial;
    }

    .qualification__tabs {
        justify-content: center;
        column-gap: 4rem;
    }

    .qualification__button {
        margin: 0 var(--mb-1);
    }

    .qualification__sections {
        grid-template-columns: .5fr;
    }

    .services__container {
        grid-template-columns: repeat(3, 218px);
        justify-content: center;
    }

    .services__icon {
        font-size: 2rem;
    }

    .services__content {
        padding: 6rem 0 2rem 2.5rem;
    }

    .services__modal-content {
        width: 450px;
    }

    .portfolio__img {
        width: 320px;
    }

    .portfolio__content {
        align-items: center;
    }

    .project__container {
        background-color: var(--first-color-second);
        border-radius: 1rem;
        padding: 3rem 2.5rem 0;
        grid-template-columns: 1fr max-content;
        column-gap: 3rem;
    }

    .project__data {
        padding-top: .8rem;
    }

    .testimonial__img {
        width: 72px;
        height: 72px;
    }

    .footer__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__bg {
        padding: 3rem 0 3.5rem;
    }

    .footer__links {
        flex-direction: row;
        column-gap: 2rem;
    }

    .footer__socials {
        justify-self: flex-end;
    }

    .footer__copy {
        margin-top: 4.5rem;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav {
        max-width: 1200px;
    }

    .section__title {
        font-size: 2.5rem;
    }

    .section__subtitle {
        font-size: 1rem;
        margin-bottom: 3.5rem;
    }

    .header,
    .main,
    .footer__container {
        padding: 0;
    }

    .home__container {
        row-gap: 4rem;
    }

    .home__content {
        grid-template-columns: max-content 1.1fr 1fr;
        column-gap: 3.5rem;
        padding-top: 6rem;
    }

    .home__social {
        transform: none;
    }

    .home__social-icon {
        font-size: 1.6rem;
    }

    .home__blob {
        width: 440px;
    }

    .home__title {
        font-size: 3.5rem;
        line-height: 1.15;
    }

    .home__subtitle {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    .home__description {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 2.5rem;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 6rem;
        align-items: center;
    }

    .about__img {
        width: 320px;
        height: 380px;
    }

    .about__description {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .about__info {
        column-gap: 3rem;
    }

    .about__info-title {
        font-size: 2.25rem;
    }

    .about__info-name {
        font-size: .9rem;
    }

    .skills__container {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .services__container {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .services__content {
        padding: 5rem 1.5rem 2rem 1.5rem;
    }

    .services__title {
        font-size: 1.25rem;
    }

    .portfolio__container {
        max-width: 1100px;
    }

    .portfolio__content {
        grid-template-columns: 1.2fr 1fr;
        column-gap: 4rem;
        align-items: center;
    }

    .portfolio__img {
        width: 100%;
        max-width: 500px;
        border-radius: 1rem;
    }

    .portfolio__title {
        font-size: 1.5rem;
    }

    .portfolio__description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .project__container {
        padding: 4rem 4rem;
        grid-template-columns: 1fr max-content;
        column-gap: 4rem;
        align-items: center;
    }

    .project__title {
        font-size: 2.25rem;
    }

    .project__description {
        font-size: 1.1rem;
    }

    .project__img {
        width: 280px;
    }

    .contact__container {
        grid-template-columns: 1fr 1.3fr;
        column-gap: 5rem;
    }

    .contact__form {
        width: 100%;
    }

    .contact__inputs {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
    }

    .footer__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*==================== KEYFRAME & MICRO ANIMATIONS ====================*/
.home__blob {
    animation: floatBlob 5s ease-in-out infinite;
}

@keyframes floatBlob {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.button {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(110, 89, 234, 0.35);
}

.services__content {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.services__content:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.portfolio__img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio__img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about__img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about__img:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(110, 89, 234, 0.3);
}

/*==================== POSTER SHOWCASE SECTION ====================*/
.poster-section {
    padding: 4rem 0 3rem;
}

.poster__container {
    display: flex;
    justify-content: center;
}

.poster__frame-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 820px;
}

.poster__frame {
    position: relative;
    width: 100%;
    max-width: 820px;
    background: #0b0b0f;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
}

.poster__frame:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.55), 0 0 25px rgba(255, 255, 255, 0.12);
}

.poster__frame-bar {
    height: 42px;
    background: #14141d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.poster__frame-title {
    font-size: 0.85rem;
    color: #e4e4e7;
    font-weight: var(--font-medium);
}

.poster__frame-dots {
    display: flex;
    gap: 7px;
}

.poster__frame-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.poster__frame-dots .dot.red { background: #ff5f56; }
.poster__frame-dots .dot.yellow { background: #ffbd2e; }
.poster__frame-dots .dot.green { background: #27c93f; }

.poster__frame-viewport {
    position: relative;
    width: 100%;
    flex: 1;
    background: #050508;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.poster__frame-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.poster__frame:hover .poster__frame-img {
    transform: scale(1.02);
}

.poster__frame-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}

.poster__frame:hover .poster__frame-hint {
    background: var(--first-color);
    color: var(--button-text-color);
    transform: scale(1.05);
}

/*==================== POSTER LIGHTBOX MODAL ====================*/
.poster__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.poster__modal.active-poster-modal {
    opacity: 1;
    visibility: visible;
}

.poster__modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster__modal-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.poster__modal-close {
    position: absolute;
    top: -2.8rem;
    right: 0;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.poster__modal-close:hover {
    color: var(--first-color);
    transform: scale(1.15);
}

/*==================== TERMINAL SHOWCASE SECTION ====================*/
.terminal-section {
    padding: 2rem 0 6rem;
}

.terminal__section-container {
    display: flex;
    justify-content: center;
    max-width: 850px;
}

.terminal__container {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 480px;
    min-height: 480px;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.terminal__container:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 255, 255, 0.05);
    transform: translateY(-6px);
}

.terminal__header {
    height: 42px;
    background: #14141d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal__dots {
    display: flex;
    gap: 7px;
}

.terminal__dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal__dots .dot.red { background: #ff5f56; }
.terminal__dots .dot.yellow { background: #ffbd2e; }
.terminal__dots .dot.green { background: #27c93f; }

.terminal__title {
    font-size: 0.82rem;
    color: #a1a1aa;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal__badge {
    font-size: 0.7rem;
    color: #71717a;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.terminal__body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #e4e4e7;
    background: #09090d;
}

/* Custom Scrollbar for Terminal */
.terminal__body::-webkit-scrollbar {
    width: 6px;
}
.terminal__body::-webkit-scrollbar-track {
    background: #09090d;
}
.terminal__body::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}

/* Terminal Syntax Highlighting */
.t-prompt { color: #71717a; }
.t-user { color: #38bdf8; font-weight: 600; }
.t-path { color: #a7f3d0; }
.t-cmd { color: #34d399; font-weight: 600; }
.t-flag { color: #38bdf8; }
.t-str { color: #fde047; }
.t-out { color: #a1a1aa; }
.t-success { color: #10b981; }
.t-accent { color: #c084fc; }

/* Blinking Terminal Cursor */
.t-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: #e4e4e7;
    margin-left: 4px;
    vertical-align: middle;
    animation: termBlink 1s step-start infinite;
}

@keyframes termBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/*==================== ADVANCED GLOBAL ANIMATIONS ====================*/

/* Floating Profile Blob Animation */
.home__blob {
    animation: floatBlob 6s ease-in-out infinite;
}

@keyframes floatBlob {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-14px) rotate(1.5deg);
    }
}

/* Pulsing Accent Effect */
.home__title-accent {
    display: inline-block;
    animation: accentPulse 3s ease-in-out infinite;
}

@keyframes accentPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

/* Nav Link Hover Underline Expansion */
.nav__link {
    position: relative;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--first-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Interactive Card Elevate & Glow Effects */
.services__content {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.services__content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: var(--first-color);
}

.portfolio__content {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio__content:hover {
    transform: translateY(-6px);
}

.portfolio__img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio__content:hover .portfolio__img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* Button Pulse & Press Ripple Animation */
.button {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Section Title Hover Underline Glow */
.section__title {
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--first-color);
    margin: 8px auto 0;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section:hover .section__title::after {
    width: 80px;
}



