@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root{
    --header-height: 3rem;
    --font-semi: 600;

    /* colors*/
    --hue-color: 142;

    /* 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-lighter: 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%);
    --body-color: hsl(var(--hue-color), 70%, 96%);
    --input-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #FFF;

    /* Font */
    --body-font: 'Poppins', sans-serif;

    /* 0.5rem = 8px, 1rem = 16px, 1.5rem = 24px... */
    --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.813rem;
    --smaller-font-size: 0.75rem;

    /* Font Weight */
    --font-medium: 500;
    --font-semi-bold: 600;

    /* Margin bottom */
    /* 0.25rem = 4px, 0.5rem =8px ... */
    --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-tool-tip: 10;
    --z-fixed: 100;
    --z-modal:100;
}

/* 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;
    }
}
/* Dark theme */
body.dark-theme{
    --first-color: hsl(var(--hue-color), 40%, 35%);
    --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), 33%, 17%);
    --container-color: hsl(var(--hue-color), 29%, 16%);
}

body.dark-theme .contact__container{
    background-color: hsl(var(--hue-color), 40%, 35%);
}
body.dark-theme textarea, 
body.dark-theme input{
    background-color: hsl(var(--hue-color), 33%, 17%);
    color: hsl(var(--hue-color), 8%, 75%);
}
body.dark-theme button{
    background-color: hsl(var(--hue-color), 33%, 17%);
    color: hsl(var(--hue-color), 8%, 75%);
}
body.dark-theme button:hover{
    background-color: hsl(var(--hue-color), 33%, 10%);
}
/* Light/Dark Mode */
.nav__btns{
    display: flex;
    align-items: center;
}

.change-theme{
    font-size: 1.2rem;
    margin-right: var(--mb-1);
    cursor: pointer;
}

.change-theme:hover{
    color: var(--first-color);
}

/* Base */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

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);
}

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;
}



/* Reuseable classes */
.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);
}

.portfolio__subtitle{
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-0-5);
}

.section__title,
.section__subtitle, 
.portfolio__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;
}

.header{
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
}

/*  Nav */
.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,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;
}

.active-link{
    color: var(--first-color)
}

.scroll-header{
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .15)
}
/* home */
.home__container{
    gap: 1rem;
}

.home__content{
    grid-template-columns: 0.5fr 3fr;
    padding-top: 3.5rem;
    align-items: center;
}

.home__social{
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
}

.home__social-icon{
    font-size: 2rem;
    color: var(--first-color)
}

.home__social-icon:hover{
    color: var(--first-color-alt)
}

.home__blob{
    width: 300px;
    fill: var(--first-color);
}
.home__blob-img{
    width: 115%;
    /* border-radius: 50%; */
    /* z-index: 1; */
}

.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-2);
}

.home__scroll{
    display: none;
}

.home__scroll-button{
    color: var(--first-color);
    transition: .3s;
    padding: 0 0.5rem;
}

.home__scroll-button:hover{
    transform: translateY(0.5rem);
}

.home__scroll-mouse{
    font-size: 1.25rem;
    margin-right: var(--mb-0-25);
}

.home__scroll-name{
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-right: var(--mb-0-5);
}

.home__scroll-arrow{
    font-size: 0.75rem;
}

.button{
    display: inline-block;
    background-color: var(--first-color);
    color: #FFF;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
}

.button:hover{
    color: var(--first-color-alt);
}

.button__icon{
    font-size: 1rem;
    margin-left: var(--mb-0-5);
    transition: 0.3s;
}

.button--flex{
    display: inline-flex;
    align-items: center; 
}

/* ABOUT */
.about__description{
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.about__stack{
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    padding: 0 90px

}

.about__stack-info{
    font-size: var(--h4-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
    margin-bottom: var(--mb-1);
}
.plain{
    font-size: var(--h4-font-size);
    font-weight:lighter;
    color: rgb(78, 78, 78)
}
.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;
}

/* Qualifications */
.qualifications__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__button:hover{
    color: var(--first-color);
}

.qualification__icon{
    font-size: 1.5rem;
    margin-right: var(--mb-0-5);
}

.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_title-secondary{
    font-size: var(--smaller-font-size);
    font-style: italic;
}

.qualification__subtitle{
    display: inline-block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-0-5)
}

.qualification__calender{
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

.qualification__calender-icon{
    margin-right: var(--mb-0-5);
}

.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;
    /* background-color: red; */
}
/* 
.qualification__button.qualification__active{
    color: var(--first-color);
} */

/* SWIPER */

.project__button {
    color:var(--first-color);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    margin-top: var(--mb-2-5);
    margin-bottom: var(--mb-0-25);
    display: flex;
    justify-content: center;
}

.project__button:hover{
    color: var(--first-color);
}

.project__icon {
    margin-left: var(--mb-0-5);
    margin-top: var(--mb-0-25);
    font-size: 1rem;
}

.project__icon:hover{
    transition: 0.3s;
}

.project__subtitle{
    display: flex;
    justify-content: center;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-5);
    text-align: center;
}

.swiper-container {
    width: 100%;
    height: 100%;
  }

.swiper-wrapper{
    margin-top: var(--mb-2);
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: none;
    max-width: 100%;
    height: auto;
    border-radius: 15px;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    transition: 250ms all;
}


.swiper-slide img {
    background-color: red;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* border: 0.5 solid grey; */
    border-radius: 15px;
}

.swiper-slide img:hover{
    transform: scale(1.1);
    z-index: 1;
    box-shadow: 1px 1px 10px 1px var(--first-color-lighter);
}

.swiper-slide:hover{
    margin: 0 30px;
}
.swiper-slide:last-child:hover{
    margin: 0 -30px;
}
  .swiper-button-prev{
    display: relative;
    top: 85%;
    color: var(--first-color);
}

.swiper-button-next{
    display: relative;
    top: 85%;
    color: var(--first-color);
}


.footer{
    padding-top: 2rem;
}

.footer__container{
    row-gap: 2.5rem;
}

.footer__bg{
    background-color: var(--first-color-second);
    padding: 2rem 0 3rem;
}

.footer__title{
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-25);
}

.footer__subtitle{
    font-size: var(--small-font-size);
}

.footer__links{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.footer__link:hover{
    color: var(--first-color-lighter);
}

.footer__social{
    font-size: 1.75rem;
    margin-right: var(--mb-1-5);
}

.footer__social:hover{
    color: var(--first-color-lighter)
}

.footer__copy{
    font-size: var(--small-font-size);
    text-align: center;
    color: var(--text-color-light);
    margin-top: var(--mb-2);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social{
    color: #FFF;
}

.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    opacity: 0.8;
    padding: 0.4rem 0.6rem 0.3rem 0.6rem;
    border-radius: 0.4rem;
    z-index: var(--z-tool-tip);
    transition: 0.4s;
}

.scrollup:hover{
    background-color: var(--first-color-alt);
}

.scrollup__icon{
    font-size: 1rem;
    color: #FFF;
}

.show-scroll{
    bottom: 5rem;
}

.contact__container{
    width: 90%;
    margin: -40px auto;
    background-color: white;
    box-shadow: 0px 0px 20px #00000010;
    border-radius: 0.5rem;
    padding: 20px;
    margin-bottom:var(--mb-0-5);
}

.form-group{
    width: 100%;
    /* margin-top: 20px; */
    font-size: var(--h2-font-size);
}

.form-group input,
.form-group textarea{
    width: 100%;
    padding: 5px;
    font-size: var(--h3-font-size);
    border: 1px solid rgb(128, 128, 128, 0.25);
    margin-bottom: var(--mb-0-5)
}

.form-group textarea{
    height: 150px;
    resize: vertical;
}
button[type="submit"]{
    width: 100%;
    border: none;
    outline: none;
    background-color: var(--first-color);
    color: #FFF;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    font-size: var(--h2-font-size);
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

button:hover{
    background-color: var(--first-color-alt);
}

#status{
    width: 37%;
    text-align: center;
    padding: 0.5rem;
    margin: 0 auto;
    border-radius: 0.5rem;
}
#status.success{
    background-color: var(--first-color-lighter);
    animation: status 4s ease forwards;
}
#status.error{
    background-color: rgb(250, 129, 92);
    color: white;
    animation: status 4s ease forwards;
}
@keyframes status{
    0%{
        opacity: 1;
        pointer-events: all;
    }
    90%{
        opacity: 1;
        pointer-events: all;
    }
    100%{
        opacity: 0;
        pointer-events: none;
    }
}

/* small screen */
@media screen and (max-width: 350px){
    .container{
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .nav__menu{
        padding: 2rem 0.25rem 4rem;
    }

    .nav__list{
        column-gap: 0;
    }

    .home__content{
        /* background-color: red; */
        grid-template-columns: 0.25fr 3fr;
    }

    .home__blob{
        width: 180px;
    }

    .qualification__data{
        gap: .5rem;
    }
}

/* medium screen */
@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;
    }
    .qualification__sections{
        display: grid;
        grid-template-columns: .6fr;
        justify-content: center;
    }
    
    .footer__container{
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Large screen */
@media screen and (min-width: 768px){
    .container{
        margin-left: auto;
        margin-right: auto;
    }

    body{
        margin:0;
    }

    .home__title{
        font-size: 2.75rem;
    }

    .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.5);
        column-gap: 1rem;
        margin-top: var(--mb-1);
        padding: 0 0 5px 0;
    }
    .nav__icon,
    .nav__close,
    .nav__toggle{
        font-size: 0;
    }
    .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: 270px;
        margin-bottom: 5rem;
    }
    .home__social{
        transform: translate(-6rem);
    }
    .project__button,
    .project__icon{
        font-size: 1.75rem;
    }

}

.spacer{
    aspect-ratio: 960/300;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.layer1{
    background-image: url('img/layered-waves-haikei.svg');
}