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

html,
body {
  height: 100%;
  width: 100%;
}

main {
  width: 100%;
  height: fit-content;
}

.s1 {
  height: 100vh;
  width: 80%;
  margin: auto;
}

hr {
  background: gray;
  opacity: 0.4;
}

.btnHoverEff:hover,
.our_services:hover,
.about_oliv:hover,
div .buttonContainer button:last-child:hover {
  background: black;
  color: white;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12%;
  padding: 5px;

  p {
    display: flex;
    align-items: center;
    gap: 12px;

    span {
      font-size: 15px;
      background: #edded5;
      padding: 4px 6px;
      border-radius: 30px;
      font-weight: normal;
    }
  }

  div,
  ul {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
  }

  ul {
    justify-content: space-between;
    width: 80%;
    text-transform: capitalize;
    list-style-type: none;
  }

  ul li a {
    text-decoration: none;
    color: black;
  }

  div .buttonContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .buttonContainer button {
    padding: 12px;
    border-radius: 30px;
  }

  div .buttonContainer button:first-child {
    border: none;
    background: none;
  }

  div .buttonContainer button:last-child {
    border: 1px solid black;
    font-weight: 600;
    transition: all 0.3s linear;
  }
}

.menuIcon {
  display: none;
}

.hero {
  height: calc(100% - 100px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 40px;
  padding-bottom: clamp(20px, 8vh, 80px);
  flex: 1;

  div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    h1 {
      font-family: sans-serif;
      font-size: clamp(1.2rem, 8vw, 6rem);
      font-weight: normal;
      line-height: clamp(2px, 13vh, 14vh);

      padding: 10px;
      margin: 10px 0px;
    }

    p {
      font-size: 1.4em;
      line-height: clamp(15px, 4vh, 60px);
    }
  }
}

.our_services,
.about_oliv {
  border: 1px solid;
  background: #000;
  color: rgb(255, 255, 254);
  padding: 20px 30px;
  font-size: 1em;
  transition: all 0.3s linear;
  border-radius: 30px;
  text-transform: capitalize;
}

.our_services:hover,
.about_oliv:hover {
  border: 1px solid;
  background-color: white;
  color: black;
  cursor: pointer;
}

@keyframes scrollX {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.s2 {
  width: 80%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;
  margin: auto;

  .track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 60px;
  }

  .track-wrap {
    display: flex;
    width: max-content;
    animation: scrollX 8s linear infinite;
  }

  .scrollX {
    overflow: hidden;
    width: 100%;
    padding: 20px;
    display: block;
    height: auto;

    img {
      object-fit: contain;
      height: 50px;
      display: block;
    }
  }

  .cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    height: 60%;

    .card {
      background: #f4f4f5;
      padding: 25px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      flex-direction: column;
      gap: 30px;
      height: 100%;
      width: 23%;

      h3 {
        text-transform: capitalize;
        font-weight: normal;
        font-size: clamp(2rem, 2vw, 6rem);
      }

      .dec {
        color: #52525c;
        font-size: clamp(1.2rem, 0.2vw, 6rem);
      }

      div a {
        color: #000;
        text-decoration: underline;
        text-transform: capitalize;
      }
    }
  }
}

.s3 {
  width: 80%;
  min-height: fit-content;
  padding: 12px 0;
  overflow: hidden;
  margin: auto;
}

.heading {
  font-size: clamp(20px, 5vw, 80px);
  font-family: serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  text-transform: capitalize;

  h4 {
    font-weight: normal;
  }

  button {
    background: white;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid black;
    text-transform: capitalize;
    font-weight: 300;
    transition: all 0.3s linear;
  }

  button:hover {
    background: black;
    color: white;
    cursor: pointer;
  }
}

.our_work,
.our_value,
.our_team {
  text-transform: uppercase;
  font-weight: normal;
  border-bottom: 1px solid rgb(223, 219, 219);
  font-size: 15px;
  height: 5%;
}

.imgGallary {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.imgCard {
  width: 100%;
  height: 100%;
  overflow: hidden;

  img {
    object-fit: cover;
    width: 100%;
    height: 80%;
    transition: transform 0.6s ease;
  }
}

.imgCard div:first-child {
  overflow: hidden;
}

.imgCard div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(12px, 1.8vw, 16px);
  text-transform: capitalize;
  padding: 12px;

  button {
    border: 1px solid;
    padding: 1% 2%;
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s linear;
  }

  button:hover {
    background: black;
    color: white;
    cursor: pointer;
  }
}

.imgCard div:first-child img:hover {
  transform: scale(1.1);
}

.s4 {
  width: 80%;
  margin-top: 20px;
  padding: 20px;
  min-height: fit-content;
  width: 85%;
  margin: auto;
}

.cardGallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 15px 0;

  .card {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    flex-direction: column;
    background: #f1f5f9;
    min-height: 430px;
  }

  .card-1 {
    grid-column: 1;
    grid-row: 1 / 2;
  }

  .card-2 {
    grid-column: 2;
    grid-row: 1;
  }

  .card-3 {
    grid-column: 3;
    grid-row: 1;
  }

  .card-4 {
    grid-column: 2;
    grid-row: 2;
  }

  .card-5 {
    grid-column: 3;
    grid-row: 2;
  }

  .card-6 {
    grid-column: 4;
    grid-row: 2;
  }
}

.s4 .our-goal {
  width: 60%;
  height: 50%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 15px;

  gap: 20px;
  color: rgb(52, 52, 51);

  h2 {
    font-size: 3.6vmax;
    font-weight: normal;
  }

  .goal-dec {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 5vh;

    div {
      color: rgb(101, 101, 101);
      font-size: 20px;
      width: 50%;
    }
  }
}

.s5 {
  width: 80%;
  height: 100%;
  margin: auto;
}

.teamContainer {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;

  gap: 30px;
  padding: 20px 10px;

  .joinTheTeam {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: clamp(12px, 1.8vw, 16px);
    text-transform: capitalize;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    background: rgb(240, 246, 253);

    div {
      display: flex;
      align-items: flex-start;
      justify-content: space-around;
      flex-direction: column;

      p {
        font-size: clamp(12px, 1.8vw, 16px);
        text-transform: uppercase;
        padding-top: 10px;
      }

      h4 {
        padding-top: 10px;
        font-size: clamp(1.8rem, 1.8vw, 4.5rem);
        font-weight: normal;
      }

      .dec {
        font-size: clamp(12px, 1.8vw, 16px);
        text-transform: capitalize;
        color: #404041;
      }
    }
  }

  .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;

    div:first-child {
      width: 100%;
      flex: 1;
      position: relative;
      transition: all 0.3s linear;
      cursor: pointer;

      .imgPart {
        width: clamp(250px, 50%, 1fr);
        height: 100%;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .socilaMediaIcons {
          position: absolute;
          width: 100%;
          height: 100%;
          display: flex;
          align-items: flex-end;
          justify-content: flex-end;
          bottom: -50px;
          right: 20px;
          gap: 10px;
          transition: all 0.3s linear;

          span {
            background: #000;
            color: aliceblue;
            padding: 8px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }

        &:hover .socilaMediaIcons {
          bottom: 15px;
          right: 20px;
        }
      }
    }

    .bottom {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      font-size: clamp(12px, 1.8vw, 16px);
      text-transform: capitalize;
      padding: 12px;

      button {
        border: 1px solid;
        padding: 1% 2%;
        background: transparent;
        border-radius: 50px;
        transition: all 0.3s linear;
      }

      button:hover {
        background: black;
        color: white;
        cursor: pointer;
      }
    }
  }
}

.s6 {
  width: 80%;
  padding: 20px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100vh;

  .container {
    height: 100%;
    gap: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 70%;
    padding: 23px;

    .firstCon,
    .secondCon {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      width: 100%;
      padding: 12px;

      .decPair {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
        gap: 30px;
        height: 100%;

        h2 {
          font-size: clamp(18px, 2vw, 26px);
          text-transform: capitalize;
          font-weight: normal;
        }

        p {
          font-size: clamp(15px, 1vw, 18px);
          line-height: 3vh;
          text-align: justify;
        }
      }
    }
  }

  .icon {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}

.s7 {
  width: 80%;
  height: 100vh;
  margin: auto;
  padding: 30px 20px;
  position: relative;

  .container {
    width: 100%;
    background: azure;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    span {
      font-size: clamp(15px, 1vw, 18px);
      text-transform: capitalize;

      position: absolute;
      top: 20%;
      left: 8%;
    }

    .contact {
      height: 70%;
      width: 60%;
      z-index: 1;
      display: flex;
      align-items: flex-start;
      justify-content: space-evenly;
      flex-direction: column;
      display: flex;

      h2 {
        font-size: clamp(2vh, 3vw, 5vw);
        font-weight: normal;
        padding: 10px;
      }

      p {
        font-size: clamp(20px, 3vw, 4vh);
        text-transform: capitalize;
      }
    }
  }
}

.s8 {
  width: 80%;
  margin: auto;
  padding: 40px 0;
}

.s8-top {
  margin-bottom: 30px;
}

.blogGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.blogCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blogImg {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  img:hover {
    transform: scale(1.05);
  }
}

.blogInfo {
  display: flex;
  flex-direction: column;
  gap: 10px;

  h3 {
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: normal;
    line-height: 1.5;
    color: #111;
    cursor: pointer;
    transition: color 0.2s;
  }

  a {
    font-size: clamp(12px, 0.9vw, 14px);
    color: #111;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s;
  }
}

footer {
  width: 80%;
  margin: auto;
  min-height: 60vh;
  display: flex;
  flex-direction: column;

  justify-content: flex-end;

  .footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;

    .col {
      h5 {
        border-bottom: 1px solid gray;
        width: 100%;
        padding: 20px;
        font-size: clamp(18px, 2vw, 26px);
        text-transform: capitalize;
        font-weight: normal;
      }

      ul {
        list-style-type: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: clamp(12px, 2vw, 16px);
        padding: 20px;

        li {
          list-style: none;
          color: #242323;
          font-size: clamp(15px, 2vw, 18px);
          text-transform: capitalize;

          a {
            text-decoration: none;
            color: #242323;
            position: relative;
          }

          a::before {
            content: "";
            position: absolute;
            transition: all 0.2s linear;
            bottom: 0%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 0%;
            height: 1px;
            background: #242323;
          }

          a:hover::before {
            width: 100%;
          }
        }
      }
    }
  }

  .col1 {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(3vh, 4vw, 5vh);
    padding: 20px;

    .logo- Oliv {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    span {
      color: #0c0b0b;
      font-size: clamp(12px, 2vw, 15px);
      text-transform: capitalize;
      text-align: center;
    }

    .ri-instagram-line {
      font-size: clamp(15px, 2vw, 18px);
      background: #000;
      color: wheat;
      padding: 5px;
      border-radius: 50%;
    }
  }

  .footer-bottom {
    height: 12vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  main {
    overflow-x: hidden;
  }

  nav {
    .menuIcon {
      display: block;
    }
    div {
      display: none;
    }
    p span {
      display: none;
    }
  }

  .s1 {
    width: 92%;
  }

  .hero {
    h1 {
      font-size: clamp(1.8rem, 6vw, 3rem);
      line-height: 1.2;
    }
    p {
      font-size: 1rem;
    }
  }

  .s2 {
    width: 92%;
    .cards {
      flex-wrap: wrap;
      gap: 12px;
      .card {
        width: calc(50% - 6px);
      }
    }
  }

  .s3 {
    width: 92%;
  }
  .imgGallary {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .s4 {
    width: 92%;
    padding: 20px 0;
  }
  .cardGallery {
    grid-template-columns: 1fr 1fr;
    .card-1 {
      grid-column: 1;
      grid-row: 1;
    }
    .card-2 {
      grid-column: 2;
      grid-row: 1;
    }
    .card-3 {
      grid-column: 1;
      grid-row: 2;
    }
    .card-4 {
      grid-column: 2;
      grid-row: 2;
    }
    .card-5 {
      grid-column: 1;
      grid-row: 3;
    }
    .card-6 {
      grid-column: 2;
      grid-row: 3;
    }
  }
  .s4 .our-goal {
    width: 100%;
    .goal-dec {
      flex-direction: column;
      gap: 16px;
      div {
        width: 100%;
      }
    }
  }

  .s5 {
    width: 92%;
  }
  .teamContainer {
    flex-direction: column;
    height: auto;
    gap: 20px;
  }
  .teamContainer .card {
    width: 100%;
    min-height: 380px;
  }

  
  .s6 {
    width: 92%;
    height: auto;
    padding: 40px 0;
    .container {
      width: 100%;
      flex-direction: column;
      .firstCon,
      .secondCon {
        flex-direction: column;
        gap: 16px;
      }
    }
  }


  .s7 {
    width: 92%;
    height: auto;
    .container {
      position: relative;
      top: 0;
      left: 0;
      transform: none;
      height: auto;
      padding: 60px 20px;
      .contact {  
        width: 100%;
        text-align: center;
        align-items: center;
      }
    }
  }

  
  .s8 {
    width: 92%;
  }
  .blogGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

 
  footer {
    width: 92%;
    .footer-top {
      grid-template-columns: 1fr 1fr;
    }
  }
}

@media (max-width: 480px) {
  .s1,
  .s2,
  .s3,
  .s4,
  .s5,
  .s6,
  .s7,
  .s8 {
    width: 95%;
    padding: 0 4vw;
  }

  
  .hero {
    padding-bottom: 10vh;
    h1 {
      font-size: 8vw;
      line-height: 1.25;
    }
    p {
      font-size: 0.95rem;
      line-height: 1.6;
    }
  }

 
  .s2 .cards .card {
    width: 100%;
  }
 
  .cardGallery {
    grid-template-columns: 1fr;
    .card-1,
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
      grid-column: 1;
      grid-row: auto;
    }
  }

 
  .blogGrid {
    grid-template-columns: 1fr;
  }
  footer .footer-top {
    grid-template-columns: 1fr;
  }
  footer .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  main {
    overflow-x: hidden;
  }

  section {
    min-width: 100%;
  }

  nav {
    height: 8%;
    .menuIcon {
      display: block;
    }
    p span {
      display: none;
    }
    div {
      display: none;
    }
  }

  .hero {
    height: calc(100% - 8%);
    width: 100%;
    padding-bottom: 15vh;
    h1 {
      font-size: 10vw;
      font-weight: bolder;
      line-height: 6vh;
      margin-bottom: 12px;
    }
    p {
      font-size: 1em;
      line-height: 2.5vh;
    }
  }

  .s2,
  .s3 {
    min-height: 100svh;
    height: auto;
  }

  .s2 {
    width: 100%;
    margin: auto;
    .scrollX {
      padding: 5px;
      img {
        height: 30px;
      }
    }
    .cards {
      gap: 3px;
      padding: 2vw;
      margin-top: 4vh;
      .card {
        width: 100%;
        flex-grow: 1;
      }
    }
  }

  .s3 {
    width: 80%;
    min-height: 100%;
    padding: 2vw;
    .heading {
      padding: 5% 2%;
      button {
        padding: 4px 8px;
      }
    }
  }

  .imgGallary {
    width: 90%;
    margin: auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 20px;
  }

  .imgCard {
    padding: 4px;
  }

  .s4 {
    width: 80%;
    margin-top: 20px;
    padding: 20px;
  }

  .cardGallery {
    grid-template-columns: 1fr 1fr;
    .card-1 {
      grid-column: 1;
      grid-row: 1;
    }
    .card-2 {
      grid-column: 2;
      grid-row: 1;
    }
    .card-3 {
      grid-column: 1;
      grid-row: 2;
    }
    .card-4 {
      grid-column: 2;
      grid-row: 2;
    }
    .card-5 {
      grid-column: 1;
      grid-row: 3;
    }
    .card-6 {
      grid-column: 2;
      grid-row: 3;
    }
  }

  .s4 .our-goal {
    width: 100%;
    height: 45%;
    margin: auto;
    .goal-dec {
      flex-wrap: wrap;
      gap: 12px;
      line-height: 30px;
      padding: 5px;
      div {
        width: 100%;
        text-align: justify;
      }
    }
  }

  .s5,
  .s6,
  .s7,
  .s8 {
    width: 100%;
    height: auto;
    padding: 10px;
  }

  .teamContainer {
    flex-direction: column;
    height: auto;
    gap: 20px;
  }
  .teamContainer .card {
    width: 100%;
    min-height: 400px;
  }

  .s6 .container {
    width: 100%;
    padding: 10px;
  }
  .s6 .container .firstCon,
  .s6 .container .secondCon {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .s7 .container {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    padding: 40px 10px;
  }
  .s7 .container .contact {
    width: 90%;
    align-items: center;
    text-align: center;
  }

  .s8 {
    width: 95%;
    padding: 20px 0;
  }
  .blogGrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  footer {
    width: 95%;
    .footer-top {
      grid-template-columns: 1fr;
    }
    .footer-bottom {
      flex-direction: column;
      gap: 8px;
      text-align: center;
    }
  }
}
