/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html{
  scroll-behavior: smooth;
}
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
  }

  /*=============== HEADER ===============*/
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--black-color);
    z-index: 1000;
    cursor: pointer;
  }
  
  /*=============== NAV ===============*/
  .nav {
    height: var(--header-height);
  }
  
  .nav__logo,
  .nav__burger,
  .nav__close {
    color: var(--white-color);
  }
  
  .nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-weight: var(--font-semi-bold);
  
  }
  
  .nav__logo-img {
    max-height:190px;
    height: auto;
    width: auto;
  }
  
  /* Adjust responsiveness */
  @media screen and (max-width: 1118px) {
    .nav__logo-img {
      max-height: 110px;
    }
  
    .nav__logo {
      margin-top: 0;
    }
  }
  
  /* Adjust responsiveness for small screens */
  @media screen and (max-width: 768px) {
    .nav__logo-img {
      max-height: 70px;
    }
  
    .nav__logo {
      margin-top: 0;
    }
  }
  
  .nav__toggle {
    position: relative;
    width: 32px;
    height: 32px;
  }
  
  .nav__burger,
  .nav__close {
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
  }
  
  .nav__close {
    opacity: 0;
  }
  
  /* Navigation for mobile devices */
  @media screen and (max-width: 1118px) {
    .nav__menu {
      position: absolute;
      left: 0;
      top: 2.5rem;
      width: 100%;
      height: calc(100vh - 3.5rem);
      overflow: auto;
      pointer-events: none;
      opacity: 0;
      transition: top .4s, opacity .3s;
    }
  
    .nav__menu::-webkit-scrollbar {
      width: 0;
    }
  
    .nav__list {
      background-color: var(--black-color-light);
      padding-top: 1rem;
    }
  }
  
  .nav__link {
    color: var(--white-color);
    background-color: var(--black-color);
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
  }
  
  .nav__link:hover {
    background-color: var(--black-color-light);
  }
  
  .show-menu {
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
  }
  
  /* Show icon */
  .show-icon .nav__burger {
    opacity: 0;
    transform: rotate(90deg);
  }
  
  .show-icon .nav__close {
    opacity: 1;
    transform: rotate(90deg);
  }
  
  /*=============== BREAKPOINTS ===============*/
  /* For small devices */
  @media screen and (max-width: 340px) {
    .container {
      margin-inline: 1rem;
    }
  
    .nav__link {
      padding-inline: 1rem;
    }
  }
  
  /* For large devices */
  @media screen and (min-width: 1118px) {
    .container {
      margin-inline: auto;
    }
  
    .nav {
      height: calc(var(--header-height) + 2rem);
      display: flex;
      justify-content: space-between;
    }
  
    .nav__toggle {
      display: none;
    }
  
    .nav__list {
      height: 100%;
      display: flex;
      column-gap: 3rem;
    }
  
    .nav__link {
      height: 100%;
      padding: 0;
      justify-content: initial;
      column-gap: .25rem;
    }
  
    .nav__link:hover {
      background-color: transparent;
    }
  }
  

  /*================================== Main page =============================*/

.containers {
  position: relative;
 
}
.slide-1 {
  background: url('../assets/images/mass.jpg');
}
.slide-2 {
  background: url('../assets/images/architects.jpg');
}
.slide-3 {
  background: url('../assets/images/MInfra-img.jpg');
}
.slide-4 {
  background: url('../assets/images/gym.png');
}
.slide-5 {
  background: url('../assets/images/graphic.jpg');
}
.slide-6 {
  background: url('../assets/images/vegetables.jpg');
}
.slide-7 {
  background: url('../assets/images/Mtrade.jpg');
}
.slide-8 {
  background: url('../assets/images/ngo.jpg');
}

.slide {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1; 
}
.contents {
    position: relative;
    z-index: 2;
    margin-left: 17%;
    color: white;
    max-width: 600px;
    padding-top: 10%;
    transform: translateY(50px); 
    filter: blur(20px); 
    opacity: 0; 
    animation: showContent .5s 1s linear 1 forwards; 
}

/* Section logo */
.section-logo {
    display: block;
    width: 130px;
    margin-bottom: 20px;
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContentLogo .5s 1s linear 1 forwards; /* Animating logo */
}

/* Title */
.title {
    font-size: 42px;
    margin-bottom: 10px;
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContentTitle .5s 1.2s linear 1 forwards; /* Animation with delay */
}

/* Description */
.des {
    font-size: 18px;
    line-height: 1.5em;
    margin-bottom: 20px;
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContentDescription .5s 1.4s linear 1 forwards; /* Animation with delay */
}

/* Button */
.buttons {
    background: var(--white-color);
    color: black;
    font-weight: bold;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContentButton .5s 1.6s linear 1 forwards; /* Animation with delay */
}


@keyframes showContent {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}


@keyframes showContentLogo {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}


@keyframes showContentTitle {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}


@keyframes showContentDescription {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}


@keyframes showContentButton {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}


.arrow {
    position: absolute;
    bottom: 20%; 
    right: 20px; 
    cursor: pointer;
    z-index: 100;
    background: rgba(255, 253, 253, 0.1);
    transition: background 500ms; 
}

.arrow img {
    width: 50px;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.4); 
}

.l {
    right: 280px; 
}

.r {
    right: 220px; 
}

@media (max-width: 468px) {
    .arrow {
        bottom: 15%; 
        right: 10px; 
    }

    .arrow img {
        width: 35px;
    }

    .l {
        right: 60px; 
    }

    .r {
        right: 20px; 
    }
    .section-logo {
      width: 80px; /* Reduced width for smaller devices */
      margin-top: 20px;
      
  }

  /* Adjust font sizes for title and description if needed */
  .title {
      font-size: 28px; /* Smaller title size */
  }

  .des {
      font-size: 16px; /* Smaller description size */
  }

  .buttons {
      padding: 10px 20px; /* Smaller button padding */
  }
}




/* ===============================About Us ============================= */
    .about-us-section {
      height: 100vh; 
      background: linear-gradient(90deg, var(--black-color) 0%, var(--black-color) 30%, rgb(224, 224, 224) 30%, rgb(224, 224, 224) 100%);
      display: flex;
      justify-content: center;
      align-items: center;
      color: #000; /* Text color */
  }
  
  .about-us-container {
      max-width: 1200px;
      text-align: center;
      padding: 40px;
      background-color: var(--white-color);
      border-radius: 10px; 
      height: 60%; 
      display: flex; 
      flex-direction: column; 
      justify-content: center;
     
     
  }
  
  .about-heading {
      font-size: 36px;
      font-weight: bold; 
      margin-bottom: 20px; 
      text-transform: uppercase;
  }
  
  .about-info {
    color: var(--black-color);
      font-size: 1.2em; 
      margin-bottom: 20px; 
  }
  
  .vision-mission {
      display: flex;
      justify-content: space-between;
      margin-top: 30px;
  }
  
  .vision, .mission {
      width: 48%; 
      background-color: hsla(0, 2%, 88%, 0.897); 
      padding: 20px;
      border-radius: 8px;
      height: 300px; 
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center; 
      
  }

  .about-heading {
      font-size: 2.2em; 
      margin-bottom: 10px; 
      text-transform: uppercase;
      font-weight: bold;
      color: var(--black-color);
  }
  
  .about-info {
      font-size: 1em; 
      font-weight: 501;
  }


  @media (max-width: 768px) {
    .about-us-container{
          width: 85%; 
          padding: 20px; 
          height: auto;
      }
  
      .vision-mission {
          flex-direction: column; 
          align-items: center; 
          margin-top: 20px; 
      }
  
      .vision, .mission {
          width: 75%; 
          height: auto;
          padding: 15px; 
          margin-bottom: 15px; 
      }
      .about-info{
          font-size: 0.9em; 
      }
  }
  
  @media (max-width: 480px) {
      .about-us-container {
          width: 95%; 
          padding: 10px; 
          height: auto; 
      }
  
      .vision-mission {
          flex-direction: column; 
          align-items: center; 
          margin-top: 10px; 
      }
  
      .vision, .mission {
          width: 90%;
          height: auto; 
          padding: 10px;
      }
  
      .about-heading {
          font-size: 1.5em; 
      }
  
      .about-info {
          font-size: 0.9em;
      }
  }
/* Style for animation */
.about_head{
  opacity: 0;
}
.about_head.animate__animated{
  opacity:1;
}

.about_info_ani{
  opacity: 0;
}
.about_info_ani.animate__animated{
  opacity:1;
}
.vision_left{
  opacity: 0;
}
.vision_left.animate__animated{
  opacity:1;
}

.mission_right{
  opacity: 0;
}
.mission_right.animate__animated{
  opacity:1;
}

/* ==============================Services Section======================= */
.services {
  width: 100%;
  display: grid;
  place-items: center;
  background-color: var(--black-color);
  overflow: hidden;
  padding: 6em 2em; 
  box-sizing: border-box; 
}

.services-heading {
  text-transform: uppercase;
  font-size: 36px;
  margin-top: 2em;
  margin-bottom: 4em; 
  color: var(--white-color);
}

.services-row {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  width: 100%; 
}

.service-column {
  flex: 1 1 calc(100% - 2em);
  max-width: calc(100% - 2em); 
  padding: 0 1em 1em; 
  text-align: center;
}

.card {
  width: 100%; 
  height: 100%;
  padding: 2em 1.5em;
  background: linear-gradient(#ffffff 50%, var(--black-color) 50%);
  background-size: 100% 200%;
  border-radius: 5px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: 0.5s;
}

.service-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--black-color);
  margin: 1em 0;
}

.service-info {
  color: #101011;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.icon-wrapper {
  background-color: var(--black-color);
  position: relative;
  margin: auto;
  font-size: 25px;
  height: 2.5em;
  width: 2.5em;
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.5s;
}

.card:hover {
  background-position: 0 100%;
}

.card:hover .icon-wrapper {
  background-color: #ffffff;
  color: var(--black-color);
}

.card:hover h3 {
  color: #ffffff;
}

.card:hover p {
  color: #f0f0f0;
}
/* Style for animation */
.service_head_title{
  opacity: 0;
}
.service_head_title.animate__animated{
  opacity:1;
}

.service_box_ani{
  opacity: 0;
}
.service_box_ani.animate__animated{
  opacity:1;
}
@media screen and (min-width: 768px) {
  .service-column {
    flex: 1 1 calc(50% - 2em); 
    max-width: calc(50% - 2em);
  }
}

@media screen and (min-width: 992px) {
  .service-column {
    flex: 1 1 calc(25% - 2em); 
    max-width: calc(25% - 2em);
  }
}

/* ==============================Projects Section======================= */
.projects {
  width: 100%;
  display: grid;
  background-color: var(--white-color);
}

.projects-heading {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin: 90px 0; /* Increased top margin for the heading */
  color: var(--black-color);
}

.projects-card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  justify-items: center; 
  margin: 30px auto; /* Reduced margin to decrease the gap */
  max-width: 1200px; 
  padding: 0 10px;
}

.projects-card {
  background-color: #fff; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 300px;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  text-align: center;
}


.projects-card img {
  width: 100%;
  height: 200px; 
  object-fit: cover; 
}

.projects-card-content {
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
}

.projects-card-content h3 {
  font-size: 22px; 
  margin-bottom: 8px;
}

.projects-card-content p {
  color: #666;
  font-size: 12px; /* Reduced font size for text */
  line-height: 1.3;
}

.projects-card-content .projects-btn {
  display: inline-block;
  padding: 8px 12px; /* Reduced button size */
  background-color: var(--black-color);
  text-decoration: none;
  font-size: 14px;
  border-radius: 2px;
  margin-top: 12px; /* Adjusted margin */
  color: #fff;
}
.project_heading_ani{
  opacity: 0;
}
.project_heading_ani.animate__animated{
  opacity:1;
}
.project_card_ani{
  opacity: 0;
}
.project_card_ani.animate__animated{
  opacity:1;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .projects-card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .projects-card-container {
    grid-template-columns: 1fr; 
    padding: 0 10px; 
  }
}

/* ==============================contact Section======================= */

.contact-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--black-color);
  position: relative;
    overflow: hidden;
}

.contact-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgb(224, 224, 224);
  z-index: 0;
}

.contact-container { 
  position: relative;
  min-width: 1100px;
  min-height: 550px;
  display: flex;
  z-index: 1000;
}

.contact-container .contactInfo {
  position: absolute;
  top: 40px;
  width: 350px;
  height: calc(100% - 80px);
  background: var(--black-color);
  z-index: 1;
  padding: 40px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.contact-container .contactInfo h2 {
  color: var(--white-color);
  font-size: 24px;
  font-weight: 500;
}

.contact-container .contactInfo ul.contact-info {
  position: relative;
  margin: 20px 0;
}

.contact-container .contactInfo ul.contact-info li {
  position: relative;
  list-style: none;
  display: flex;
  margin: 20px 0;
  cursor: pointer;
  align-items: flex-start;
}

.contact-container .contactInfo ul.contact-info li span:nth-child(1) {
  width: 30px;
  min-width: 30px;
}

.contact-container .contactInfo ul.contact-info li span:nth-child(1) img {
  max-width: 100%;
  filter: invert(1);
}

.contact-container .contactInfo ul.contact-info li span:nth-child(2) {
  color: var(--white-color);
  margin-left: 10px;
  font-weight: 300;
}

.contact-container .contactInfo ul.sci {
  position: relative;
  display: flex;
}

.contact-container .contactInfo ul.sci li {
  list-style: none;
  margin-right: 15px;
}

.contact-container .contactInfo ul.sci li a {
  text-decoration: none;
}

.contact-container .contactInfo ul.sci li a img {
  filter: invert(1);
}

.contact-container .contactForm {
  position: absolute;
  padding: 70px 50px;
  padding-left: 250px;
  margin-left: 150px;
  width: calc(100% - 150px);
  height: 100%;
  background: var(--white-color);
  box-shadow: 0 50px 50px rgba(0, 0, 0, 0.25);
}

.contact-container .contactForm h2 {
  color: var(--black-color);
  font-size: 24px;
  font-weight: 500;
}

.contact-container .contactForm .formBox {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 30px;
}

.contact-container .contactForm .formBox .inputBox {
  position: relative;
  margin-bottom: 35px;
}

.contact-container .contactForm .formBox .inputBox.w50 {
  width: 47%;
}

.contact-container .contactForm .formBox .inputBox.w100 {
  width: 100%;
}

.contact-container .contactForm .formBox .inputBox input,
.contact-container .contactForm .formBox .inputBox textarea {
  width: 100%;
  resize: none;
  padding: 5px 0;
  font-size: 18px;
  font-weight: 300;
  color: #333;
  border: none;
  outline: none;
  border-bottom: 1px solid #777;
}

.contact-container .contactForm .formBox .inputBox textarea {
  height: 120px;
}

.contact-container .contactForm .formBox .inputBox span {
  position: absolute;
  left: 0;
  padding: 5px 0;
  pointer-events: none;
  font-size: 18px;
  font-weight: 300;
  transition: 0.3s;
}

.contact-container .contactForm .formBox .inputBox input:focus ~ span,
.contact-container .contactForm .formBox .inputBox input:valid ~ span,
.contact-container .contactForm .formBox .inputBox textarea:focus ~ span,
.contact-container .contactForm .formBox .inputBox textarea:valid ~ span {
  transform: translateY(-20px);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--black-color);
  font-weight: 500;
}

.contact-container .contactForm .formBox .inputBox [type="submit"] {
  position: relative;
  cursor: pointer;
  background: var(--black-color);
  color: var(--white-color);
  border: none;
  max-width: 150px;
  padding: 12px;
}

.contact-container .contactForm .formBox .inputBox [type="submit"]:hover {
  background: rgb(138, 134, 134);
}




@media (max-width: 1200px) {
  .contact-container {
      width: 90%;
      min-width: auto;
      margin: 0px auto;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  }

  .contact-container .contactForm {
      position: relative;
      width: 100%;
      padding: 40px;
      height: auto;
      margin: 0;
      box-shadow: none;
  }

  .contact-container .contactInfo {
      width: 100%;
      height: auto;
      position: relative;
      box-shadow: none;
      padding: 20px;
      top:0;
  }
}

@media (max-width: 991px) {
  .contact-page {
      background: rgb(224, 224, 224);
  }

  .contact-page::before {
      display: none;
  }

  .contact-container {
      flex-direction: column-reverse; 
  }

  .contact-container .contactForm {
      width: 100%;
      height: auto;
  }

  .contact-container .contactInfo {
      width: 100%;
      height: auto;
      flex-direction: row;
  }

  .contact-container .contactInfo ul.sci {
      justify-content: center;
      align-items: center;
  }
}

@media (max-width: 600px) {
  .contact-container .contactForm {
      padding: 25px;
  }

  .contact-container .contactInfo {
      padding: 25px;
      flex-direction: column;
      align-items: flex-start;
  }

  .contact-container .contactInfo ul.sci {
      margin-top: 40px;
  }

  .contact-container .contactForm .formBox .inputBox.w50 {
      width: 100%;
  }
}