@font-face {
    font-family: 'avenir-light';
    src: url(../assets/AvenirLight.ttf);
}

:root {
    --ff-primary: 'avenir-light', sans-serif;
    --ff-secondary: 'Caudex', serif;
    --fs-h1: 4rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-p: 1rem;
    --font-clr-primary: black;
    --font-clr-secondary: white;
    --clr-pri: red;
    --clr-sec: green;
    --clr-tert: #3ae5ff;

    --nav-ht: 6rem;
    --nav-clr: red;

    --viewportWidth: calc(100vw - 1.45rem);

    --body-padding: 5vw;

    --loading-gif-size: 25rem;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

::selection {
    background-color: #11677873;
    color: white;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-primary);
    color: var(--text-color);
    position: relative;
}



/* ================  TRANSITION   ================= */
ul.transition {
    display: flex;
    position: absolute;
    z-index: 200;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    margin: 0;
    pointer-events: none;
    list-style: none;
    overflow-x: hidden;
}

ul.transition li {
    transform: scaleY(0);
    background-color: white;
    width: 20%;
}

.load_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 200;
    pointer-events: none;
}

.loading_screen {
    position: relative;
    padding: 0;
    background-color: #f5e6f4;
    background-image: linear-gradient(120deg, #b0bae2 0%, #f7bdd0 100%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading_screen svg {
    width: var(--loading-gif-size);
    padding-bottom: 5rem;
}



/* ==============Preloader================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
    padding-bottom: 6rem;
}

.preloader svg {
    width: var(--loading-gif-size);
}

.preloader p {
    margin-top: calc(-1 * (var(--loading-gif-size) / 4));
    color: gray;
}

/* =============REUSABLE CLASSES============= */

.section_title {
    font-size: var(--fs-h1);
    font-family: var(--ff-secondary);
    font-weight: 200;
}

p {
    font-size: var(--fs-p);
}

section {
    padding: 0 var(--body-padding);
}

.ghost_btn {
    display: flex;
    width: 181px;
    height: 43px;
    font-size: .96rem;
    border: 1px solid rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    text-align: center;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    transition: all 250ms ease-in-out;
}

.ghost_btn:hover {
    background-color: #000000;
    border: none;
    color: white;
}

.btn_dark {
    color: black;
    border-color: black;
}

/* ============   NAV   =============== */
nav {
    height: var(--nav-ht);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    top: 0;
    left: 0;
    position: fixed;
    width: 100vw;
    padding: 0 var(--body-padding);
    background-color: transparent;
    z-index: 2;
    transition: all 250ms ease-in-out;
}

.nav_left svg {
    width: 8rem;
    margin-left: -1rem;
}

.nav_right ul {
    list-style: none;
    display: flex;
    gap: 4rem;
}

.nav_right a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
}

#menu_btn {
    display: none;
}

.menu_icon {
    display: none;
}


@media screen and (max-width: 720px) {

    .nav_right {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
        padding-bottom: 5rem;
        z-index: 3;
        font-family: var(--ff-secondary);
        right: -100%;
        opacity: 0;
        transition: opacity 250ms ease-in-out;
    }

    .nav_right ul {
        flex-direction: column;
        text-align: center;

    }

    .nav_right li {
        height: 4rem;
        transition: padding 250ms linear;
    }

    .nav_right a {
        font-size: 2rem;
        /* padding-bottom: 3rem;
        transition: padding 250ms linear; */
    }


    /* menu Icon */
    #menu_btn {
        display: block;
        position: absolute;
        right: var(--body-padding);
        width: 2rem;
        height: 2rem;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }

    .menu_icon {
        display: block;
        position: relative;
        width: 2rem;
        height: 2rem;
        position: absolute;
        right: var(--body-padding);
        z-index: 4;
    }

    .menu_line {
        width: 100%;
        height: 2px;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        background-color: rgb(0, 0, 0);
        position: absolute;
        transition: all 100ms linear;
    }

    .l1 {
        transform: translateX(-40%) translateY(-200%) rotate(0);
        width: 80%;
    }

    .l2 {
        transform: translateX(-50%) translateY(200%) rotate(0);
    }

    #menu_btn:checked~.menu_icon .l1 {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
        width: 100%;
    }

    #menu_btn:checked~.menu_icon .l2 {
        transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    }

    #menu_btn:checked~.nav_right {
        right: 0;
        opacity: 1;
    }

    #menu_btn:checked~.nav_right li {
        padding-top: 1rem;
    }
}

.nav_link {
    color: yellow;
}

/* ===================   HERO   ====================== */

.hero {
    display: flex;
    flex-direction: row-reverse;
    padding-top: calc(5rem + var(--nav-ht));
    position: relative;
    overflow-y: hidden;
    padding-bottom: 8rem;
    background-size: cover;
    background-image: url('../assets/home_bg.webp');
}

#hero_bg_video {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0.4;
    width: 100%;
}

.hero div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 50%;
}

.hero_left {
    padding-left: var(--body-padding);
    overflow: hidden;
}

.hero_right {
    align-items: center;
}

.hero_left h1 {
    font-family: var(--ff-secondary);
    font-size: 8rem;
    width: 50%;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 6rem;
    color: #000000;
}

.hero_left p {
    font-size: 20px;
    line-height: 1.6em;
    color: white;
}



.hero_right .img_cont {
    width: 450px;
    height: 550px;
    background-image: linear-gradient(120deg, #f7b2bc 0%, #ffffff 100%);
    position: relative;
    border-radius: 58% 42% 70% 30% / 30% 23% 77% 70%;
    position: relative;
    overflow: hidden;
}

.img_cont .gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url('../assets/nobg_potrait.png');
    background-position-x: -3.5rem;
    background-size: cover;

}

.hero_right svg {
    width: 5rem;
    position: absolute;
    left: -2.5rem;
    top: 0;
    fill: #116778;
}

#scroll_down {
    font-size: 2rem;
    font-weight: 100;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: .6rem;
    border-radius: 100%;
    transition: all 250ms linear;
    background-color: rgba(255, 255, 255, 0.308);
    /* animation: expand_circle 2s infinite; */
}

@keyframes expand_circle {
    0% {
        padding: .6rem;
        bottom: 2rem;
    }

    25% {
        padding: .9rem;
    }

    50% {
        padding: .6rem;
        bottom: 3rem;
    }

    75% {
        padding: .7rem;
    }

    100% {
        padding: .6rem;
        bottom: 2rem;
    }
}



/* ===========   Skills   =============== */
.skills {
    height: 25rem;
    margin: 0;
    overflow-x: hidden;
}

.skill_container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10vw;
    height: 100%;
}

.skill_container p {
    font-size: 2rem;
}



/* =================   WORK   ================ */

.work {
    margin-top: 5rem;
    overflow: hidden;
}



.work .section_title {
    text-align: center;
}

.work_header {
    display: flex;
    justify-content: space-between;
}

.work_header div {
    width: 50%;
}

.work_header_left {}

.work_header_right {
    display: flex;
    justify-content: right;
}

.work_tag{
    display: flex;
    width:fit-content!important;
    margin-top: 0.5rem;
    padding:.5rem 1rem;
    background: #c9c9c97a;
    gap: .4rem;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
}
.work_tag p{
    font-size: .9rem;
}
.work_tag svg{
    width: .9rem;
    margin-bottom: .1rem;
}
.work_title,
.work_desc {
    width: 60%;
}

.work_title {
    font-size: var(--fs-h3)
}

.work_title span {
    color: rgb(92, 91, 91);
}

.work_content img {
    width: 100%;
}

.redirect_link {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    text-decoration: none;
    text-transform: capitalize;
    color: #444444;
    width: fit-content;
    transition: all 100ms linear;
}

.redirect_link svg {
    fill: #444444;
    width: 1.5rem;
}

.redirect_link:hover {
    text-decoration: underline;
    color: rgb(10, 114, 161);
}

.next_work {
    border-top: 1px solid #e2d1d3;
    padding-top: 8rem;
    margin-top: 8rem;
}


/* gallery */
.gallery_container {
    margin-top: 1rem;
    display: grid;
}

#gallery_1 {
    grid-template-columns: 25% 25% 25% 25%;
    grid-template-rows: auto;
    grid-template-areas:
        "i1 i1 i1 i1"
        "i1 i1 i1 i1"
        "i2 i2 i3 i3"
        "i2 i2 i3 i3"
        "i2 i2 i4 i4"
        "i2 i2 i4 i4";
}

.g1_i1 {
    grid-area: i1;
}

.g1_i2 {
    grid-area: i2;
    background-image: linear-gradient(179deg, #e4e2f9 0%, #c3c2df 100%);
    display: flex;
    align-items: center;
    background-color: #dfdff1;
    /* background-image: linear-gradient(0deg, #c7c7ec 0%, transparent 100%); */
}

.g1_i3 {
    grid-area: i3;

}

.g1_i4 {
    grid-area: i4;
}

.gi img {
    height: 100%;
}

/* ==============   FOOTER   ================= */
footer {
    margin-top: 5rem;
    border-top: 1px solid black;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding-top: 2rem;
    overflow-x: hidden;
}

footer .email_link {
    font-size: 3rem;
    color: black;
    text-decoration: none;
    text-align: center;
    font-family: var(--ff-secondary);
    font-weight: 100;
}

.footer_main {
    display: flex;
    gap: 5vw;
}

.social_link {
    font-size: var(--fs-p);
    color: black;
}

.footer_bottom {
    font-size: .9rem;
    background-color: black;
    width: 100%;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}


/* ======================     PROFILE      ============================ */
/* hero */
.profile {
    background-image: none;
    overflow-x: hidden;
}

.profile .hero_left p {
    color: black;
}


/* experties */
.experties {
    width: 100%;
    height: 25rem;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(../assets/black_lines_bg.webp);
    background-size: cover;
    color: white;
}

.experties p {
    font-size: var(--fs-h2);
    text-align: center;
}

/* my skills */
.mySkills .section_title {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

.mySkills_container {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 7rem 7rem 7rem;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: auto;
}

.mySkill {
    display: flex;
    margin: auto;
    gap: 1rem;
}

.skill_icon {
    width: 3rem;
}

.skill_ico {
    width: 100%;
}

.skill_data {
    width: 10rem;
}

.mySkill_title {
    font-size: 1.2rem;
}

.mySkill_rating {
    width: 100%;
    height: 7px;
    border-radius: 20px;
    background-color: rgba(128, 128, 128, 0.39);
    position: relative;
}

.mySkill_rating::after {
    content: '';
    height: 7px;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(11, 212, 11);
    z-index: 1;
}

.html_rating::after {
    width: 90%;
}

.css_rating::after {
    width: 90%;
}

.js_rating::after {
    width: 80%;
}

.react_rating::after {
    width: 60%;
}

.spring_rating::after {
    width: 50%;
}

.java_rating::after {
    width: 40%;
}


/* ======================     CONTACT      ============================ */
.con_right {
    height: 40rem;
    background-image: url(../assets/con_bg.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: var(--body-padding);
    transition: all 250ms linear;
}

.con_bg {}

/* form */
.con_form {
    width: 60%;
    margin: auto;
}

.input_grp {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

label {
    font-size: .9rem;
    color: rgb(61, 60, 60);
}

input {
    padding-left: 4px;
    height: 2.5rem;
    border: .5px solid rgb(88, 88, 88);
}

textarea {
    height: 8rem;
    border: .5px solid rgb(88, 88, 88);
}

input:focus,
textarea:focus {
    outline: 1px solid black;
}

.con_btn_cont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.con_form .ghost_btn {
    background: transparent;
    color: rgb(61, 60, 60);
    border-color: rgb(88, 88, 88);
    cursor: pointer;
}

.con_form .ghost_btn:hover {
    color: white;
    background-color: black;
    border: none;
}

.success {
    color: rgb(142, 207, 43);
}

.error {
    color: red;
}

#con_success {
    display: none;
}

#con_error {
    display: none;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width:1366px) {
    :root {
        --loading-gif-size: 20rem;
    }

    .hero h1 {
        font-size: 6rem;
        line-height: 5rem;
    }

    .hero .img_cont {
        width: 350px;
        height: 450px;
    }
}


@media (max-width:1024px) {
    :root {
        --loading-gif-size: 18rem;
    }

    .hero {
        background-position-x: -15rem;
    }

    .hero h1 {
        font-size: 5rem;
        line-height: 4rem;
    }

    .hero .img_cont {
        width: 300px;
        height: 400px;
    }

    .hero_right {
        font-size: 1rem;
    }

    footer .email_link {
        font-size: 2.5rem;
    }

    .con_form {
        width: 80%;
    }
}


@media (max-width:768px) {
    :root {
        --fs-h1: 3rem;
        --fs-h2: 1.5rem;
        --fs-h3: 1.2rem;
        --loading-gif-size: 16rem;
    }

    .hero {
        padding-top: 5rem;
        flex-direction: column;
        justify-content: center;
        background-position-x: -50rem;
        gap: 2rem;
    }

    .hero div {
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero_left {
        padding-left: 0;
    }

    .hero_left h1 {
        width: 100%;
        text-align: center;
        font-size: 4rem;
    }

    .hero_left p {
        text-align: center;
    }

    /* skills */
    .skills {
        height: 20rem;
    }

    .skill_container {
        gap: 10vw;
    }

    .skill_container p {
        font-size: 1.7rem;
    }

    /* work */
    .work_header {
        flex-direction: column;
        gap: 1rem;
    }

    .work_header div {
        width: 100%;
        justify-content: center;
    }

    .work_header_left h2 {
        width: 100%;
    }

    .work_header_right p {
        width: 100%;
    }

    #gallery_1 {
        grid-template-areas:
            "i1 i1 i1 i1"
            "i2 i2 i2 i2"
            "i3 i3 i3 i3"
            "i4 i4 i4 i4"
    }

    .g1_i2 {
        grid-area: i4;
    }

    .g1_i4 {
        grid-area: i2;
    }

    .next_work {
        padding-top: 6rem;
        margin-top: 6rem;
    }


    footer .email_link {
        font-size: 2rem;
    }


    /* ---profile---- */

    /* my-skills */
    .mySkills_container {
        grid-template-columns: 100%;
        grid-template-rows: 7rem 7rem 7rem 7rem 7rem 7rem;
    }


    /* ----Contact---- */

    .con_left {
        overflow-x: hidden;
    }

    .con_left h1,
    .con_left h2,
    .con_left p {
        text-align: left;
    }

    .section_subtitle {
        width: 100%;
    }

    .con_right {
        overflow-x: hidden;
        width: calc(100% + (var(--body-padding) * 2)) !important;
        margin-left: calc(-1 * var(--body-padding));
        margin-top: calc(-1 * var(--nav-ht));
        background-position-x: 0;
        height: 25rem;
    }
}


@media (max-width:480px) {
    :root {
        --loading-gif-size: 14rem;
    }

    .hero {
        padding-top: 6rem;
        background-position-x: -60rem;
        gap: 1rem;
    }

    .hero_left h1 {
        width: 100%;
        text-align: center;
        font-size: 3rem;
        font-weight: 700;
        line-height: 2rem;
        margin-top: 1rem;
    }

    .hero_left p {
        text-align: center;
    }

    /* skills */
    .skills {
        height: 20rem;
    }

    .skill_container {
        gap: 10vw;
    }

    .skill_container p {
        font-size: 1.3rem;
    }

    /* work */
    .work {
        margin-top: 0;
    }

    .next_work {
        padding-top: 5rem;
        margin-top: 5rem;
    }

    .work h1 {
        margin-bottom: 2.5rem;
    }

    .con_sec_title {
        font-size: 4rem !important;
        line-height: 3.5rem !important;
        font-weight: 300 !important;
    }

    .con_left h1 {
        padding-right: 3rem;
    }

    .con_left h1,
    .con_left h2,
    .con_left p {
        text-align: left;
    }

    .con_form {
        width: 90%;
    }
}