@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

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

    /* == Colors == */
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(33, 90%, 65%);
    --second-color: hsl(355, 90%, 55%);
    --third-color: hsl(198, 90%, 65%);
    --title-color: hsl(0, 0%, 12%);
    --text-color: hsl(0, 0%, 56%);
    --black-color: hsl(0, 0%, 4%);
    --white-color: hsl(0, 0%, 100%);
    --body-color: hsl(0, 0%, 95%);

    /* == Font and typography == */
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --biggest-font-size: 2.25rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    /* == Font weight == */
    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

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

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

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--title-color);
    margin: 0px 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}
/* ========================= scroll bar ==============*/
::-webkit-scrollbar{
    width: .6rem;
    background-color: hsl(0, 0%, 70%);
}
::-webkit-scrollbar-thumb{
    background-color: hsl(0, 0%, 60%);
}

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

.main {
    overflow: hidden;
}

/* === start header === */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: box-shodow 0.4s;
}
.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 20px;
}
.nav_logo {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}
.nav_close,
.nav_toggle{
    display: flex;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav_list {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}
.nav_link{
    color: var(--white-color);
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
}
.nav_link:hover {
    color: hsl(0, 0%, 40%);
}
.nav_close {
    color: var(--white-color);
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
}
.nav_social {
    display: flex;
    column-gap: .5rem;
    align-self: flex-end;
}
.nav_social a{
    color: white;
    font-size: 1.7rem;
    display: inline-block;
    margin: 8px;
}
.nav_social a:hover{
    color: hsl(0, 0%, 40%);
}

.bg-header {
    box-shadow: 0 2px 16px hsla(0, 0%, 0%, .2);
    transition: .3s;
}

/* media navigation for mobile devices */
@media screen and (max-width: 1023px) {
    .nav_manu {
        position: fixed;
        top: 0;
        left: -100%;
        background-color: var(--black-color);
        width: 100%;
        height: 100dvh;
        padding: 7rem 1.5rem 2.5rem 4rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: left .4s;
    }
    .nav_manu.open {
        left: 0 !important;
    }
}

/*=============== HOME ===============*/
.home_data,
.home_article,
.home_images,
.home_footer {
    display: grid;
}

.home-container {
    padding: 7.5rem;
    row-gap: 1.5rem;
}

.home_data {
    text-align: center;
}

.home_subtitle {
    font-size: var(--small-font-size);
}

.home_titles {
    width: 100%;
    margin-block: .7rem 2rem;
}

.home_title {
    font-size: var(--biggest-font-size);
    transform: translateY(10rem);
    opacity: 0;
    transition: transform .3s .2s, opacity .3s;
}

.home_button,
.home_social,
.home_controls,
.home_navigation {
    display: flex;
}

.home_button {
    justify-content: center;
    align-items: center;
    column-gap: .5rem;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.home_button .arrow {
    font-weight: inherit;
    font-size: 1.25rem;
    transition: transform .4s;
}

.home_button:hover .arrow {
    transform: translateX(.5rem);
}

.home_article {
    place-items: center;
    padding-block: 1rem;
}

.home_card {
    width: 270px !important;
    position: relative;
    margin: 20px auto;
}

.home_circle {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .1s ease-out;
}

.home_circle-1 {
    background-color: var(--first-color);
}

.home_circle-2 {
    background-color: var(--second-color);
}

.home_circle-3 {
    background-color: var(--third-color);
}

.home_img-1,
.home_img-2 {
    position: absolute;
    width: 200px;
    filter: drop-shadow(0 20px 12px hsla(0, 0%, 0%, .4));
    transition: transform .7s .1s cubic-bezier(.2, .9, .3, 1.3), opacity .3s;
}

.home_img-1 {
    bottom: 7rem;
    left: -1.5rem;
    transform: translateX(-5rem) rotate(60deg);
    opacity: 0;
}

.home_img-2 {
    bottom: 3rem;
    right: -1.5rem;
    transform: translateX(5rem) rotate(60deg);
    opacity: 0;
}

.home_footer {
    row-gap: 3rem;
}

.home_social {
    justify-content: center;
    column-gap: .5rem;
    margin-bottom: 10px;
}

.home_social a {
    color: var(--title-color);
    font-size: 1.7rem;
    display: inline-block;
    margin: 7px;
}
.home_social a:hover {
    color: hsl(0, 0%, 40%);
}

/* swiper class */
.swiper {
    margin-inline: initial;
}

.swiper-button-prev::after{
    margin-left: 40px;
    padding: 15px;
}
.swiper-button-next::after{
    margin-right: 40px;
    padding: 15px;
}


/* swiper animation */
.swiper-slide-active .home_title {
    transform: translateY(0);
    opacity: 1;
}
.swiper-slide-active .home_circle {
    opacity: 1;
}
.swiper-slide-active .home_img-1 {
    opacity: 1;
    transform: translateX(0) rotate(15deg);
}
.swiper-slide-active .home_img-2 {
    opacity: 1;
    transform: translateX(0) rotate(-30deg);
}

/* =============== BREAKPOINTS ================= */
/* for small screen */
@media screen and (max-width: 330px) {
    .container {
        margin-inline: 1rem ;
    }
    .home_title {
        font-size: 1.8rem;
    }
    .home_circle {
        width: 220px;
        height: 220px;
    }
    .home_img-1,
    .home_img-2 {
        width: 150px;
    }
    .home_img-1 {
        bottom: 6rem;
    }
}
/* for lange screen */
@media screen and (max-width: 540px) {
    .home-container {
        padding: 100px 10px;
    }
    .home_img-1,
    .home_img-2 {
        width: 180px;
    }
    .home_img-1 {
            bottom: 8rem;
            left: -.5rem;
        }
    
    .home_img-2 {
        bottom: 3rem;
        right: -0.2rem;
    }
}

/* for large devices */
@media screen and (min-width: 1023px) {
    .nav {
        height: calc(var(--header-height) + 2rem);
    }
    .nav_toggle,
    .nav_close {
        display: none;
    }
    .nav_link {
        font-size: var(--normal-font-size);
        color: var(--title-color);
    }
    .nav_social {
        column-gap: 1rem;
    }
    .nav_social a {
        color:  var(--title-color);
    }
    .nav_manu {
        display: flex;
        column-gap: 3rem;
        align-items: center;
    }
    .nav_list {
        flex-direction: row;
        column-gap: 3rem;
    }
}
@media screen and (min-width: 1023px){
    .container {
        margin-inline: auto;
    }
    .home-container{
        display: grid;
        grid-template-columns: 450px 600px;
        grid-template-rows: 470px;
        align-items: center;
        justify-content: center;
        column-gap: 6rem;
        padding-top: 12rem;
    }
    .home_data {
        text-align: center;
    }
    .home_subtitle {
        font-size: var(--normal-font-size);
    }
    .home_title {
        margin-bottom: 3rem;
    }
    .home_button {
        z-index: 2;
    }
    .home_images {
        position: absolute;
        top: 9rem;
    }
    .home_card {
        transform: translateX(3rem);
        width: 100% !important;
    }
    .home_circle {
        width: 500px;
        height: 500px;
    }
    .home_img-1,
    .home_img-2 {
        width: 350px;
    }
    .home_img-1 {
        bottom: 14rem;
        left: -1rem;
        transform: translateX(-25rem) rotate(60deg);
    }
    .home_img-2 {
        bottom: 6rem;
        right: 5rem;
        transform: translateX(25rem) rotate(60deg);
    }
}