/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ========== VARIABLES CSS ========= */
:root{
    --header-height: 3.5rem;

    /* ====== COLORS ====== */
    --first-color : #19719c;
    --first-color-light : #83b3ca;
    --white-color : #fff;
    --second-color: #000013;
    --text-color : #5c5c68;

    /* ====== FONT AND TYPOGRAPHY ====== */
    --body-font : "Open Sans", sans-serif;
    --title-font : "Tinos", serif;
    --biggest-font-size : 3rem;
    --big-font-size : 2.25rem;
    --h1-font-size : 1.75rem;
    --h2-font-size : 1.5rem;
    --h3-font-size : 1.25rem;
    --normal-font-size : 1rem;
    --small-font-size : .938rem;
    --smallest-font-size : .813rem;

    /* ====== FONT WEIGHT ======= */
    --font-light : 300;
    --font-regular : 400;
    --font-medium : 500;
    --font-semi : 600;
    --font-bold : 700;

    /* ====== Z INDEX ===== */
    --z-tooltip : 10;
    --z-fixed : 100;
}

/* ========= RESPONSIVE TYPOGRAPHY =========== */
@media screen and (min-width : 1025px){
    :root{
    --biggest-font-size : 5rem;
    --big-font-size : 3rem;
    --h1-font-size : 2.25rem;
    --h2-font-size : 1.75rem;
    --h3-font-size : 1.5rem;
    --normal-font-size : 1.25rem;
    --small-font-size : 1rem;
    --smallest-font-size : .938rem;
    }
}

/* ========== UTILITIES ======= */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--white-color);
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    width: 100%;
}

h1,h2,h3,h4{
    font-family: var(--title-font);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

input,
textarea,
button{
    border: none;
    outline: none;
}

/* ========= BASE ========= */
.main{
    overflow: hidden;
}

.section{
    padding-block: 3rem 1rem;
}

.container{
    max-width: 1024px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid{
    display: grid;
    gap: 1rem;
}

/* ======== HEADER ======== */

.header{
    width: 100%;
    position: fixed;
    z-index: var(--z-fixed);
    top: 0;
    left: 0;
    transition: .4s;
    background-color: var(--first-color);
    color: var(--white-color);
}

.nav{
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo{
    display: flex;
    column-gap: .5rem;
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
}

.nav-toggle{
    font-size: var(--h1-font-size);
}

@media screen and (max-width : 1024px){
    .nav-menu{
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--second-color);
    padding: 10rem 5rem;
    box-shadow: rgba(0, 49, 89, 0.458) 0px 5px 15px;
    transition: .4s;
}
}

.nav-list{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav-link{
    font-size: var(--h3-font-size);
    color: var(--white-color);
    font-weight: var(--font-semi);
    transition: .4s
}

.nav-link:hover{
    color: var(--first-color-light);
}

.nav-close{
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: var(--h1-font-size);
}

.nav-close:hover,
.nav-toggle:hover{
    cursor: pointer;
}

/* show-menu */
.show-menu{
    left: 0;
}

/* blur-header */
.blur-header{
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* ========= HOME ======== */

.home{
    background-image: url(img/home-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.home::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--second-color);
    opacity: .5;
}

.home-container{
    position: absolute;
    z-index: var(--z-tooltip);
    top: 40%;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 1rem;
}

.home-subtitle,
.home-title{
    color: var(--first-color-light);
}

.home-subtitle{
    font-size: var(--big-font-size);
}

.home-title{
    font-size: var(--biggest-font-size);
}

.home-text{
    font-size: var(--h3-font-size);
    color: var(--white-color);
}

.home-btn{
    padding: 1rem 2rem;
    background-color: var(--first-color);
    border-radius: 1.5rem;
    color: white;
    font-weight: var(--font-semi);
    margin-top: 1rem;
    transition: .4s;
}

.home-btn:hover{
    box-shadow: rgba(0, 49, 89, 0.458) 0px 5px 15px;
}

/* ======= SERVICES ======== */
.services{
    width: 100%;
}

.services-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 3rem;
}

.services-title{
    font-size: var(--biggest-font-size);
    color: var(--second-color);
    font-weight: var(--font-bold);
    text-align: center;
}

.services-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.services-data{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: .5rem;
}

.services-data i{
    font-size: var(--biggest-font-size);
    color: var(--first-color-light);
    font-weight: var(--font-semi);
    transition: .4s;
}

.services-data i:hover{
    color: var(--second-color);
}

.services-data h2{
    color: var(--second-color);
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi);
}

.services-data p{
    color: var(--second-color);
    font-weight: var(--font-regular);
}

.services-desc{
    background-color: var(--first-color-light);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: .5rem;
    color: var(--white-color);
}

.services-desc h3{
    font-size: var(--h1-font-size);
}

.services-desc h1{
    font-size: var(--big-font-size);
}

.services-btn{
    padding: 1rem 2rem;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    font-weight: var(--font-semi);
    margin-top: 1rem;
    transition: .4s;
}

.services-btn:hover{
    background-color: var(--second-color);
}

/* ========== ABOUT ========= */
.about{
    width: 100%;
}

.about-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5rem;
}

.about-div_1{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
    width: 330px;
}

.about-1_image{
    width: 330px;
    height: 400px;
}

.about-desc{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: .5rem;
}

.about-desc h3{
    font-size: var(--h2-font-size);
    color: var(--second-color);
}

.about-desc h1{
    font-size: var(--big-font-size);
    color: var(--first-color-light);
}

.about-container p{
    color: var(--text-color);
}

.about-btn{
    padding: 1rem 2rem;
    font-size: var(--h3-font-size);
    color: var(--white-color);
    font-weight: var(--font-semi);
    background-color: var(--first-color-light);
    border: 2px solid var(--first-color-light);
    margin-top: 1rem;
    transition: .4s;
}

.about-btn:hover{
    background-color: var(--second-color);
}

.about-div_2{
    width: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 3rem;
}

.about-info{
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.about-info h1{
    font-size: var(--big-font-size);
    color: var(--first-color-light);
}

.about-info h4{
    font-size: var(--h2-font-size);
}

.about-info h4,
.about-info h3{
    color: var(--second-color);
}

.about-2_image{
    width: 330px;
    height: 350px;
}

/* =========== TEAM ========== */
.team{
    width: 100%;
}

.team-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 2rem;
}

.team-container h1{
    font-size: var(--biggest-font-size);
    color: var(--second-color);
}

.team-grid{
    grid-template-columns: repeat(1, 330px);
    row-gap: 3rem;
    padding-bottom: 3rem;
}

.team-data{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 1rem;
}

.team-img,
.client-img{
    width: 150px;
    height: 150px;
}

.team-grid img,
.client-img img{
    border-radius: 50%;
}

.team-data h1{
    font-size: var(--h2-font-size);
}

.client-div{
    width: 100%;
    background-color: var(--first-color);
}

.swiper-slide{
    display: flex !important;
    flex-direction: column !important;
    row-gap: 1rem !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    color: var(--white-color);
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{
    background: var(--second-color) !important;
}

/* ========== CONTACT ======= */
.contact{
    width: 100%;
    height: auto;
    display: flex;
    align-items: self-start;
    flex-direction: column;
    row-gap: 3rem;
    padding-bottom: 3rem;
}

.contact-image{
    width: 100%;
    height: 50vh;
}

.contact-info{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.contact-info h1{
    font-size: var(--big-font-size);
}

.contact-form{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: self-start;
    row-gap: 1rem;
}

.contact-input{
    padding: 1rem;
    border: 1px solid var(--second-color);

}

.contact-btn{
    width: 8rem;
    padding: 1rem 2rem;
    background-color: var(--first-color);
    color: var(--white-color);
    font-weight: var(--font-semi);
    transition: .4s;
}

.contact-btn:hover{
    background-color: var(--second-color);
}

/* ====== FOOTER ====== */
.footer{
    background-color: #5c5c68;
    padding-block: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
}

.footer-content{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-content h1{
    font-size: var(--normal-font-size);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--white-color);
}

.footer-content p{
    font-size: var(--smallest-font-size);
    font-weight: var(--font-light);
}

/* ======== BREAKPOINTS ======== */
@media screen and (min-width: 768px) and (max-width : 1024px){
    .home{
        background-attachment: fixed;
        min-height: 85vh;
    }

    .services-container{
        flex-direction: row;
    }

    .services-title{
        display: none;
    }

    .services-grid{
        flex: 2;
    }

    .services-desc{
        flex: 1;
    }

    .about-div_1,
    .about-div_2{
        flex-direction: row;
        width: 100%;
        column-gap: 3rem;
        align-items: self-start;
    }

    .about-1_image{
        flex: 2;
        height: auto;
    }

    .about-desc{
        flex: 2;
    }

    .about-info,
    .contact-image{
        flex: 1;
    }

    .about-2_image{
        height: auto;
        flex: 1;
    }

    .team-grid{
        grid-template-columns: repeat(3, 250px);
    }

    .contact{
        flex-direction: row;
        padding-top: 3rem;
    }
}

@media screen and (min-width: 1025px) {
    .container{
        max-width: 1496px;
        margin-inline: 3rem;
    }

    .nav{
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav-close,
    .nav-toggle{
        display: none;
    }

    .nav-list{
        flex-direction: row;
        column-gap: 2rem;
    }
    
    .nav-link{
        font-family: var(--normal-font-size);
        font-weight: var(--font-medium);
    }

    .home{
        background-attachment: fixed;
    }

    .services-container{
        flex-direction: row;
    }

    .services-title{
        display: none;
    }

    .services-grid{
        flex: 2;
    }

    .services-desc{
        flex: 1;
    }

    .about-div_1,
    .about-div_2{
        width: 100%;
        flex-direction: row;
        column-gap: 3rem;
    }

    .about-1_image,
    .about-2_image{
        flex: 2;
        height: auto;
    }

    .about-desc,
    .about-info{
        flex: 2;
    }

    .team-grid{
        grid-template-columns: repeat(3, 330px);
        column-gap: 3rem;
    }

    .contact{
        flex-direction: row;
    }

    .contact-image{
        flex: 1;
    }

    .contact-container{
        flex: 1;
    }

    .contact-btn{
        width: 9rem;
    }
}