/* Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* varialbe css */

 :root {
    --header-height: 3rem;
    /* Colors */
    /* change facvorite color 250 */
    --hue-color: 250;
    /* hsl color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lightner: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    /* body font */
    --body-font: 'Poppins', sans-serif;
    /* 1rem=16px, 5rem=80px, 1.5rem=24px, 0.5rem=8px...  */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    /* Font weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    /*Margenes Bottom */
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.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: 0.875rem;
        --smaller-font-size: 0.813rem;
    }
}


/* =============Variable Dark theme=========== */

body.dark-theme {
    /* hsl color mode */
    --first-color-second: hsl(var(--hue-color), 30%, 8%);
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 75%);
    --input-color: hsl(var(--hue-color), 29%, 16%);
    --body-color: hsl(var(--hue-color), 28%, 12%);
    --container-color: hsl(var(--hue-color), 29%, 16%);
}

.nav_btns {
    display: flex;
    align-items: center;
}

.change-theme {
    font-size: 1.5rem;
    margin-right: var(--mb-1);
    cursor: pointer;
    color: var(--text-color);
}

.change-theme:hover {
    color: var(--first-color);
}


/*==================== BASE ====================*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

 ::-webkit-scrollbar {
    width: 12px;
}

 ::-webkit-scrollbar-thumb {
    background: #606060;
    border-radius: 6px;
    border: 3px solid #fafafa;
}

 ::-webkit-scrollbar-thumb:hover {
    background: #c2c2c2;
}

 ::-webkit-scrollbar-track {
    background: #fafafa;
}

body {
    font-family: var(--body-font);
    margin: 0 0 var(--header-height) 0;
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1,
h2,
h3,
h4 {
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 2rem 0 4rem;
}

.section.title {
    font-size: var(--h1-font-size);
}

.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: 768px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
    gap: 1.5rem;
}


/*==================== NAV ====================*/

.header {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
}

.nav {
    max-width: 968px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_logo,
.nav_toggle {
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.nav_logo:hover {
    color: var(--first-color);
}

.nav_toggle {
    font-size: 1.1rem;
    cursor: pointer;
}

.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;
    }
}

.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);
}

.nav_link:hover {
    color: var(--first-color);
}

.nav_icon {
    font-size: 1.2rem;
}

.nav_close {
    position: absolute;
    right: 1.3rem;
    bottom: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--first-color);
}

.nav_close:hover {
    color: var(--first-color-alt);
}

.show-menu {
    bottom: 0;
}


/*====================== Home section======================== */

.home {
    padding-top: 0.5rem;
    height: 100vh;
}

.home_container {
    gap: 1rem;
}

.home_content {
    grid-template-columns: 5fr 3fr;
    padding-top: 3.5rem;
    align-items: center;
}

.home_img {
    justify-content: center;
}

.home_blob {
    width: 200px;
    fill: var(--first-color);
}

.home_profile {
    width: 210px;
    text-align: center;
}

.home_data {
    grid-column: 1/3;
}

.home_title {
    font-size: var(--big-font-size);
}

.home_subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.home_description {
    margin-bottom: var(--mb-1);
    text-indent: 100px;
}


/* =================scroll section============== */

.home_scroll {
    display: block;
}

.home_scroll-button {
    color: var(--first-color);
    transition: 0.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;
}


/*============== button section======= */

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 0.8rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1);
}

.button_icon {
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: .3s;
}

.button-flex {
    display: inline-flex;
    align-items: center;
}

.button:hover {
    background-color: var(--first-color-alt);
}

.button-small {
    padding: 0.75 1rem;
}

.button-link {
    padding: 0;
    background-color: transparent;
    color: var(--first-color);
}

.button-link:hover {
    background-color: transparent;
    color: var(--first-color);
}


/*====================== About section======================== */

.about_img {
    width: 200px;
    border-radius: .5rem;
    justify-self: center;
    align-self: center;
}

.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(--big-font-size);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.about_info_name {
    font-size: var(--smaller-font-size);
}

.about_info_title,
.about_info_name {
    display: block;
    text-align: center;
}

.cv_button {
    text-align: center;
}


/*=============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;
}

.qualification_icon {
    font-size: 1.8rem;
    margin-right: var(--mb-0-25);
}

.qualification_icon:hover {
    color: var(--first-color);
}

.qualification_button:hover {
    color: var(--first-color);
}

.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_calender {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    margin-bottom: var(--mb-0-5);
}

.qualification_web {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.qualification_web_link {
    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 [data-content] {
    display: none;
}

.qualification_active[data-content] {
    display: block;
}

.qualification_button.qualification_active {
    color: var(--first-color);
}

.work_button {
    cursor: pointer;
    font-size: var(--small-font-size);
}

.work_button:hover .button_icon {
    transform: translateX( 0.25rem);
}

.working_model {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    overflow: scroll;
}

.working_model-content {
    position: relative;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .5rem;
}

.working_model-working {
    row-gap: 1rem;
}

.working_model-work {
    display: flex;
}

.working_model-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1-5);
}

.working_model-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

.working_model-icon {
    color: var(--first-color);
    margin-right: var(--mb-0-25)
}

.work-active-model {
    opacity: 1;
    visibility: visible;
}


/*=============Projects================ */

.project_container {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.project_content {
    position: relative;
    background-color: var(--body-color);
    padding: 1.5rem .5rem 1.25rem 1.5rem;
    border-radius: .25rem;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, .15); */
    transition: .3s;
}

.project_content:hover {
    /* box-shadow: 0 11px 11px 0 rgba(0, 0, 0, .16); */
    /* transform: translateY(-5px); */
    box-shadow: 0px 12px 30px 0px rgba(0, 0, 0, 0.2);
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}

.project_icon {
    display: block;
    font-size: 1.5rem;
    color: var(--first-color);
    margin-right: var(--mb-1);
}

.projec_title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    font-weight: var(--font-medium);
}

.project_button {
    cursor: pointer;
    font-size: var(--small-font-size);
}

.project_button:hover .button_icon {
    transform: translateX( 0.25rem);
}

.projects_model {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    overflow: scroll;
}

.projects_model-content {
    position: relative;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .5rem;
}

.projects_model-projects {
    row-gap: 1rem;
}

.projects_model-project {
    display: flex;
}

.projects_model-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-25);
}

.projects_model-subtitle {
    font-size: var(--h4-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.projects_model-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

.projects_model-project p a {
    color: var(--first-color);
}

.projects_model-icon {
    color: var(--first-color);
    margin-right: var(--mb-0-25)
}

.active-model {
    opacity: 1;
    visibility: visible;
}


/*=============Skills================ */

.app_description {
    text-align: center;
    margin-bottom: var(--mb-0-5);
}

.software_platform {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-self: center;
    align-self: center;
}

.app_list {
    width: 100%;
    height: 100%;
    justify-content: space-evenly;
    margin-bottom: var(--mb-0-25);
    padding: 0.5rem;
}


/* ============= Revit Excerice============== */

.show_case_container {
    overflow: initial;
}

.video-thumbnail {
    padding: 0 2.5rem;
}

.video-img {
    width: 100%;
    border-radius: .5rem;
    justify-content: center;
    cursor: pointer;
    transition: transform 400ms ease-out;
}

.video_title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
    text-align: center;
}

.video_description {
    margin-bottom: var(--mb-0-25);
    text-align: center;
    justify-content: center;
}

.video_button:hover .button_icon {
    transform: translateX(.25rem);
}

.video_button {
    cursor: pointer;
}

.rec_gap {
    width: 100%;
    height: 50px;
}

.play_button {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal);
    font-size: 4rem;
    color: #fff;
}


/* ========= CONTACT INFORMATION=========== */

.contact_container {
    row-gap: 1.5rem;
}

.contact_information {
    display: flex;
    margin-bottom: var(--mb-0-75);
}

.contact.title {
    font-size: var(--h1-font-size);
}

.contact_subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-0-5);
}

.contact_subtitle a {
    color: var(--text-color);
}

.contact_title,
.contact_subtitle {
    text-align: left;
}

.contact_icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-right: var(--mb-0-75);
}


/*=============SOCIAL MEDIA ICON================ */

.social_item {
    padding: 0;
    display: flex;
    float: left;
    margin-left: var(--mb-1);
    justify-content: space-evenly;
}

.social_media {
    text-align: center;
    margin-bottom: var(--mb-2);
}

.social_icon {
    font-size: 3rem;
    margin: 0 auto;
}

.social_link {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    padding: 0 .3rem;
}

.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.linkedin:hover {
    color: #2867B2;
}

.youtube:hover {
    color: #FF0000;
}

.facebook:hover {
    color: #25d366;
}

.skype:hover {
    color: #00afea;
}

.author_description {
    text-align: center;
    margin-bottom: var(--mb-0-5);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
}


/*=============SCROLL UP TO TOP================ */

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    border-radius: 0.5rem;
    padding: 0 .3rem;
    z-index: var(--z-tooltip);
    transition: .4s;
    opacity: 0.8;
}

.scrollup:hover {
    background-color: var(--first-color-alt);
}

.scroll_icon {
    font-size: 1.5rem;
    color: #fff;
}

.show-scroll {
    bottom: 5rem;
}


/* =============video content============== */

#video-content {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .15);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: var(--z-modal);
    transition: ease;
}


/*=================== video player area =================*/

.close_icon {
    position: absolute;
    top: 0.5rem;
    right: 1.0rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: var(--z-modal);
    color: red;
}

.close_icon:hover {
    color: #fff;
}

.video_container {
    width: 100%;
    height: auto;
    max-width: 1200px;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    margin: auto;
    padding: 1.5rem;
}


/* .video_platform {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
} */

.video_player {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.main-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*==================== MEDIA QUERIES ====================*/


/* For small devices */
@media screen and (max-width:463px) {
    .home_content {
        height: 90vh;
        margin: auto;
        justify-content: center;
        justify-items: center;
        /*padding-top: 10rem;*/
        column-gap: 2rem;
       /* padding-bottom: 10rem;*/
    }

    .software_platform {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        justify-self: center;
        align-self: center;
    }
    .working_model {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, .15);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0rem 1rem;
        overflow: scroll;}
}

@media screen and (max-width:320px) and (max-width:375px){
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }
    .nav_menu {
        padding: 2rem .25rem 4rem;
    }
    .nav_link {
        display: block;
    }
    .nav_list {
        column-gap: 0;
    }
    .home_content {
        height: 90vh;
        margin: auto;
        justify-content: center;
        justify-items: center;
        /*padding-top: 10rem;*/
        column-gap: 2rem;
       /* padding-bottom: 10rem;*/
    }
    /*.home_content {
        padding-top: 2rem;
        grid-template-columns: 0.25fr 3fr;
    }*/
    .home_blob {
        width: 180px;
    }
    .home_title {
        font-size: var(--h1-font-size);
    }
    .home_data {
        grid-column: 1/3;
    }
    .home_scroll {
        display: none;
    }
    .about_info {
        display: flex;
        justify-content: space-around;
    }
    .software_platform {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        justify-self: center;
        align-self: center;
    }
    .social_list {
        display: flex;
        justify-content: space-evenly;
    }
    .social_item {
        margin-left: var(--mb-0);
    }
    .social_icon {
        font-size: 2.5rem;
    }
    .author_description {
        font-size: var(--normal-font-size);
    }
    .play_button {
        position: absolute;
        top: 28%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: var(--z-modal);
        font-size: 2rem;
        color: #fff;
    }
}

/* For medium devices */

@media screen and (min-width: 582px) {
    .home {
        height: 100vh;
    }
    .home_content {
        padding-top: 1rem;
        grid-template-columns: max-content 1fr 1fr;
    }
    .home_data {
        grid-column: initial;
    }
    .home_img {
        order: 1;
        justify-self: center;
    }
    .home_data {
        grid-column: 1/3;
    }
    .about_container {
        grid-template-columns: repeat(2, 1fr);
    }
    .about_img {
        margin-top: -200px;
    }
    .about_description {
        margin-bottom: var(--mb-0-5);
    }
    .qualification section {
        display: grid;
        grid-template-columns: 6fr;
        justify-content: center;
    }
    .play_button {
        position: absolute;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: var(--z-modal);
        font-size: 4rem;
        color: #fff;
    }
    .video-img {
        width: 100%;
    }
    .video-thumbnail {
        padding: 0 2.75rem 0 2.75rem;
    }
}

@media screen and (min-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    body {
        margin: 0;
    }
    .section {
        padding: 3rem 0 2rem;
    }
    .section_subtitle {
        margin-bottom: 4rem;
    }
    .header {
        top: 0;
        bottom: initial;
    }
    .header,
    .main {
        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;
        display: block;
    }
    .change-theme {
        margin: 0;
    }
    .home {
        height: 100vh;
    }
    .home_container {
        row-gap: 5rem;
    }
    .home_content {
        height: 90vh;
        margin: auto;
        justify-content: center;
        justify-items: center;
        /*padding-top: 10rem;*/
        column-gap: 2rem;
       /* padding-bottom: 10rem;*/
    }
    .home_blob {
        width: 270px;
    }
    .home_scroll {
        /* display: block; */
    }
    .about_container {
        column-gap: 5rem;
    }
    .about_img {
        width: 350px;
        margin-top: 0;
    }
    .about_description {
        text-align: initial;
    }
    .about_info {
        justify-content: space-between;
    }
    .cv_button {
        justify-content: left;
    }
    .project_container {
        gap: 1.5rem;
        grid-template-columns: repeat(3, 1fr);
    }
    .video-img {
        width: auto;
    }
    .video-thumbnail {
        padding: 0 2.75rem 0 2.75rem;
    }
    .play_button {
        position: absolute;
        top: 32%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: var(--z-modal);
        font-size: 4rem;
        color: #fff;
    }
}


/* For large devices */

@media screen and (min-width:1024px) {
    .header,
    .main {
        padding: 0;
    }
    .home_blob {
        width: 320px;
    }
}

@media screen and (min-width:425px) {
    .play_button {
        position: absolute;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: var(--z-modal);
        font-size: 4rem;
        color: #fff;
    }

}