html {
  scroll-behavior: smooth;

}

* {
  font-family: "Work Sans", sans-serif;
}

/* start nav */
.cont {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;

}

.logo {
  width: auto;
  height: 55px;
}

.nav-l {
  list-style: none;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  width: 120%;
  gap: 10px;
}

a {
  color: #202221;
  text-decoration: none;
  font-weight: 500;
}

a.active {
  border-bottom: solid 1px #202221;
  padding-bottom: 5px;
}

@media (max-width: 768px) {
  .lines {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
  }

  .lines span {
    width: 30px;
    height: 2px;
    background-color: #2c4755;
    margin: 3px 1px;
    display: block;
  }

  .lines span:nth-child(2) {
    width: 20px;
    transition: 0.3s;
  }

  .lines:hover span:nth-child(2) {
    width: 30px;
  }

  .nav-l {
    display: none;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    background-color: #fff;
    position: absolute;
    top: 150%;
    right: 10px;
    padding: 0px 0;
    width: 150px;
    z-index: 2;
  }

  .nav-l::after {
    content: "";
    position: absolute;
    border: 15px solid;
    border-color: transparent transparent #eee transparent;
    bottom: 100%;
    right: 0px;
  }

  .lines:hover .nav-l {
    display: flex;
  }

  a {
    text-decoration: none;
    color: #2c4755;
  }

  .nav-l li {
    transition: 0.7s;
    padding: 0px 20px;
  }

  .lines .nav-l li:hover {
    padding-left: 40px;
    left: 10px;
  }

  .lines .nav-l a {
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
  }

  .lines .nav-l a:nth-child(5) {
    border-bottom: none;
  }
}

/* end nav */

/* start header */
header {
  height: calc(100vh - 65px);
  position: relative;
}

header img {
  width: 100%;
  height: 80%;
  filter: brightness(0.6);
  object-fit: cover;
}

.intro {
  width: 500px;
  max-width: 100%;
  color: #ddd;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
}

@media (max-width: 380px) {
  .intro p {
    width: 100%;
    font-size: 26px;
  }
}

h1 {
  color: #c02823;
  font-size: 40px;
  font-weight: bold;
  margin: 0;
  text-shadow: #ddd 1px 1px;
}

/* end header */

/* start cards */

.cards {
  /* background-color: #fff; */
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 70px 100px;
  text-align: center;
  gap: 20px;
  justify-content: space-between;
  border-radius: 15px;
  /* border-bottom-right-radius: 15px; */

}

@media (max-width: 719px) {
  .cards {
    flex-direction: column;
    align-items: center;
    padding: 70px 0;
  }
}

.card {
  max-width: calc((100% / 3) - 60px);
  min-width: 250px;
}

i {
  color: #c02823;
  margin-bottom: 1px;
  font-size: 40px;
}

h3 {
  /* font-size: large; */
  font-weight: bold;
  margin-bottom: 5px;
  visibility: hidden;
}

.cards p {
  color: #666;
  font-weight: bold;
  font-size: 16px;
}

/* end cards */

/* start services */
.title {
  padding: 30px 0 0px;
  text-align: center;
  position: relative;
}

.title h2 {
  font-size: 70px;
  font-weight: 800;
  color: #999;
}

.title h3 {
  position: absolute;
  font-weight: 500;
  color: #777;
  bottom: 23%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.web {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  /* gap: 20px; */
  font-weight: 400;
}

.web .img-box {
  grid-row: 1 / 3;
  grid-column: 3/4;
  transform: scale(0.6, 1);
  position: relative;
  top: -15px;
  z-index: 4;
  /* object-fit: cover; */
  margin-right: 100px;
}

@media (max-width: 1200px) {
  .web .img-box {
    display: none;
  }

  /* .web {
    grid-template-columns: 1fr 1fr;
  } */
}

@media (max-width: 670px) {
  .web {
    grid-template-columns: 1fr;
  }

  .title h2 {
    font-size: 40px;
  }

  .title h3 {
    bottom: 15%;
  }
}

@media (max-width: 505px) {
  .title h3 {
    bottom: 2%;
  }

  .title2 h3 {
    bottom: 15%;
  }

  .title3 h3 {
    bottom: 15%;
  }
}

.web .img-box::after {
  content: "";
  background-color: #c02823;
  height: 115%;
  width: 40%;
  position: absolute;
  top: -10%;
  right: -70px;
  z-index: -1;
}

.box {
  border-radius: 15px;
  color: #ddd;
}

.check {
  font-weight: bold;
  border-bottom-left-radius: 0px;
  background-color: #c02823;
  border-bottom-right-radius: 0px;
}

.top-box {
  display: flex;
  justify-content: center;
  column-gap: 10px;
}

.low-box {
  margin: 0 auto;
  width: 70%;
  text-align: center;
}

.cert {
  visibility: visible;
}

.web .search {
  grid-row: 2 / 3;
  margin: 0 auto;
  /* margin-top: -50px; */
  width: 100%;
  text-align: center;
  height: 60%;
  background-color: #c02823;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

form input {
  background-color: white;
  color: #aaa;
  border-radius: 20px;
  padding: 12px 15px;
  border-color: #aaa;
}

form button {
  background-color: #aaa;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
}

form i {
  font-size: 20px;
  color: white;
}

/* end services */

/* start portfolio */
#portfolio {
  background-color: #f6f6f6;
  margin-top: 20px;
  border-radius: 15px;
}

.title1 h2 {
  margin: 20px 0;
}

.title1 h3 {
  color: #777;
  bottom: 7%;
}

@media (max-width: 625px) {
  .title1 h3 {
    bottom: -18%;
  }
}

.cards1 {
  text-align: left;
  justify-content: space-evenly;
}

.card1 {
  background-color: transparent;
  max-width: none;
  width: calc((100% / 3) - 20px);
}

.card1 h2 {
  text-align: center;
  color: #444;
}

.card1 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.photo {
  overflow: hidden;
  height: 300px;
  border: 10px;
}

.card1 a:hover img {
  transition: 0.3s;
  transform: scale(1.1);
}

/* end portfolio */

/* start about */
.flex-cards {
  display: flex;
  gap: 30px;
  width: 100%;
}

@media (max-width: 322px) {
  .title2 h3 {
    bottom: 2%;
  }
}

@media (max-width: 953px) {
  .flex-cards {
    flex-direction: column;
    align-items: center;
  }
}

.cards2 {
  background-color: #fff;
  display: flex;
  width: 50%;
  flex-direction: column;
  text-align: left;
}

.desk-img {
  width: 35%;
  position: relative;
  display: flex;
  justify-content: center;
  position: relative;
}

.desk-img .temp-img {
  height: 320px;
  width: 213px;
  object-fit: cover;
}

.desk-img::after {
  content: "";
  z-index: -1;
  width: 25%;
  height: 60%;
  color: #c02823;
  position: absolute;
  right: -8%;
  top: -5%;
  border-left: 50px solid #c02823;
  border-bottom: 50px solid #c02823;
}

.desk-img::before {
  content: "";
  z-index: -1;
  width: 20%;
  height: 90%;
  background-color: #eee;
  position: absolute;
  left: 15%;
  top: -5%;
}

@media (max-width: 1024px) {
  .desk-img::after {
    right: -15%;
    top: -10%;
  }

  .desk-img::before {
    left: 10%;
    top: -20%;
  }
}

@media (max-width: 952px) {
  .desk-img::after {
    right: -25%;
    top: 10%;
  }

  .desk-img::before {
    left: 0%;
    top: 5%;
  }
}

.cards2 .p-b {
  color: #2c4755;
  font-weight: bold;
}

.cards2 .p-g {
  margin: 40px 0 80px 0;
  position: relative;
}

.cards .p-g::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 2px;
  background-color: #c02823;
  left: 0;
  top: -40px;
}

/* end about */

/* start contact */
@media (max-width: 386px) {
  .title3 h3 {
    bottom: 0%;
  }
}

#contact {
  background-color: #ddd;
  padding-bottom: 100px;
  border-radius: 15px;
}

.content {
  text-align: center;
}

.content p {
  font-weight: bolder;
  font-size: large;
  color: #2c4755;
}

@media (max-width: 454px) {
  .content p {
    font-size: medium;
  }
}

p a {
  text-decoration: none;
  color: #c02823;
}

span~i {
  font-size: 20px;
  color: #2c4755;
  margin: 0 5px;
}

/* @media (max-width: 328px) {
  span {
    display: block;
  }
} */

.btn {
  background-color: #c02823;
  border: none;
  border-radius: 15px;
  color: white;
  width: 120px;
  height: 50px;
  cursor: pointer;
}

.content h2 {
  color: #2c4755;
}

/* end contact */

/* start footer */

.foot {
  margin-top: 50px;
  flex-wrap: wrap;
  display: flex;
  justify-content: space-evenly;
  color: #202221;
}

.foot p {
  width: 240px;
  text-align: center;
  font-weight: bolder;
}

.links {
  display: flex;
  gap: 30px;
}

.links ul {
  list-style: none;
  font-weight: bold;
  padding-left: 0;
}

.links li {
  margin-bottom: 10px;
}

.end {
  background-color: #2c4755;
  color: #fff;
  text-align: center;
  padding: 30px;
  font-weight: 500;
  /* font-size: large; */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.end span {
  color: #c02823;
}

.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* @media (min-width: 768px) {
  .container {
    width: 750px;
  }
} */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 40%;
    height: auto;
  }
}

/* .end{
  width: 75vw;
  margin: auto;
} */