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

:root {
    --primary-color: #f60f20;
    --secondary-color: #1b206e
}

body {
    font-family: "poppins", sans-serif;
    color: #111;

}
h1 {
    font-size: 30px;
    font-weight: 500;
  }
  
  p {
    margin: 20px 0 10px;
    font-size: 1.1rem;
  }
 
section {
   display: flex;
  flex-direction: column;
  height: 100vh;
  align-items: center;
  padding: 100px;
  margin-top: 60px;
}

section.home {
    flex-direction: row;
    margin-top: 0;
  }
  section.home p {
    max-width: 800px;
  }


  .returnToggle {
position: absolute;
bottom: 40px;
right: 0;
z-index: 10;
 
  cursor: pointer;

}

.returnToggle p {
    background-color: rgba(239, 245, 245, .8);
    border-radius: 10px 0 0 10px;
    box-shadow: 5px 8px 15px rgba(0, 0, 0, .45);
    padding: 32px 8px;
    text-align: center;
    color: rgb(108, 166, 171);
    font-weight: 400;
    font-size: 16px;

}

.returnToggle a{
    text-decoration: none;
}

.returnToggle :hover {
    background-color: rgb(239, 245, 245);
}




  /* BUTTON */
  .btn {
    cursor: pointer;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 10px 30px;
    margin: 20px 0 ;
    border: 0;
  }
  .btn:hover {
    transform: scale(.98);
 
  }
  /* LOGO */
.logo {
    position: absolute;
    left: 100px;
    top: 30px;
    font-size: 2rem;
    font-weight: 700;
    z-index: 10;
}

/* TOGGLE */
.toggle {
    position: fixed ;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color) url(../images/menu.png);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 20;
    cursor: pointer;
}

.toggle.active {
    background: var(--primary-color) url(../images/close.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
}

/* NAVIGATION */
.navigation {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;

}
.navigation.active {
    left: 0;
}

.navigation ul {
    position: relative;
}

.navigation ul li {
    position: relative;
    list-style: none;
    text-align: center; 
}
.navigation ul li a {
    font-size: 2.2rem;
    color: #111;
    text-decoration: none;
    font-weight: 300;
}
.navigation ul li a:hover {
    color: var(--primary-color);
}
.navigation .social-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navigation .email-icon {
    position: absolute;
    bottom: 0;
    transform: scale(0.5);

}
.navigation .social-bar a {
    display: inline-block;
    transform: scale(0.5);
}
/* HOME PAGE */
.home-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 110%;
    z-index: -1;
}
.home p {
    background: rgba(255, 255, 255, 0.5);
}

/* SERVICES PAGE */
.services {
    margin-top:40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.services .service {
    padding: 20px;
}

.services .service h2 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 20px;
    color: #1b206e;
}

.services .service .icon img {
    max-width: 100px;
}
.services .service:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* WORK PAGE */
.portfolio {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;

}
.portfolio .item {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 5px;
}
.portfolio .item img {
    width: 100%;
    height: 100%;
}

.portfolio .item .action {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .5s;

}

.portfolio .item .action:hover {
    opacity: 1;
}

.portfolio .item .action a {
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 15px;
    text-decoration: none;
    
}

/* Contact page */
.contact {
    position: relative;
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}



.contact-form {
    position: relative;
    background-color: #f9f9f9;
    width: calc(100% - 400px);
    padding: 40px;
}
.contact-form .input50 {
    width: 50%;
    margin: 0 10px;
}
.contact-form .input100 {
    width: 100%;
    margin: 0 10px;
}

.contact-form .row {
    display: flex;
}

.contact-form form {
    width: 100%;
}
.contact-form .row input,
.contact-form .row textarea
{
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    color: #111;
    width: 100%;
    padding: 10px;
    outline: none;
    font-size: 1rem;
    margin-bottom: 10px;
    resize: none;
}
.contact-form .row textarea {
    height: 150px;
}
.contact-form .row input[type="submit"] {
background: var(--secondary-color);
color: #fff;
margin: 0;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 300;
border: 0;
cursor: pointer;
}
.contact-form .row label {
    display: inline-block;
    color: #5f5f5f;
    font-size: .8rem;
    margin-bottom: 4px;
}

.contact-info {
    width: 350px;
    background: #f9f9f9;
    padding: 40px;
}
.contact-info .info-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}
.contact-info .info-box .contact-icon {
width: 20px;
margin-right: 40px;
}
.contact-info .info-box .details h4 {
    color: var(--secondary-color);
}

.contact-info .info-box .details a,
.contact-info .info-box .details p {
    color: #111;
    text-decoration: none;
}

@media(max-width: 1068px) {
    .home-img {
        display: none;    
    }
    .logo {
        top: 10px;
        left: 40px;
        font-size: 1.5rem;
    }
    section {
        padding: 100px 40px;
    }
    .navigation ul li a {
        font-size: 2rem;
    }
    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact {
        flex-direction: column;
    }
    .contact-form {
        width: 100%;
        padding: 30px;
    }
    .contact-info {
        width: 100%;
        padding: 30px;
        margin-top: 20px;
    }
}
@media(max-width: 768px) {
    .services {
        grid-template-columns: repeat(1, 1fr);
    }

    .services .service {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .contact-form .row {
        flex-direction: column;
    }
    .contact-form .row .input50,
    .contact-form .row .input100 {
        width: 100%;
        margin: 0;
    }



}