/* ==========================================================================
Designed and Developed by
Mohit Kumar Arya
Email: mohitarya.cse@gmail.com
Happy Coding
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400&family=Tajawal:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@700&family=Poppins:wght@200;300;400&family=Tajawal:wght@400;500&display=swap');

/* ==========================================================================
Global Variable Settings
========================================================================== */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Now create the css variables*/
:root {
    --heading: rgb(15, 14, 14);
    --pare: rgb(25, 26, 25);
    --para-tint: #e4e4e4;
    --white: #fff;
    --helper-tint: #f3f4ff;
    --bg-one: #15133C;
    --bg-two: #73777B;
    --bg-three: #EC994B;
    --bg-four: #F1EEE9;
    --shadow: 0px 0px 20px 0px rgba(3, 22, 190, 0.5);
    --gradient: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(60, 60, 191, 1) 0%, rgba(0, 212, 255, 1) 100%);
    --shadow-support: 0px 20px 20px 0px rgba(23, 46, 255, 0.3);
    --icon-bg: rgba(144, 172, 209, 0.2);
    --img-overlay: #3e64ff;
    --footer-color: #adadad;
    --black: black;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    /* 1rem = 10px*/
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Tajawal', sans-serif;
}

h1 {
    color: var(--heading);
    font-size: 6rem;
    font-weight: 500;
}

h3 {
    font-size: 1.8rem;
    font-weight: 400;
}

p {
    color: var(--para);
    line-height: 1.6;
    font-size: 1.7rem;
    font-family: 'Poppins', sans-serif;
}

span {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

/* ==========================================================================
Reusable Code
========================================================================== */
.section {
    padding: 9rem 0;
}

.grid {
    display: grid;
    gap: 9rem;
}

.grid-two-column {
    grid-template-columns: repeat(2, 1fr);
    /* two grid column each of 1fr of equal space */
}

.grid-three-column {
    grid-template-columns: repeat(3, 1fr);
    /* two grid column each of 1fr of equal space */
}

.grid-four-column {
    grid-template-columns: repeat(4, 1fr);
    /* two grid column each of 1fr of equal space */
}

.container {
    max-width: 120rem;
    margin: 0 auto;
}

.btn {
    background: var(--bg-one);
    padding: 1.6rem 3.2rem;
    border: none;
    color: var(--helper-tint);
    display: inline-block;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition-transition: all 0.3s ease;
    -moz-trasition-transition: all 0.3s ease;
    -o-tranition-transition: all 0.3s ease;
}

.btn:hover,
.btn:active {
    box-shadow: var(--shadow-support);
}

.common-heading {
    font-size: 4.8rem;
    font-weight: 600;
    margin-bottom: 6rem;
    text-transform: capitalize;
    position: relative;
}

.common-heading::before {
    content: "";
    position: absolute;
    top: 110%;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--bg-two);
}

.common-heading::after {
    content: "";
    position: absolute;
    top: 118%;
    left: 1.5rem;
    min-width: 20rem;
    height: .3rem;
    background-color: var(--bg-two);
}

@keyframes hirebtn{
    0%{
        width:0%;
    }
    50%{
        width:100%;
    }
    100%{
        width:0%;
    }
}

/* ==========================================================================
Header Section Start
========================================================================== */
.header {
    padding: 0 4.8rem;
    height: 10rem;
    background-color: var(--bg-one);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    height: 3rem;
}

.navbar-lists {
    display: flex;
    gap: 4.8rem;
}

.navbar-link:link,
.navbar-link:visited {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: uppercase;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    ;
    transition: all 0.3s linear;
}

.navbar-link:hover,
.navbar-link:active {
    color: var(--bg-three);
}

.mobile-navbar-btn {
    display: none;
    background-color: transparent;
    cursor: pointer;
    border: none;
}

.mobile-nav-icon[name="close-outline"] {
    display: none;
}

/* sticky Navbar */
.sticky .header {
    position: fixed;
    top: 0;
    left: 0;
    height: 8rem;
    width: 100%;
    background-color: var(--bg-one);
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding-top: 0;
    padding-bottom: 0;
}

/* ==========================================================================
Hero Section Start
========================================================================== */
.section-hero {
    background-color: var(--bg-three);
}

.section-hero-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-top-data {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--para);
}

.hero-img {
    max-width: 80%;
}

.hero-heading {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 6.4rem;
}

.hero-para {
    margin-top: 1.5rem;
    margin-bottom: 5rem;
    max-width: 60rem;
    text-align: justify;
}

.section-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animation Text CSS */
.animatedText {
    display: flex;
}

.animatedText .staticText {
    color: var(--bg-four);
    font-size: 5rem;
    font-weight: 600;
}

.animatedText .dynamicText {
    margin-left: 1rem;
    height: 7.6rem;
    overflow: hidden;
}

.dynamicText li {
    color: var(--bg-one);
    font-weight: 600;
    font-size: 5rem;
    position: relative;
    top: 0;
    animation: slide 8s steps(4) infinite;
}

.dynamicText li span {
    position: relative;
}

.dynamicText li span::after {
    content: "";
    position: absolute;
    left: 0;
    height: 100%;
    width: 200%;
    background-color: var(--bg-three);
    border-left: 1px solid var(--bg-four);
    animation: typing 2s steps(15) infinite;
}

@keyframes typing {
    100% {
        left: 108%;
    }
}

@keyframes slide {
    100% {
        top: -30rem;
    }
}

/* ==========================================================================
Bio Data Section Start
========================================================================== */
.bio-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bio-image img {
    max-width: 80%;
    box-shadow: -2rem -2rem 0 0 var(--bg-two);
    display: inline-block;
}

.bio-data-stats {
    display: flex;
    padding: 2rem 0;
    flex-direction: column;
    gap: 2rem;
}

.bio-stats {
    margin-bottom: 1rem;
}

.bio-progress-bar {
    width: 90%;
    height: 0.8rem;
    background-color: var(--bg-three);
    border-radius: 10rem;
    box-shadow: var(--shadow-support);
    position: relative;
}

.bio-progress-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: inherit;
    background: var(--bg-one);
    border-radius: 10rem;
}

.bio-progress-2::before {
    width: 90%;
}

.bio-progress-3::before {
    width: 85%;
}

.bio-progress-4::before {
    width: 70%;
}

.bio-progress-5::before {
    width: 75%;
}

.bio-progress-6::before {
    width: 60%;
}

.bio-progress-bar span {
    position: absolute;
    top: 1.8rem;
    width: 4rem;
    height: 2rem;
    background: var(--bg-one);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
}

.bio-progress-bar span {
    left: 90%;
}

.bio-progress-2 span {
    left: 86%;
}

.bio-progress-3 span {
    left: 81%;
}

.bio-progress-4 span {
    left: 66%;
}

.bio-progress-5 span {
    left: 71%;
}

.bio-progress-6 span {
    left: 56%;
}

/* To Create Caret */
.bio-progress-bar span::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 0.8rem solid var(--bg-one);
    border-color: transparent;
    border-bottom-color: var(--bg-one);
    top: -1.6rem;
}

/* ==========================================================================
Portfolio Section Start
========================================================================== */
.section-portfolio {
    background: var(--bg-four);
    transition: all 0.7s linear;
}

.section-portfolio p {
    max-width: 60rem;
}

.p-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 5rem 0;
}

.portfolio-images {
    gap: 2rem;
}

.portfolio-images img {
    width: 80%;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
}

.img-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.img-overlay .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--helper-tint);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.7s linear;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-overlay:hover>.overlay {
    transform: translateY(0);
    opacity: 0.8;
    cursor: pointer;
}
.overlay a{
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 6rem;
    text-transform: capitalize;
    position: relative;
}
.img-overlay .common-heading {
    margin: 0;
    color: var(--bg-one);
    text-decoration: none;
}

.p-btn:hover {
    transform: translateY(-1rem);
}

.p-image-not-active {
    display: none;
}

.p-image-active {
    display: inline;
}

/* ==========================================================================
Work Data Section Start
========================================================================== */
.section-work-data {
    background: var(--bg-three);
    text-align: center;
    transition: all 0.7s linear;
}

.counter-numbers {
    font-size: 7rem;
}

.section-work-data p {
    color: var(--gradient);
    text-transform: capitalize;
    font-weight: 700;
}

/* ==========================================================================
Our Services Section Start
========================================================================== */
.section-services {
    transition: all 0.7s linear;

}

.section-services p {
    max-width: 60rem;
}

.section-services .grid {
    margin-top: 10rem;
    row-gap: 5rem;
}

.service-box {
    text-align: center;
    box-shadow: var(--shadow);
    border-radius: 5px;
    padding: 6.4rem 3.4rem;
    transition: all 0.2s linear;

}

.service-box:hover,
.service-box:active {
    transform: translateY(-3rem);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    background-color: var(--icon-bg);
    display: inline-block;
    border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
    padding: 1.4rem 1.8rem;
    position: relative;
    color:var(--bg-one);
    animation: water-wave 3s linear infinite;
}

.service-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
    background: transparent;
    border: 2px solid var(--bg-two);
    animation: water-wave 3s linear infinite;
}

/*Fancy Border Animation 
Using https://9elements.github.io/fancy-border-radius/#44.54.61.33--. 
icons are used from:
https://ionic.io/ionicons
*/
@keyframes water-wave {
    0% {
        border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
    }

    50% {
        border-radius: 25% 22% 35% 15% / 15% 12% 23% 35%;
    }

    100% {
        border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
    }
}

.service-box h3 {
    text-transform: capitalize;
    color: var(--bg-one);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

/* ===========================================
Resume Section
======================================= */

.section-resume {
    background: var(--bg-four);
}

.resume-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.resume-img img {
    width: 80%;
    box-shadow: -2rem 2rem 0 0 var(--bg-three);
    /* box-shadow: var(--shadpw) */
}

.resume-para {
    font-size: 2.4rem;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--heading);
}

.resume-data-subsection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4.8rem;
    margin-top: 1rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--para-tint);
}

.resume-data-left .grid {
    gap: 1.5rem;
}

.resume-data-left .grid p,
.resume-data-right p {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-data-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.resume-data-right .resume-data-button {
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--helper);
    padding: 0.3rem 0;
    min-width: 50%;
    background: #f3f4ff;
    border-radius: 10rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.resume-data-bottom-subsection {
    margin-top: 4.8rem;
}

.resume-data-bottom-subsection .margin-small {
    margin-top: 1.8rem;
}

.resume-data-bottom-subsection .resume-data-button {
    width: 80%;
}

/* ==========================================================================
Client Testimonial Section Start (Swiper Slider)
========================================================================== */
/* Slider is used from the Swiper Site
link: https://swiperjs.com/get-started
Swiper is a JS library
*/
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    -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;
}

.swiper-client-msg {
    padding: 5rem 8rem;
    background-color: var(--para-tint);
    border-radius: 1rem;
    text-align: left;
    box-shadow: var(--shadow);
    position: relative;
}

.swiper-slide img {
    max-width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 0.5rem solid var(--para-tint);
}

.swiper-client-msg::before {
    content: "";
    position: absolute;
    bottom: -10rem;
    left: 50%;
    transform: translate(-50%);
    border: 5rem solid var(--bg-four);
    border-color: transparent;
    border-top-color: var(--para-tint);
}

.swiper-client-data {
    align-items: center;
    margin-top: 3.2rem;
    gap: 3.2rem;
}

.swiper-client-msg p::before {
    /* This is the trick to use icon in between content
    --> copy the unicode of the icon
    --> Apply the font family  
    --> Apply font weight 900
    */
    content: "\f10d";
    position: absolute;
    top: 0;
    left: 2rem;
    font-size: 5rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bg-three);
}

.swiper-client-msg p::after {
    /* This is the trick to use icon in between content
    --> copy the unicode of the icon
    --> Apply the font family  
    --> Apply font weight 900
    */
    content: "\f10e";
    position: absolute;
    bottom: 0;
    right: 4rem;
    font-size: 5rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bg-three);
}

/* ==========================================================================
Freelancing Section Start (PARALLAX EFFECT)
========================================================================== */
.section-freelancing {
    background-image: url('../images/folio/js.jpg');
    background-repeat: no-repeat;
    background-size: 100%;
    background-attachment: fixed;
    position: relative;
    transition: all 0.7s linear;
    text-align: center;
}

.section-freelancing .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--img-overlay);
    opacity: 0.6;
}

.section-freelancing .container {
    position: relative;
}

.section-freelancing h2 {
    font-size: 5.4rem;
}

.section-freelancing span {
    color: #a0f669;
}

.section-freelancingh h2,
.section-freelancing p {
    color: var(--bg-four);
    margin-bottom: 1.8rem;
}

/* ==========================================================================
Contact Us Section Start
========================================================================== */
.section-contact-main {
    max-width: 70rem;
    margin: 0 auto;
    margin-top: 9rem;
    transition: all 0.3s linear;
}

.section-contact-main .grid {
    gap: 3.2rem;
}

.section-contact-main form {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

.section-contact-main input,
.section-contact-main textarea {
    padding: 1.5rem 2rem;
    border: 0.1rem solid var(--bg-one);
    border-radius: 1.6rem;
    font-size: 1.6rem;
    width: 100%;
}

.section-contact-main input[type="submit"] {
    max-width: 30%;
    border: none;
}

/* ==========================================================================
Footer Section
========================================================================== */
.section-footer {
    background: var(--bg-one);
    transition: all 0.7s linear;
}

.section-footer h3 {
    color: var(--helper-tint);
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.f-about p {
    color: var(--footer-color);
    text-align: justify;
}

.f-links ul,
.f-services ul,
.f-address address {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    justify-content: center;
}

.f-links li,
.f-links a,
.f-services li,
.f-services a {
    font-size: 1.5rem;
    color: var(--footer-color);
    text-transform: capitalize;
}

.f-links span,
.f-services span .f-address span {
    margin-right: 1rem;
}

.f-address p,
.f-address p a {
    font-style: normal;
    color: var(--footer-color);
    font-size: 1.4rem;
}

.f-social-icons {
    margin: 5rem 0;
    text-align: center;
    color: var(--footer-color);
}

.f-social-icons .icons {
    width: 4rem;
    height: 4rem;
    background-color: var(--icon-bg);
    display: inline-block;
    padding: 1.4rem;
    position: relative;
    color: var(--white);
    animation: water-wave 3s linear infinite;
}

.f-credits p {
    text-align: center;
    color: var(--footer-color);
}

footer a:hover,
.footer a:active {
    color: var(--white);
}

/* ==========================================================================
Scroll Section Start
========================================================================== */
.scrollTop-style {
    position: fixed;
    right: 2%;
    bottom: 2%;
    bottom: 5%;
    z-index: 1;
}

.scroll-top {
    width: 4rem;
    height: 4rem;
    background: var(--helper-tint);
    border-radius: 56% 44% 70% 30% / 30% 54% 46% 70%;
    border: 2px solid var(--bg-one);
    display: inline-block;
    padding: 1.4rem 1.8rem;
    color: var(--heading);
    animation: water-wave 3s linear infinite;
    cursor: pointer;
}

/* ==========================================================================
Media Queries Start (Media Query does not work with rem(root element))
But work with em (1em = 16 Px)
========================================================================== */
/* 1240 Px */
@media(max-width: 77em) {
    .container {
        max-width: 100rem;
        padding: 0 3.2rem;
    }

    .navbar-lists {
        gap: 3.2rem;
    }

    html {
        font-size: 56.25%;
    }

    .grid {
        gap: 4.2rem;
    }

    .section .grid-two-column {
        grid-template-columns: 1fr 2fr;
    }

    .resume-data-subsection .grid-two-column {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 49em) {
    .container {
        max-width: 85rem;
    }

    .section-hero .grid-two-column {
        grid-template-columns: repeat(1, 1fr);
    }

    .section-hero-data {
        align-items: center;
    }

    .hero-heading {
        text-align: center;
    }

    .hero-para {
        text-align: justify;
        margin-top: 2rem;
    }

    .section-hero img {
        width: 70%;
    }

    .swiper {
        width: 90%;
        height: 100%;
    }

    .swiper-slide {
        padding: 5rem;
    }

    /* bio data */

    .section-bio-data .grid-two-column {
        grid-template-columns: repeat(1, 1fr);
    }

    .section-bio-data .bio-image {
        /* we want image down and text upside
        we have to mention grid start and grid end
        there are three ways o define it 
        1) grid-row-start:2
        grid-row-end:3;
        2) grid-row:2/3
        3) grid-row:2; (if next no. is in continious form)
        */
        grid-row: 2;
        margin-top: 3.2rem;
    }

    .section-bio-data img {
        width: 70%;
    }
}


@media(max-width:980px) {

    html {
        font-size: 50%;
    }

    .header {
        position: relative;
    }

    .mobile-navbar-btn {
        display: block;
        z-index: 9999;
        border: 3px solid var(--white);
        color: var(--white);
    }

    .mobile-nav-icon {
        width: 5rem;
        height: 5rem;
        color: var(--white);
    }

    .navbar {
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        background-color: var(--bg-one);

        display: flex;
        justify-content: center;
        align-items: center;

        transform: translateX(100%);
        transition: all 0.5s linear;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999;
    }

    .navbar-lists {
        flex-direction: column;
        align-items: center;
    }

    .navbar .navbar-lists .navbar-link:link,
    .navbar .navbar-lists .navbar-link:visited {
        color: var(--white);
        font-size: 3.2rem;
    }

    .active .navbar {
        transform: translateX(0%);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .active .mobile-navbar-btn .mobile-nav-icon[name="menu-outline"] {
        display: none;
    }

    .active .mobile-navbar-btn .mobile-nav-icon[name="close-outline"] {
        display: block;
    }

    .section-services .grid {
        gap: 6rem;
    }

    .section-services,
    .grid-three-column {
        grid-template-columns: repeat(2, 1fr);
    }

    /* resume section */
    .section-resume .grid-two-column {
        grid-template-columns: 1fr;
    }

    .section-work-data .grid-four-column {
        grid-template-columns: 1fr 1fr;
    }

}

/* below 560px */
@media(max-width:35em) {
    .header {
        padding: 0 3.2rem;
    }

    .btn {
        padding: 1rem 2rem;
    }

    .counter-number {
        font-size: 3.2rem;
    }

    /* services section  */
    .section-services .grid-three-column {
        grid-template-columns: 1fr;
    }

    /* resume section */
    .resume-data-subsection {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    .resume-data-right {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 2.4rem;
    }

    .resume-data-right .resume-data-button,
    .resume-data-button-subsection .resume-data-button {
        min-width: 30%;
    }

    .resume-data-subsection .resume-data-left .grid-two-column {
        grid-template-columns: 1fr;
    }

    .resume-data-bottom-subsection .resume-data-button {
        width: 50%;
    }

    .section-freelancing h2 {
        font-size: 3.2rem;
    }

    /* contact section  */
    .contact-container {
        padding: 0 3.2rem;
    }

    .contact-container .grid-two-column {
        grid-template-columns: 1fr;
    }

    .section-contact-main input[type="submit"] {
        max-width: 40%;
    }

    /* footer section */
    .section-footer .f-about,
    .section-footer .f-address {
        grid-column: 1/-1;
    }
}