@charset "UTF-8";

/* Google Fonts - DCN  */
@import url('https://fonts.googleapis.com/css2?family=BioRhyme:wght@300;400;700;800&family=Sacramento&family=Sora:wght@300;400;600&display=swap');

/* Common Style */
:root {
    /* colors */
    --primary: #e3f9ff;
    --dark: #11739e;
    --body-color: #40514E;
    --hover: #f47e52;
    --active: #91d604;
    --shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
    /* Fonts */
    --heading: 'BioRhyme', serif;
    --body: 'Sora', sans-serif;
    --fancy: 'Sacramento', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: #40514E;
    font-family: var(--body);
    line-height: 1.4;
}

ul {
    list-style: none;
}

a {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--dark);
    padding: 10px;
    margin: 0px 5px;
    cursor: pointer;
}

a:hover {
    color: var(--hover);
    text-transform: uppercase;
    font-weight: bold;
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading);
    font-weight: 400;
    line-height: 1.2;
    margin: 10px 0px;
}

p {
    font-family: var(--body);
    color: var(--body-color);
    font-weight: 300;
    line-height: 1.6;
    margin: 10px 0px;
    /* disable Text Copy */
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

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

.container {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 40px;
    height: auto;
}

button {
    font-size: 20px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    color: #ffffff;
    background: var(--dark);
    padding: 10px 30px 10px 30px;
    margin: 15px;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
}
button:hover {
    color: #f2f2f2;
    background-color: var(--hover);
}

#about_Cont, #portfolio_Cont, #contact_Cont {
    padding-top: 80px;
    padding-bottom: 25px;
}

#sec_H {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--dark);
    padding: 1.2rem;
    letter-spacing: 4px;
    text-align: center;
}


/* !PRE-LOADER */
/* Pre loader */
.pre_loader {
    width: 100%;
    height: 100vh;
    position: absolute;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    text-align: center;
    flex-direction: column;
}
.pre_1 {
    width: 100%;
    margin-bottom: 70px;
}
#pre-gif {
    width: 35%; /*set size of pre-loader */
}
/* pre-loader ends */

/* ! Header */
header {
    padding: 1rem;
    background-color: var(--primary);
    height: 80px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
}

#brand {
    display: flex;
    align-items: center;
}
.logo {
    width: 35%;
    min-width: 15%;
}

header ul {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
header ul li {
    padding: 0.4rem;
    margin: 1rem;
}

#hamburger-icon {
    margin: auto 0;
    display: none;
    cursor: pointer;
}
#hamburger-icon div {
    width: 35px;
    height: 3px;
    background-color: var(--dark);
    margin: 6px 0;
    transition: 0.4s;
}
/* Hamburger menu animation */
.open .bar1 {
    -webkit-transform: rotate(45deg) translate(6px, 6px);
    transform: rotate(45deg) translate(6px, 6px);
}
.open .bar2 {
    opacity: 0;
    transform: scale(0);
}
.open .bar3 {
    -webkit-transform: rotate(-45deg) translate(6px, -8px);
    transform: rotate(-45deg) translate(6px, -8px);
}

.open .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    height: calc(100vh - 50px);
    width: 100%;
}
.mobile-menu li {
    margin-bottom: 0.8rem;
}

/*Apply styles after scroll*/
.scrolling-active {
    /* background-color: red; */
    box-shadow: 0 3px 1rem rgba(0, 0, 0, .3);
}
/* ! header ends */


/* ! HERO SEC */
#hero {
    background-color: var(--primary);
    height: auto;
    position: relative;
    overflow: hidden;
}
#hero_Cont {
    position: absolute;
    top: 8rem;
    left: 08%;
    margin: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    /* background-color: #11739e; */
}
#hero_H {
    font-family: 'Sacramento', cursive;
        font-size: 5.6rem;
        color: var(--hover);
        text-align: center;
}
.H_text_ani {
    font-family: var(--body);
    font-size: 4rem;
    color: var(--dark);
}
/* ! hero sec ends */




/* ! ABOUT */
#about {
    background-color: #f2f2f2;
    height: auto;
}
.about_One {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.about_One p {
    line-height: 1.6;
}
.about_One p a {
    color: var(--hover);
    padding: 0;
    margin: 0;
}
.about_One p a:hover {
    font-family: var(--body);
    color: var(--dark);
    text-transform: none;
    font-weight: 400;
}
#border_About {
    width: 3rem;
    margin: auto;
    border-bottom: 0.5rem dotted var(--dark);
    margin: 50px auto 20px;
}
#about_h3 {
    font-family: var(--fancy);
    color: var(--hover);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    margin: 3rem 0rem 2rem 0rem;
}
#about_Sec {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
}
.about_gifs {
    width: 150px;
    margin: 1rem 1.5rem;
    /* to center gifs */
    display: flex;
    justify-content: center;
    align-items: center;
}
.about_gifs img {
    border-radius: 3%;
}
.about_skills {
    padding: 0.5rem;
    padding: 30px;
    max-width: 60%; /*can adjust with*/
}
.about_Three {
    flex-direction: row-reverse;
}
#about_Sec h4 {
    font-family: var(--heading);
    color: var(--dark);
    font-size: 1.6rem;
}
/* ! about ends */

/* ****Animate Cont me and About me** */
.about_ani, .cont_ani, .port_ani {
    clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
}
/*****************/

/* ! PORTFOLIO */
#portfolio {
    background-color: #ffffff;
    height: auto;
}
.splide__slide {
    margin: 0 1rem;
    opacity: 0.25;
    transform: scale(0.9);
}
.splide__slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.splide__pagination__page { /* bottom dots*/
    display: none;
}
.splide__arrow {        /* arrow bg*/
    background-color: #f2f2f2;
    box-shadow: var(--shadow);
    opacity: 1;
}
.splide__arrow:hover {
    background-color: #f2f2f2;
    opacity: 1;
}
.splide__arrow svg {    /* arrow color*/
    fill: var(--hover);
}
.all_projects {
    text-align: end;
    padding: 25px 0px;
}
.all_projects a:hover {
    text-transform: none;
}

/* ! portfolio ends */


/* ! CONTACT */
#contact {
    background-color: #f2f2f2;
    height: auto;
}
.grid_cnct {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
    justify-content: space-evenly;
    align-content: space-evenly;
    height: 100%;
    justify-content: center;
    align-items: start;
}

.formStyle {
    text-align: left;
    margin: 15px;
}

label {
    color: var(--hover);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

input {
    padding: 5px;
    width: 100%;
    border: none;
    background-color: inherit;
    border-bottom: 2px solid var(--body-color);
}

input:focus {
    outline: none;
    font-family: var(--body);
}

textarea {
    width: 100%;
    font-family: var(--body);
    background-color: inherit;
    border: 2px solid var(--body-color);
    padding: 15px;
    line-height: 2;
}

/* ! contact ends */


/* ! FOOTER */
footer {
    background-color: var(--primary);
    padding: 40px 0px 20px;
}
#footer_Cont {
    text-align: center;
}
.social_media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}
.footer-link {
    display: flex;
    justify-content: center;
}
.footer-link a i {
    transform: scale(1.4);
}
.footer-link h6 {
    font-size: 1rem;
    margin: 5px auto;
}
.ft_hvr:hover {
    text-transform: none;
}
#footer_Cont > p {
    font-size: 1rem;
    font-weight: 400;
}
/* ! footer ends */



/*! ------------------------------------------------------------------------------- */
 /* **************************** Tablet (to desktop) ***************************** */
/*! ------------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 992px) {

    /* About Section */
    #about_Sec {
        width: 100%;
    }
    .about_skills {
        width: 100%;
    }
    /* About Sec ends */

    /* Portfolio */
    .Portfolio_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------Tablet ends------------------------------------- */




/*! ------------------------------------------------------------------------------- */
 /* **************************** Mobile (to tablet) ***************************** */
/*! ------------------------------------------------------------------------------- */

@media (min-width: 320px) and (max-width: 767px){

    /*  Header */
    header nav {
        display: none;
    }

    #hamburger-icon {
        display: block;
    }

    #hamburger-icon ul {
        background-color: var(--primary);
        /* height: auto; */
    }
    /*  Header Ends */

    /* Hero */
    #hero_Cont {
        position: absolute;
        top: 10px;
        left: 18%;
        margin-top: 1rem;
    }
    #hero_H {
            font-size: 2.6rem;
    }
    .H_text_ani {
        font-size: 1.8rem;
    }
    /* hero ends */

    /* About Section */
    #about_Sec {
        width: 100%;
        flex-direction: column;
    }
    .about_skills {
        padding: 0;
        max-width: 100%;
    }
    .about_Three {
        flex-direction: column-reverse;
    }
    /* About Sec ends */

    .Portfolio_grid {
        grid-template-columns: 1fr;
        justify-content: center;
        text-align: center;
    }
    /* about ends */


    /* portfolio Start */
    .grid_cnct {
        grid-template-columns: 1fr;
    }
    /* portfolio ends */

    /* Footer */
    .footer-link a i {
        transform: scale(1.6);
    }
    .footer-link h6 {
        display: none;
    }
}

/* --------------------------------Mobile ends------------------------------------- */