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

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

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(207, 65%, 65%);
    --title-color: hsl(207, 4%, 16%);
    --text-color: hsl(207, 4%, 28%);
    --text-color-light: hsl(207, 4%, 56%);
    --body-color: hsl(207, 4%, 99%);
    --container-color: hsl(207, 4%, 95%);

    /* Change the first number */
    /* Blue: 207 - Purple: 250 - Pink: 356 - Teal: 174 */
    --gradient-color: linear-gradient(180deg,
            hsla(207, 48%, 72%, 0),
            hsla(207, 65%, 65%, 1));

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: 'Roboto', sans-serif;
    --title-font: 'Lora', serif;
    --biggest-font-size: 1.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
    --tiny-font-size: .625rem;

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

    /*========== z index ==========*/
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
    :root {
        --biggest-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;
        --tiny-font-size: .688rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    /* for dark mode animation */
    transition: background .4s;
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-family: var(--title-font);
    font-weight: var(--font-medium);
}

ul {
    list-style: none;
}

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

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

/*=============== THEME ===============*/
.nav_buttons {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

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

/*========== Variables Dark theme ==========*/
body.dark-theme {
    --title-color: hsl(207, 4%, 95%);
    --text-color: hsl(207, 4%, 65%);
    --body-color: hsl(207, 4%, 10%);
    --container-color: hsl(207, 4%, 12%);
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.dark-theme .nav,
.dark-theme .nav_menu,
.dark-theme .scrollup {
    background-color: var(--container-color);
    box-shadow: 0 4px 20px hsl(207, 24%, 8%, 0.4);
}

/* .dark-theme .home_social_link{
    color: var(--title-color);
} */

.dark-theme .section_border {
    border-bottom: 1px solid hsl(207, 4%, 32%);
}

.dark-theme::-webkit-scrollbar {
    background-color: hsl(207, 4%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
    background-color: hsl(207, 4%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
    background-color: hsl(207, 4%, 35%);
}


/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1024px;
    margin-inline: 1.5rem;
}

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

.section {
    padding-block: 2.5rem;
}

.section_border {
    border-bottom: 1px solid var(--title-color);
    padding-bottom: 3.5rem;
}

.section_title,
.section_subtitle {
    text-align: center;
}

.section_title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: .25rem;
}

.section_subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 3rem;
}

.main {
    overflow: hidden;
    /* For animation */
}

/*=============== HEADER & NAV ===============*/
.header {
    width: 100%;
    position: fixed;
    bottom: 2rem;
    left: 0;
    z-index: var(--z-fixed);
}

.nav {
    height: calc(var(--header-height) + 0.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--body-color);
    box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.2);
    padding-inline: 1.5rem;
    border-radius: 3rem;
    /* for dark mode animation */
    transition: background .4s;
}

.nav_logo,
.nav_toogle,
.nav_close {
    color: var(--title-color);
}

.nav_logo {
    font-family: var(--title-font);
    font-weight: var(--font-medium);
}

.nav_toggle {
    display: flex;
    font-size: 1.25rem;
    cursor: pointer;
}

@media screen and (max-width : 1023px) {
    .nav_menu {
        background-color: var(--body-color);
        width: 88%;
        position: fixed;
        left: 0;
        bottom: 2rem;
        right: 0;
        margin: 0 auto;
        box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.2);
        padding: 2rem 1.5rem 4rem;
        border-radius: 2rem;
        display: none;
        /* transition: all 0.3s; */
    }

    .nav_list {
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        gap: 2rem 3rem;
    }

    .nav_link {
        display: flex;
        flex-direction: column;
        text-align: center;
        row-gap: 0.25rem;
        color: var(--text-color-light);
        font-size: var(--smaller-font-size);
        transition: color 0.3s;
    }

    .nav_link:hover {
        color: var(--title-color);
    }

    .nav_link i {
        font-size: 1.25rem;
    }

    .nav_close {
        position: absolute;
        right: 1.5rem;
        bottom: 1.5rem;
        font-size: 1.25rem;
        cursor: pointer;
    }
}

/* Show menu */
.show_menu {
    /* bottom: 2rem; */
    display: block;
    /* transition: display 0.3s; */
}

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

/*=============== HOME ===============*/
.home_container {
    row-gap: 4rem;
    padding-top: 2rem;
}

.home_data {
    row-gap: 1.5rem;
}

.home_title {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: var(--biggest-font-size);
}

.home_profile {
    width: 80%;
    margin: auto;
}

.home_profile img {
    border-radius: 1rem;
    /* border: var(--title-color) solid 1px; */
}

.home_social {
    display: flex;
    justify-self: center;
    column-gap: 1.5rem;
}

.home_social_link {
    font-size: 1.25rem;
    color: var(--text-color-light);
    transition: color 0.3s;
}

.home_social_link:hover {
    color: var(--title-color);
}

.home_info {
    display: grid;
    row-gap: 2rem;
}

.home_info_title {
    font-family: var(--body-font);
    color: var(--text-color-light);
    font-size: var(--smaller-font-size);
    font-weight: 400;
    margin-bottom: 1rem;
}

.home_info_description,
.home_info_number {
    font-family: var(--title-font);
    color: var(--title-color);
}

.home_info_description {
    padding-right: 4rem;
}

.home_info_number {
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
}

/*=============== SKILLS ===============*/
.skills_container {
    row-gap: 3.5rem;
}

.skills_title {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.4rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 2.5rem;
}

.skills_title i {
    font-size: 1rem;
    font-weight: initial;
}

.skills_info,
.skills_data,
.skills_profile {
    display: grid;
}

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

.skills_data {
    justify-content: center;
    text-align: center;
}

.skills_profile {
    width: 80px;
    height: 100px;
    background-color: var(--container-color);
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 3rem;
    /* for dark mode animation */
    transition: background .4s;
}

.skills_profile img {
    width: 50px;
}

.skills_name {
    font-size: var(--small-font-size);
    margin-bottom: 0.25rem;
}

.skills_subtitle {
    font-size: var(--tiny-font-size);
    color: var(--text-color-light)
}

/* Animation skills */
.skills_profile:hover img {
    animation: bounce_skills 0.6s;
}

@keyframes bounce_skills {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translateY(-6px);
    }

    40% {
        transform: translate(0);
    }

    60% {
        transform: translateY(-3px);
    }

    80% {
        transform: translate(0);
    }
}


/*=============== QUALIFICATION ===============*/
.qualification {
    position: relative;
}

.qualification_container {
    row-gap: 3.5rem;
}

.qualification_title {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
}

.qualification_title i {
    font-size: 1rem;
    font-weight: initial;
}

.qualification_info {
    display: grid;
    row-gap: 1rem;
    /* text-align: center; */
}

.qualification_name {
    font-size: var(--normal-font-size);
    margin-bottom: 0.5rem;
}

.qualification_country,
.qualification_year {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.qualification_country {
    margin-bottom: 0.5rem;
}

/*=============== SERVICES ===============*/
.services_container {
    row-gap: 2.5rem;
    justify-content: center;
}

.services_card {
    position: relative;
    background-color: var(--container-color);
    width: 233px;
    height: 312px;
    border-radius: 7rem;
    text-align: center;
    padding: 3.5rem 1rem;
    /* for dark mode animation */
    transition: background .4s;
}

.services_card i {
    display: block;
    font-size: 2rem;
    color: var(--title-color);
    margin-bottom: 0.75rem;
    transition: transform 0.8s;
}

.services_title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1.25rem;
}

.services_border {
    width: 248px;
    height: 327px;
    border-radius: 7rem;
    border: solid 1px var(--text-color);
    position: absolute;
    inset: 0;
    left: -7px;
    margin: auto;
    z-index: -1;
    transition: opacity 0.6s;
    opacity: 0;
}

.services_card:hover i {
    transform: rotateY(360deg);
}

.services_card:hover .services_border {
    opacity: 1;
}

/*=============== PROJECTS ===============*/
.projects_container {
    overflow: initial;
}

.projects_content {
    display: grid;
    justify-content: center;
}

.projects_img {
    width: 280px;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

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

.projects_title {
    font-size: var(--h2-font-size);
    margin-bottom: 1.25rem;
    margin: 0.5rem 0 0.5rem;
}

.projects_button {
    display: inline-flex;
    align-items: center;
    column-gap: 0.3rem;
    color: var(--text-color);
    font-size: var(--small-font-size);
}

.projects_button i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.projects_button:hover i {
    transform: translateX(0.25rem)
}

/* Swiper class */
.projects_container .swiper-button-next::after,
.projects_container .swiper-button-prev::after {
    content: '';
}

.projects_container .swiper-button-prev,
.projects_container .swiper-button-next {
    width: initial;
    height: initial;
    margin: initial;
    color: var(--title-color);
    font-size: 2.5rem;
}

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

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

.projects_container .swiper-slide {
    margin-bottom: 4rem;
}

.projects_container .swiper-pagination-bullets {
    bottom: 0;
}

.projects_container .swiper-pagination-bullet {
    background-color: var(--text-color-light);
    opacity: initial;
}

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

/*=============== TESTIMONIAL ===============*/


/* Swiper class */


/*=============== CONTACT ===============*/
.contact_container {
    row-gap: 3.5rem;
}

.contact_title {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.3rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 2.5rem;
}

.contact_title i {
    font-size: 1rem;
    font-weight: initial;
}

.contact_info,
.contact_data,
.contact_form {
    display: grid;
}

.contact_info {
    row-gap: 1.75rem;
}

.contact_data {
    row-gap: 0.3rem;
}

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

.contact_data_info {
    font-size: var(--small-font-size);
    font-family: var(--title-font);
    color: var(--title-color);
}

.contact_button {
    width: max-content;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    column-gap: 0.3rem;
    font-size: var(--small-font-size);
}

.contact_button i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.contact_button:hover i {
    transform: translateX(0.25rem)
}

.contact_form {
    position: relative;
    row-gap: 1.5rem;
}

.contact_from-div {
    position: relative;
    height: 4rem;
}

.contact_form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-color-light);
    border-radius: 2rem;
    font-size: var(--normal-font-size);
    font-family: var(--title-font);
    padding: 1.5rem;
    color: var(--title-color);
    outline: none;
    background: none;
}

.contact_form-tag {
    position: absolute;
    top: -0.50rem;
    left: 1.25rem;
    background-color: var(--body-color);
    z-index: 10;
    color: var(--title-color);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    padding: 0.25rem;
    /* for dark mode animation */
    transition: background .4s;
}

.contact_form-area {
    height: 10rem;
}

.contact_form-area textarea {
    resize: none;
}

.contact_button {
    /* font-size: var(--h2-font-size); */
    font-weight: var(--font-semi-bold);
    font-family: var(--title-font);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.75rem;
    background-color: var(--title-color);
    border-radius: 1rem;
    color: var(--text-color-light);
    margin: 1.5rem 0;
    transition: color 0.3s;
}

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

.contact_form .contact_button i {
    font-size: 1.25rem;
    font-weight: initial;
}

.contact_message{
    font-size: var(--small-font-size);
    position: absolute;
    bottom: 5.5rem;
    left: 1.5rem;
}

/* Status color */
.color_red{
    color: hsl(4, 71%, 50%);
}

.color_blue{
    color: hsl(207, 56%, 45%);
}

/*=============== FOOTER ===============*/
.footer_container {
    padding: 3rem 0 7rem;
    text-align: center;
}

.footer_title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1rem;
}

.footer_list,
.footer_social {
    display: flex;
    justify-content: center;
}

.footer_list {
    margin: 1.5rem 0;
    column-gap: 2.5rem;
}

.footer_link {
    color: var(--title-color);
    position: relative;
}

.footer_link::before {
    content: '';
    background-color: var(--text-color);
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 1.5rem;
    scale: 0;
    transition: scale 0.3s;
}

.footer_link:hover::before {
    scale: 1;
}

.footer_social {
    column-gap: 1rem;
}

.footer_social_link {
    color: var(--title-color);
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.footer_social_link:hover {
    transform: translateY(-0.15rem);
}

.footer_copy {
    display: block;
    margin-top: 2.5rem;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    background-color: hsl(207, 4%, 75%);
    border-radius: 0.5rem;
    width: 0.5rem;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(207, 4%, 55%);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(207, 4%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    bottom: -30%;
    right: 2rem;
    background-color: var(--body-color);
    padding: 8px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: inline-flex;
    z-index: 15;
    box-shadow: 0 4px 12px hsl(207, 24%, 35%, 0.15);
    transition: bottom 0.3s, transform 0.3s;
}

.scrollup i {
    color: var(--title-color);
}

.scrollup:hover {
    transform: translateY(0.45rem);
}

/* Show Scroll Up*/
.show-scroll {
    bottom: 7.5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width:340px) {
    .container {
        margin-inline: 1rem;
    }

    .nav_menu {
        padding-bottom: 1rem 1.25rem;
    }

    .nav_list {
        gap: 1rem 1.25rem;
    }

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

    .services_card {
        width: 200px;
        height: 280px;
        font-size: var(--small-font-size);
        padding: 2.5rem 1rem;
    }

    .services_border {
        width: 225px;
        height: 300px;
        left: -12px;
    }

    .projects_img {
        width: 200px;
        justify-self: center;
    }

    .projects_container .swiper-button-prev {
        left: -1rem;
        top: 3.5rem;
    }

    .projects_container .swiper-button-next {
        right: -1rem;
        top: 3.5rem;
    }
}

/* For medium devices */
@media screen and (min-width:576px) {

    .nav,
    .nav_menu {
        width: 450px;
    }

    .nav {
        margin: 0 auto;
    }

    .nav_list {
        gap: 2rem 4rem;
    }

    .services_card {
        width: 220px;
        height: 300px;
        font-size: var(--small-font-size);
        padding: 2.5rem 1rem;
    }

    .services_border {
        width: 245px;
        height: 320px;
        left: -12px;
    }

    .skills_container {
        justify-content: center;
    }

    .projects_container {
        width: 450px;
    }
}


@media screen and (min-width:768px) {
    .home_container {
        grid-template-columns: 1fr 2fr 1fr;
    }

    .home_data {
        order: 2;
    }

    .home_info:nth-child(3) {
        order: 3;
        text-align: right;
    }

    .home_info {
        margin-top: 8rem;
    }

    .home_profile {
        width: 100%;
    }

    .home_data {
        row-gap: 1rem;
    }

    .skills_container,
    .qualification_container,
    .services_container,
    .contact_container {
        grid-template-columns: repeat(2, max-content);
    }

    .skills_container,
    .services_container {
        column-gap: 5rem;
    }

    .qualification_container {
        justify-content: center;
        /* column-gap: 10rem; */
    }

    .projects_container {
        width: 500px;
    }

    .contact_form {
        width: 360px;
    }

    .contact_container {
        justify-content: center;
        column-gap: 8rem;
    }
}

/* For large devices */
@media screen and (min-width:1023px) {
    .header {
        top: 0;
        bottom: initial;
        background-color: var(--body-color);
        transition: 0.4s;
    }

    .nav {
        width: initial;
        height: calc(var(--header-height) + 1.5rem);
        border-radius: 0;
        box-shadow: none;
        column-gap: 3rem;
        margin-inline: 1.5rem;
        padding: 0;
    }

    .nav_link i,
    .nav_toggle,
    .nav_close {
        display: none;
    }

    .nav_menu {
        width: initial;
        margin-left: auto;
        background-color: var(--body-color);
        transition: background 0.4s;
    }

    .nav_list {
        display: flex;
        column-gap: 3rem;
    }

    .nav_link {
        font-size: var(--normal-font-size);
        /* color: var(--text-color-light); */
    }

    .dark-theme .nav,
    .dark-theme .nav_menu {
        background-color: var(--body-color);
    }

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

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

    .section {
        padding-block: 8rem 0;
    }

    .home_container {
        row-gap: 2rem;

    }

    .home_profile {
        width: 100%;
    }

    .home_title {
        font-size: 2.25rem;
    }

    .home_info h3 {
        font-size: 1rem;
    }

    .home_info p {
        font-size: 1.5rem;
    }

    .scrollup {
        right: 3rem;
    }

    .show-scroll {
        bottom: 5rem;
    }

    /* CHANGE BACKGROUND HEADER */
    .bg-header {
        box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
    }

    .dark-theme .bg-header {
        box-shadow: 0 6px 20px hsla(207, 24%, 8%, 0.6);
    }
}


@media screen and (min-width:1048px) {
    .container {
        margin-inline: auto;
    }

    .section_border {
        paddin-bottom: 8rem;
    }

    .section_subtitle {
        margin-bottom: 5rem;
    }

    .home_title {
        font-size: var(--biggest-font-size);
    }

    .home_info {
        grid-template-rows: repeat(3, 160px);
        row-gap: 5rem;
        margin-top: 16rem;
    }

    .home_data {
        row-gap: 2.5rem;
    }

    .home_social {
        column-gap: 2rem;
    }

    .home_social_link {
        font-size: 1.5rem;

    }

    .skills_container {
        column-gap: 12rem;
    }

    .skills_title {
        margin-bottom: 3rem;
    }

    .skills_title i {
        font-size: 1.25rem;
    }

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

    .skills_info{
        gap: 3rem;
    }

    .qualification_container{
        column-gap: 14rem;
    }

    .qualification_title{
        margin-bottom: 3rem;
    }

    .qualification_title i{
        font-size: 1.25rem;
    }

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

    .services_container{
        column-gap: 13rem;
    }

    .projects_container{
        width: 900px;
    }

    /* .projects_container .swiper-button-next,
    .projects_container .swiper-button-prev{
        font-size: 3rem;
    }

    .projects_container .swiper-button-next{
        right: -1rem;
    }

    .projects_container .swiper-button-prev{
        left: -1rem;
    }

    .projects_container .swiper-slide{
        margin-bottom: 6.5rem;
    } */

    .projects_img{
        width: 320px;
        margin-bottom: 2rem;
    }

    .contact_title{
        margin-bottom: 3rem;
    }

    .contact_title i{
        font-size: 1.25rem;
    }

    .contact_info{
        row-gap: 3rem;
    }

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

    .contact_form{
        font-size: 2.5rem;
    }

    .footer_container{
        padding: 4rem 0 3rem;
    }

    .footer_list{
        column-gap: 3rem;
        margin: 3rem 0;
    }

    .footer_social{
        column-gap: 2rem;
    }

    .footer_social_link{
        font-size: 1.5rem;
    }

    .footer_copy{
        margin-top: 5rem;
    }
}