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

@import url("/fonts/KiteOne-Regular.ttf");

/* css variables */


/*===== VARIABLES CSS =====*/

:root {
    --header-height: 3rem;
    --font-medium: 500;
}


/*===== Colors =af1b3f==7c5869==42355f*/

:root {
    --first-color: #49416D;
    --white-color: #B3F2DD;
    --dark-color: #E08D79;
    --text-color: #A882DD;
}


/*===== Fonts=====*/

:root {
    --body-font: 'KiteOne';
    --big-font-size: 6.25rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .9rem;
}

@media screen and (min-width: 768px) {
     :root {
        --big-font-size: 10.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}


/*===== Margins =====*/

:root {
    --mb-1: .5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
}


/*===== z index =====*/

:root {
    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}


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

*,
::before,
::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    line-height: 1.6;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}
.bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.35);
}

h1,
h2,
p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

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


/*===== CLASS CSS ===== */

.section {
    padding: 3rem 0;
}

.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin: var(--mb-4) 0;
    text-align: center;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 32px;
    height: .18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}


/*===== LAYOUT =====*/

.bd-grid {
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}

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


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

.nav {
    height: var(--header-height);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        background-color: rgba(255, 255, 255, .3);
        transition: .5s;
        backdrop-filter: blur(10px);
    }
    .col-6 {
        width: 75%;
    }
}

.nav__list {
    text-align: center;
}

.nav__item {
    margin-bottom: var(--mb-4);
}

.nav__link {
    position: relative;
    color: var(--dark-color);
}

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

.nav__logo {
    font-size: var(--big-font-size);
    color: var(--dark-color);
    height: 45px;
}
.nav__logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav__toggle {
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}


/*Appear menu*/

.show {
    right: 0;
}


/*Active menu*/

.active::after {
    position: none;
    content: "";
    width: 100%;
    height: .18rem;
    left: 0;
    top: 2rem;
    background-color: var(--first-color);
}


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

.home {
    position: relative;
    background-color: var(--first-color);
    overflow: hidden;
}

.home__container {
    height: calc(100vh - var(--header-height));
    row-gap: 5rem;
}

.home__title {
    align-self: flex-end;
    font-size: var(--big-font-size);
    color: var(--white-color);
    line-height: .8;
}

.home__title span {
    text-shadow: 0 20px 25px rgba(0, 0, 0, .5);
}

.home__scroll {
    align-self: flex-end;
    padding-bottom: var(--mb-4);
}

.home__scroll-link {
    writing-mode: vertical-lr;
    transform: rotate(-180deg);
    color: var(--white-color);
}

.home__img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 295px;
}*/


/*Home*/

.l-main {
    height: calc(100vh - var(--header-height));
    background-color: transparent;
}

.home {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    -ms-grid-rows: max-content max-content;
    grid-template-rows: -webkit-max-content -webkit-max-content;
    grid-template-rows: max-content max-content;
    -ms-flex-line-pack: distribute;
    align-content: space-around;
    row-gap: 2.3rem;
    height: 100%;
    font-weight: 700;
}

.home__information {
    padding-left: 2rem;
    border-left: 5px solid var(--white-color);
    z-index: var(--z-tooltip);
}

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

.home__title {
    align-self: flex-end;
    font-size: var(--h2-font-size);
    /* background: linear-gradient(90deg, #40C9FF, #E81CFF); */
    background: linear-gradient(90deg, #FF1B6B, #45CAFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: var(--mb-1);
    position: relative;
    display: inline-block;
}

.home__skill {
    font-size: var(--normal-font-size);
    display: block;
    margin-bottom: var(--mb-1);
    min-height: 24px; /* Prevent layout shift */
}

.home__skill::after {
    content: '|';
    animation: blink 1s infinite;
}

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

.home__button {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: .75rem;
    color: var(--white-color);
    padding: .625rem 1rem;
    border-radius: .25rem;
    background-image: -webkit-gradient(linear, left top, right top, from(var(--dark-color)), to(var(--first-color)));
    background-image: linear-gradient(to right, var(--dark-color), var(--first-color));
    transition: .3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.home__button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.home__img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 295px;
}

.home__social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-bottom: 1rem;
}

.home__social-icon {
    margin-bottom: 2rem;
    font-size: 1.33rem;
    cursor: pointer;
}

.home__social-icon:hover {
    color: var(--first-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}


/*BUTTONSpadding: .75rem 2.5rem;background-color:;*/

.button {
    display: inline-block;
    color: var(--dark-color);
    font-weight: var(--font-semi);
    border-radius: .5rem;
}

.button:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
}


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

.about__container {
    justify-items: center;
    row-gap: 2rem;
    text-align: center;
}

.about__img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    /* background-color: var(--first-color); */
    border-radius: 0%;
    overflow: hidden;
}

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

.about__subtitle {
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.about__text {
    margin-bottom: var(--mb-4);
}

.about__profession {
    display: block;
    margin-bottom: var(--mb-4);
}

.about__social-icon {
    font-size: 1.4rem;
    margin: 0 var(--mb-1);
}

.about__social-icon:hover {
    color: var(--first-color);
    transition: .3s;
    box-shadow: 0 4px 6px rgba(235, 230, 230, 0.1);
}


/* --------------- Blog Carousel ------------ */

.owl-theme .owl-dots .owl-dot:focus .active::after {
    outline: none;
    position: none;
}

.owl-carousel {
    padding: 14px;
    /* margin-right: 5px; */
}

.owl-carousel .owl-item img {
    display: block;
    border-radius: 50%;
}

section .owl-navigation {
    position: absolute;
    top: 0%;
    margin: 0 auto;
    width: 100%;
}

.owl-nav .owl-prev .owl-nav-prev,
.owl-nav .owl-next .owl-nav-next {
    color: var(--first-color);
    background: transparent;
    font-size: 2rem;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: transparent;
    color: var(--dark-color);
}

.owl-theme .owl-nav [class*='owl-'] {
    outline: none;
}


/* -------x------- Blog Carousel -----x------ */


/*====Experience====*/

.experience {
    background-color: transparent;
}

.experience__container {
    width: 100%;
}
.owl-carousel .owl-item { padding: 0.75rem; }
.experience__card {
    border-radius: .75rem;
    background-color: transparent;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 18px rgba(0,0,0,.12);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    width: 80%;
    height: auto;
    aspect-ratio: 4/4;
    display: center;
    align-items: center;
    justify-content: center;
    position: relative;
    will-change: transform;
}
.experience__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(0,0,0,.16);
    background-color: rgba(255,255,255,.85);
}
.experience__card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    height: 100%;
}
.experience__logo {
    width: 80%;
    height: 80%;
    border-radius: .5rem;
    object-fit: contain;
}
.experience__role {
    color: var(--first-color);
    margin: 0 0 .25rem 0;
    font-weight: 600;
}
.experience__company,
.experience__tenure {
    margin: 0;
    font-size: var(--small-font-size);
    color: var(--text-color);
}
.experience__details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding-top .4s ease;
    padding-top: 0;
}
.experience__card:hover .experience__details,
.experience__card.open .experience__details {
    max-height: 800px;
    opacity: 1;
    transform: none;
    padding-top: .5rem;
}
.experience__card:hover .experience__card-body,
.experience__card.open .experience__card-body {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
}
.experience__card:hover .experience__logo,
.experience__card.open .experience__logo {
    width: 64px;
    height: 64px;
    border-radius: .5rem;
}
.experience__details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .15s ease, opacity .15s ease, transform .15s ease, padding-top .15s ease;
    padding-top: 0;
}
.experience__toggle {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,.35);
    color: #fff;
    cursor: pointer;
    transition: background-color .15s ease;
}
.experience__toggle:hover { background-color: rgba(0,0,0,.5); }
.experience__toggle i { font-size: 1.25rem; transition: transform .15s ease; }
.experience__card.open .experience__toggle i { transform: rotate(180deg); }
.timeline {
    position: relative;
    max-width: 1024px;
    margin: 0 auto var(--mb-3);
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 1rem;
    min-height: 420px;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--first-color);
    transform: translateX(-50%);
}

.timeline__item {
    position: relative;
    padding: .75rem 1rem;
    border-radius: .5rem;
}

.timeline__item.left {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.timeline__item.right {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
}

.timeline__year {
    position: absolute;
    top: auto;
    transform: none;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: var(--first-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(0,0,0,.15);
    cursor: pointer;
    z-index: 2;
}

.timeline__item.left .timeline__year { right: -42px; top: 0; }
.timeline__item.right .timeline__year { left: -42px; bottom: 0; }

.timeline__popup {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    background-color: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    border-radius: .5rem;
    padding: .75rem 1rem;
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transition: opacity .3s ease, transform .3s ease;
    text-align: center;
    justify-content: center;
    max-width: 360px;
}

.timeline__item.left .timeline__popup::before {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: -36px;
    width: 36px;
    height: 2px;
    background-color: var(--first-color);
    transform: translateY(-50%);
}
.timeline__item.right .timeline__popup::before {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: -36px;
    width: 36px;
    height: 2px;
    background-color: var(--first-color);
    transform: translateY(-50%);
}

.timeline__item.left .timeline__popup { justify-content: center; }
.timeline__item.right .timeline__popup { justify-content: center; }

.timeline__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.timeline__role {
    color: var(--first-color);
    font-size: var(--normal-font-size);
    margin: 0;
    font-weight: 600;
}

.timeline__company,
.timeline__tenure {
    margin: 0;
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.timeline__item:hover .timeline__popup,
.timeline__year:hover + .timeline__popup {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.timeline__item:hover .timeline__year,
.timeline__year:hover {
    opacity: .15;
    filter: blur(2px);
}

@media screen and (max-width: 768px) {
    .timeline__line { display: none; }
    .timeline { grid-template-columns: repeat(2, 1fr); column-gap: 1rem; row-gap: 1rem; margin-bottom: var(--mb-4); min-height: auto; }
    .timeline__item { text-align: left; padding: .75rem; margin: 0; border-left: none; border: 1px solid rgba(58,48,66,.15); border-radius: .5rem; background-color: rgba(255,255,255,.9); }
    .timeline__item.left .timeline__year {
        display: none;
    }
    .timeline__item.right .timeline__year {
        display: none;
    }
    .timeline__popup {
        max-width: 100%;
        text-align: left;
        justify-content: flex-start;
        opacity: 1;
        transform: none;
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: .75rem;
        align-items: center;
        padding: .75rem 0;
    }
    .timeline__item.left .timeline__popup::before,
    .timeline__item.right .timeline__popup::before {
        display: none;
    }
    .timeline__logo {
        width: 40px;
        height: 40px;
    }
    .timeline__role {
        margin-bottom: .25rem;
    }
    .timeline__company,
    .timeline__tenure {
        display: block;
        line-height: 1.4;
    }
}


/* ===== SKILLS =====*/

.skills__container {
    row-gap: 2rem;
}

.skills__content {
    background-color: var(--white-color);
    border-radius: .5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
    padding: 1rem;
    overflow: hidden;
}

.skills__header {
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
}

.skills__title {
    font-size: var(--normal-font-size);
    color: var(--first-color);
    margin-bottom: 0;
    font-weight: 600;
}

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

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

.skills__arrow {
    transition: .3s;
}

.skills__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding-top: 0;
}

.skills__name {
    display: inline-block;
    font-size: var(--small-font-size);
    margin-right: var(--mb-2);
    margin-bottom: var(--mb-2);
    padding: .25rem .5rem;
    background-color: #f1f1f1;
    border-radius: .25rem;
    color: var(--text-color);
}

.skills__name:hover {
    background-color: var(--first-color);
    color: var(--white-color);
}

/* Hover skills */
.skills__content:hover .skills__list {
    max-height: 500px; /* Large enough to fit content */
    padding-top: var(--mb-2);
}

.skills__content:hover .skills__arrow {
    transform: rotate(180deg);
}

.skills__content.open .skills__list {
    max-height: 500px;
    padding-top: var(--mb-2);
}

.skills__content.open .skills__arrow {
    transform: rotate(180deg);
}

/* ===== PORTFOLIO =====*/

.portfolio {
    background-color: transparent;
}

.portfolio__container {
    justify-items: center;
    row-gap: 2rem;
}

.portfolio__img {
    position: relative;
    overflow: hidden;
}

.portfolio__img img {
    border-radius: .5rem;
}

.portfolio__link {
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, .3);
    border-radius: .5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .3s;
}

.portfolio__img:hover .portfolio__link {
    bottom: 0;
}

.portfolio__link-name {
    color: var(--first-color);
    font-size: medium;
}


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

.contact__container {
    row-gap: 2rem;
    text-align: center;
}

.contact__subtitle {
    font-size: var(--normal-font-size);
    color: var(--first-color);
}

.contact__text {
    display: inline-block;
    margin-bottom: var(--mb-2);
}

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

.contact__input {
    width: 100%;
    padding: .8rem;
    outline: none;
    border: 1.5px solid var(--dark-color);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-4);
    border-radius: .5rem;
}

.contact__button {
    display: block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: .75rem 2.5rem;
    margin-left: auto;
    border-radius: .5rem;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .contact__container {
        text-align: center;
    }
    .experience__card {
        aspect-ratio: 1 / 1;
    }
    .experience__card.open .experience__card-body { grid-template-columns: 48px 1fr; padding: .75rem 1rem; }
    .experience__card.open .experience__logo { width: 48px; height: 48px; }
    .experience__toggle { display: flex; }
}


.footer {
    background-color: var(--first-color);
    color: var(--white-color);
    text-align: center;
    row-gap: .2rem;
}
.footer__container {
    row-gap: .2rem;
    justify-items: center;
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.footer__title{
    text-align: center
}
.footer__title {
    font-size: var(--small-font-size);
    color: var(--white-color);
    margin-bottom: var(--mb-1);
}
.footer__text {
    color: var(--white-color);
    text-align: center;
}
.footer__socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.footer__social {
    font-size: 1.5rem;
    color: var(--white-color);
}
.footer__social:hover {
    color: var(--first-color);
    
}


/* ===== MEDIA QUERIES =====*/

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }
    .section {
        padding-top: 4rem;
    }
    .section-title {
        margin-bottom: 3rem;
    }
    .section-title::after {
        width: 64px;
        top: 3rem;
    }
    .nav {
        height: calc(var(--header-height) + 1rem);
    }
    .nav__list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding-top: 0;
    }
    .nav__logo {
        height: 60px;
    }
    .nav__item {
        margin-left: var(--mb-4);
        margin-bottom: 0;
    }
    .nav__toggle,
    .nav__close {
        display: none;
    }
    .nav__link {
        text-transform: initial;
        color: var(--white-color);
    }
    .active::after {
        background-color: var(--white-color);
    }
    .home {
        height: 100vh;
        -ms-grid-rows: max-content 20px;
        grid-template-rows: -webkit-max-content 20px;
        grid-template-rows: max-content 20px;
        -ms-flex-line-pack: center;
        align-content: center;
    }
    .home__information {
        margin-top: 2rem;
    }
    .home__social {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        padding-bottom: 0;
    }
    .home__social-icon {
        margin-right: 2rem;
        margin-bottom: 0;
    }
    .home__img {
        width: 350px;
        right: 10%;
    }
    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        text-align: initial;
        padding: 4rem 0;
    }
    .about__img {
        width: 300px;
        height: 300px;
    }
    .about__img img {
        width: 100%;
    }
    .skills__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: flex-start;
        column-gap: 2rem;
    }
    .portfolio__container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 2rem;
    }
    .contact__container {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        text-align: center;
    }
    .contact__form {
        width: 380px;
    }
    .footer__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .bd-grid {
        margin-left: auto;
        margin-right: auto;
    }
    .home__img {
        right: 10%;
    }
}


/*ANIMATE*/

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
}

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

.second {
    background-color: var(--dark-color);
    left: 33.3%;
}

.third {
    background-color: var(--dark-color);
    left: 66.6%;
}
