:root {
    --primary-color: #111317;
    --primary-color-light: #1f2125;
    --primary-color-extra-light: #35373b;
    --secondary-color: #c34b4b;
    --secondary-color-dark: #983131;
    --text-light: #d1d5db;
    --white: #ffffff;
    --max-width: 1200px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
}

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

.section__header{
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--white);
}

body{
    height: 100%;
    font-family: "Poppins", sans-serif;
    background-color: var(--primary-color);
}

nav{
    max-width: var(--max-width);
    margin: auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav__logo{
    color: var(--white);
}

.nav__links{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.link a{
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--white);
}

.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    left: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    transition: 0.3s;
}

.link a:hover::after{
    width: 50%;
}

img {
    width: 100%;
    display: flex;
}
  
a {
    text-decoration: none;
}

.bg__blur{
    position: absolute;
    box-shadow: 0 0 1000px 50px var(--secondary-color);
    z-index: -1;
}

/* HEADER */

.header__container{
    position: relative;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
}

.header__container::before{
    content: "MATTAAA";
    position: absolute;
    bottom: 5rem;
    right: 20rem;
    font-size: 10rem;
    font-weight: 700;
    line-height: 7rem;
    color: var(--white);
    opacity: 0.05;
    z-index: -1;
}

.header__blur{
    bottom: 5rem;
    right: 0;
}

.header__content h4{
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.header__content h1{
    margin-bottom: 1rem;
    font-size: 5rem;
    font-weight: 700;
    line-height: 6rem;
    color: var(--white);
}

.header__content h1 span{
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px var(--white);
}

.header__content p{
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 25px;
}

.header__image{
    position: relative;
}

.header__image::before{
    content: "MDB";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20rem;
    font-weight: 600;
    line-height: 20rem;
    color: var(--secondary-color);
    opacity: 0.1;
    z-index: -1;
}

/* OFFER */

.offer__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.offer__grid{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.offer__grid h2{
    color: var(--white);
}

.offer__card{
    padding: 1rem;
    background-color: var(--primary-color-light);
    border: 2px solid transparent;
    border-radius: 10px;
    transition: 0.3s;
}

.offer__card:hover{
    background-color: var(--primary-color-extra-light);
    border-color: var(--secondary-color);
}

.offer__card h4{
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.offer__card p{
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* PROJECT */

.project__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.project__grid{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.project__grid p{
    color: var(--text-light);
}

h2{
    color: var(--white);
}

.project__card{
    padding: 1rem;
    background-color: var(--primary-color-light);
    border: 2px solid transparent;
    border-radius: 10px;
    transition: 0.3s;
    width: 300px;
}

.project__card:hover{
    background-color: var(--primary-color-extra-light);
    border-color: var(--secondary-color);
}

.project__card h4{
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.project__card a{
    font-size: 20px;
    color: var(--white);
    transition: 0.3s;
}

.project__card a:hover{
    color: var(--secondary-color);
}

.project__card img{
    object-fit: cover;
    margin-top: 15px;
    margin-bottom: 15px;
    /* width: 245px;
    height: 50px; */
}

/* SWIPER */

/* .swiper-container{
    height: 500px;
    width: 450px;
    margin: 0 auto;
    z-index: -1;
} */

.swiper-wrapper{
    align-items: center;
}

.swiper-slide{
    width: 350px;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
}

.swiper-slide a{
    font-size: 40px;
    color: var(--white);
    transition: 0.3s;
}

.swiper-slide a:hover{
    color: var(--secondary-color);
}

.swiper-slide img{
    display: block;
    width: 350px;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
}

.swiper-slide-active{
    transform: scale(2.2);
    transition: .4s;
}

.swiper-pagination{
    /* margin-bottom: 50px; */
    bottom: 0 !important; 
    color: var(--secondary-color-dark);
} 

.swiper {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 50px;
    height: 700px;
}

/* .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
}

.swiper-slide img {
    display: block;
    width: 100%;
} */

/* CONTACT */

.contact__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.contact__grid{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

h2{
    color: var(--white);
}

.contact__card{
    padding: 1rem;
    background-color: var(--primary-color-light);
    border: 2px solid transparent;
    border-radius: 10px;
    transition: 0.3s;
    width: 300px; 
}

.contact__card:hover{
    background-color: var(--primary-color-extra-light);
    border-color: var(--secondary-color);
}

.contact__card h4{
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.contact__card a{
    font-size: 20px;
    color: var(--white);
    transition: 0.3s;
}

.contact__card a:hover{
    color: var(--secondary-color);
}

.contact__card img{
    object-fit: cover;
    margin-top: 15px;
    margin-bottom: 15px;
}

.contact__card p{
    margin-bottom: 1rem;
    color: var(--text-light);
}

.BIGONES{
    font-size: 60px;
}
/*footer*/

footer{
    background-color: var(--primary-color);
    height: 10vh;
}

footer p{
    text-align: center;
    line-height: 10vh;
    color: white;
}

footer p a{
    text-decoration: none;
    color: white;
    font-weight: bold;
}

/* RESPONSIVE */

@media (width < 900px){

    .header__container{
        grid-template-columns: repeat(1, 1fr);
        flex-direction: column-reverse;
    }

    .header__image{
        grid-area: 1/1/2/2;
    }

    .header__image::before{
        font-size: 20rem;
        top: 0;
    }

    .offer__grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project__grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact__grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (width < 600px){
    .nav__links{
        display: none;
    }
    
    .offer__header{
        flex-direction: column;
    }

    .offer__grid{
        grid-template-columns: repeat(1, 1fr);
    }

    .project__grid{
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .contact__grid{
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .header__image{
        grid-area: 2/2/1/1;
    }

    .header__image::before{
        font-size: 8rem;
        top: 0;
    }
    .header__container{
        flex-direction: column;
    }
}
