@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root
{
    --bg-color: #ffffff;
    --second-bg-color: #f2f2f2;
    --text-color: #000000;
    --maion-color: #ff0000;
}

html
{
    font-size: 62.5%;
    overflow-x: hidden;
}

body
{
    background: var(--bg-color);
    color: var(--text-color);
}

span
{
    color: var(--maion-color);
}

.home
{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-container
{
    display: flex;
    justify-content: center;
}

.home-img img
{
    width: 25vw;
    border-radius: 2rem;
    animation: floatImage 4s ease-in-out infinite;
}

.home-content h3:nth-of-type(2)
{
    margin-bottom: 2rem;
}

.home-h3{
    margin-top: 4rem;
    font-size: 3rem;
    width: 700;
}

.home-second {
    color: #2f244e;
    font-size: 3rem;
    width: 700;
    margin-bottom: 4rem;
}

.home-content p
{
    font-size: 1.6rem;
    margin-bottom: 2rem;
    margin-right: 7rem;
}

.social-media a
{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--maion-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--maion-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover
{
    background-color: var(--maion-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--maion-color);
}

.button
{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--maion-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--maion-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.button:hover
{
    box-shadow: none;
    cursor: pointer;
}

.blurred
{
    filter: blur(2px);
}

section
{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky
{
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo
{
    width: 10dvw;
}

.navbar a
{
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active
{
    color: var(--maion-color);
}

#menu-icon
{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.close
{
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.close i
{
    font-size: 2rem;
}

.model 
{
    width: 40dvw;
    display: none;
    position: fixed;
    /* justify-content: center;
    align-items: center; */
    top: 5%;
    left: 30%;
    transform: translate(-50, -50);
    padding: 1.6rem;
    background-color: var(--second-bg-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 2rem;
}

.prebanner
{
    width: 100dvw;
    height: 100px;
    padding: 0;
    background-color: var(--second-bg-color);
}

.banner-container
{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--second-bg-color);
}

.banner-container .banner-box
{
    position: relative;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.banner-box img
{
    width: 100%;
    transition: .5s ease;
}

.banner-box:hover img
{
    transform: scale(1.1);
}

.banner-box .banner-layer
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--maion-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateX(-100%);
    transition: .5s ease;
}

.banner-box:hover .banner-layer
{
    transform: translateY(0);
}

.banner-layer h4
{
    font-size: 3rem;
    color: #ffffff;
}

.banner-layer p
{
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color: #ffffff;
}

.banner-layer a
{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: var(--text-color);
    border-radius: 50%;
}

.banner-layer a i
{
    font-size: 2rem;
    color: var(--second-bg-color);
}

.process
{
    width: 100%;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #2f244e;
    color: var(--bg-color);
}

.process-container 
{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.process h2
{
    font-size: 1.6rem;
    margin-bottom: 3rem;
}

.process h3
{
    font-size: 3rem;
    color: #ffcd22;
}

.heading
{
    margin-bottom: 8rem;
}

.element-container
{
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 10rem;
    column-gap: 4rem;
}
.element img
{
    width: 20rem;
    margin-bottom: 3rem;
}

.arrow
{
    position: absolute;
    margin-top: 9rem;
}

.arrow-down
{
    margin-top: 4rem;
    padding-left: 17rem;
}

.element p
{
    font-size: 1.4rem;
}

.provide-container
{
    width: 100dvw;
    display: flex;
    justify-content: space-between;
}

.provide-text
{
    width: 50%;
}

.provide-text h2
{
    font-size: 3rem;
    color: #2f244e;
    margin-bottom: 3rem;
}

.p-container
{
    display: flex;
    column-gap: 1rem;
}

.p-container .icon i
{
    font-size: 3rem;
    color: #2f244e;
}

.provide-text p
{
    font-size: 2rem;
    color: #2f244e;
}

.provide-image
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.provide-image img
{
    width: 35dvw;
}

.projects
{
    display: flex;
    flex-direction: column;
    row-gap: 5rem;
}

.projects h2
{
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.project-container
{
    display: flex;
    justify-content: space-between;
    padding: 0 10rem;
}

.project-container img
{
    width: 30dvw;
    border-top-right-radius: 20rem;
    border: 2px solid var(--text-color);
}

.reverse img
{
    width: 30dvw;
    border-top-right-radius: 0rem;
    border-top-left-radius: 20rem;
}

.project-text
{
    width: 50dvw;
}

.project-text h3
{
    font-size: 2rem;
}

.project-text h1
{
    font-size: 3rem;
    margin-top: 4rem;
    color: #2f244e;
}

.reverse h1
{
    text-align: end;
    margin-right: 4rem;
}

.project-text p
{
    font-size: 2rem;
    margin-top: 3rem;
}

.portfolio
{
    background: var(--second-bg-color);
}

.portfolio h2
{
    margin-bottom: 4rem;
    text-align: center;
    font-size: 3rem;
}

.portfolio-container
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box
{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.portfolio-box img
{
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img
{
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--maion-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer
{
    transform: translateY(0);
}

.portfolio-layer h4
{
    font-size: 3rem;
    color: #ffffff;
}

.portfolio-layer p
{
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color: #ffffff;
}

.portfolio-layer a
{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer a i
{
    font-size: 2rem;
    color: var(--second-bg-color);
}

.contact
{
    background-color: var(--second-bg-color);
    display: flex;
    flex-direction: column;
}

.navcontact
{
    height: 90dvh;
    display: none;
}

.navcontact form
{
    height: 65%;
}

.contact h2
{
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.contact form,
form
{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
    background-color: var(--second-bg-color);
}

.contact form .input-box,
form .input-box
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-box .input-field
{
    width: 48.5%;
}

.contact form .input-box .field input,
.contact form textarea
{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    /* border: 1px solid var(--maion-color); */
    border-radius: 1.6rem;
    box-shadow: inset 1rem 1rem 1rem #cbc3d1, inset -1rem -1rem 1rem #ffffff;
    margin: .7rem 0;
}

.contact form .input-box .error input,
.contact form .item.error
{
    background-color: #f0d6d6;
}

.contact form .input-box .field input
{
    width: 100%;
}

.contact form textarea
{
    resize: none;
}

.error-text
{
    font-size: 1.4rem;
    color: #d93025;
    text-align: left;
    margin: -1rem 0 1rem;
    display: none;
}

.field.error .error-text
{
    display: block;
}

.contact form .button
{
    margin-top: 2rem;
    cursor: pointer;
}

/* BREAKPOINTS */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .model {
        width: 93dvw;
        top: 0;
        left: 0;
    }
    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }

    .newsletter-layer {
        margin: 0 6rem;
    }

    .newsletter-layer h2 {
        font-size: 2.6rem;
    }

    .text-layer {
        width: 30%;
    }

    .input-layer {
        width: 70%;
    }

    .newsletter-layer a {
        padding: 1.3rem 4rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .logo {
        width: 20dvw;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }


    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .navcontact
    {
        height: 50dvh;
    }

    .home {
        flex-direction: column;
    }
    .home-container {
        flex-direction: column-reverse;
    }

    .process h3 {
        font-size: 2.4rem;
    }

    .element img {
        width: 10rem;
    }

    .element .arrow {
        width: 6rem;
        height: 2rem;
    }

    .element .arrow-down {
        width: 19rem;
        height: 6rem;
    }

    .provide-text{
        width: 100%;
    }

    .provide-text h2 {
        text-align: center;
    }
    
    .project-container {
        flex-direction: column;
        padding: 0 2rem;
    }

    .project-container img
    {
        width: 90dvw;
    }
    .project-text
    {
        width: 90dvw;
    }

    .reverse {
        flex-direction: column-reverse;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .project-text h1,
    .project-text p {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .provide-container {
        flex-direction: column;
    }

    .provide-image img {
        width: 90%;
    }

    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-layer {
        margin: 0 6rem;
    }

    .newsletter-layer h2 {
        font-size: 2.6rem;
    }

    .text-layer {
        width: 30%;
    }

    .input-layer {
        width: 70%;
    }

    .newsletter-layer a {
        padding: 1.3rem 2rem;
    }

    .details {
        width: 50%;
    }
}

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .arrow {
        margin-top: 4rem;
    }
}

@media (max-width: 580px) {
    html {
        font-size: 50%;
    }

    .newsletter-layer {
        flex-direction: column;
        padding: 4rem 2rem;
    }

    .text-layer {
        width: 100%;
    }

    .input-layer {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }

    
    .footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-iconTop {
        margin-bottom: 2rem;
    }
}