/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 5.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(18, 95%, 55%);
  --second-color: hsl(42, 98%, 52%);
  --first-gradient: linear-gradient(90deg,
                  hsl(18, 95%, 55%),
                  hsl(18, 98%, 64%));
  --title-color: hsl(255, 12%, 12%);
  --text-color: hsl(225, 12%, 24%);
  --text-color-light: hsl(255, 4%, 70%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 100%);
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(255, 20%, 10%);
  --gray-border: hsl(255, 6%, 90%);
  --black-border: hsl(255, 10%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --big-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== 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);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--second-color);
  margin-bottom: .5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/

.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  transition: background-color .4s;
  z-index: var(--z-fixed);
  
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;

}
.nav__logo{
  display: flex;
  align-items: center;
  column-gap: .25rem;

}
.nav__logo span{
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}
.nav__logo i{
  color: var(--first-color);
}
.toggle__menu,
.nav__close {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
  transition: color .4s;

}
/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
.nav__menu{
 position: fixed;
 top: 0;
 right: -100%;
 background-color: var(--black-color);
 width: 80%;
 height: 100%;
 padding: 7.5rem 3.5rem 0;
 border-left: 2px solid var(--black-border);
 transition: right .4s;
}
  
}
.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
}

.nav__link{
  color: var(--text-color-light);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}
.nav__link:hover{
  color: var(--first-color);
}
.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu{
  right: 0;
}

/* Change background header */
.bg-header{
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, .1);
}
.bg-header .nav__logo span,
.bg-header .toggle__menu{
color: var(--title-color);
}

/* Active link */
.active-link{
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home{
  position: relative;
  background-color: var(--black-color);
}

.home__container{
  position: relative;
  row-gap: 3rem;
  padding-block: 2.5rem 6rem;
}
.home__content{
  row-gap: 2.5rem;
}
.home__data{
  text-align: center;

}
.home__title{
  color: var(--white-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}
.home__description{
  color: var(--text-color-light);
  margin-bottom: 2rem;
 
}
.home__buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
/*=============== BUTTON ===============*/
.button{
  display: inline-flex;
  background: var(--first-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: boxshadow .4s;
}
.button:hover{
  box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
  color: var(--white-color);
}

.button__link{
  display:flex;
  align-items: center;
  justify-content: center;
  column-gap: .25rem;
  color: var(--first-color);
}
.button__link span{
  font-weight: var(--font-semi-bold);
}
.button__link i{
  font-size: 1.25rem;
  transition: transform .4s;
}
.button__link:hover i{
  transform: translateX(.25rem);
}

.home__info{
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
}
.home__info-title{
  color: var(--second-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: .5rem;
}
.home__info-description{
  font-size: var(--small-font-size);
  color: var(--white-color);

}
.home__images{
  position: relative;
  justify-self: center;
}
.home__img-1{
  width: 250px;
   margin-left: 3.5rem;
}
.home__img-2{
  width: 150px;
  border: 1px solid var(--black-border);
  position: absolute;
  left: 0;
  bottom: -3.5rem;
}
.home__lines{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}
/*=============== ABOUT ===============*/
.about__container{
  row-gap: 8rem;
}
.about__data{
  text-align: center;
}
.about__description{
  margin-bottom: 2rem;
 
}
.about__list{
  text-align: initial;
  grid-template-columns: repeat(2, 130px);
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.about__list-item{
  display: flex;
  column-gap: .5rem;
  color: var(--title-color)
}
.about__list-item i{
  color: var(--first-color);
  font-size: 1.25rem;
  margin-top: .25rem;
}
.about__images{
  position: relative;
  justify-self: center;

}
.about__img-1{
  position: absolute;
  width: 200px;
  border: 5px solid var(--body-color);
  top: -5rem;
  left: 6rem;
}
.about__img-2{
  width: 250px;
  margin-right: 2.5rem;
}
/*=============== SERVICES ===============*/
.services{
  position: relative;
}
.services__container{
  position: relative;
  row-gap: 3rem;
}
.service__data{
  text-align: center;
  
}
.services__description{
  margin-bottom: 2rem;
}
.services__card{
  width: 260px;
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  padding: 2rem 1rem 2rem;
  transition: border-color 4.s;

}
.services__card p{
  text-align:left;
}
.services__card:hover{
  border-color: var(--first-color);
}
.services__icon{
  width: 70px;
  height: 70px;
  background-color: var(--black-border);
  color: var(--white-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.services__title{
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
}
/* Swiper class */
.swiper{
  margin-inline: initial;
  padding-bottom: 4rem;

}
.swiper-button-prev::after,
.swiper-button-next::after{
  content: "";
}
.swiper-button-next,
.swiper-button-prev{
  top: initial;
  bottom: 0;
  width: 32px;
  height: 32px;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(255, 8%, 4%, .1);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--title-color);
}
.swiper-button-prev{
  left: calc(50% - 3rem);
}
.swiper-button-next{
  right: calc(50% - 3rem);
}
.services__shape{
  position: absolute;
  width: 100%;
  height: 245px;
  background-color: var(--black-color);
  bottom: 0;
  left: 0;
}
/*=============== PROJECTS ===============*/
.projects{
  background-color: var(--black-color);
}
.projects .section__title{
  color: var(--white-color);
}
.projects__container{
  padding-block: 1.5rem 3rem;
}
.projects__card{
  background-color: var(--container-color);
  border: 2px solid transparent;
  background-clip: content-box;
  transition: border-color .4s;
}
.projects__card:hover{
  border-color: var(--first-color);
}
.project__img-wrapper{
  height: 300px;
}
.projects__img{
  width: 100%;
  height: 100%;
 object-fit: cover;

}
.projects__data{
  padding: 1.5rem 1rem 3rem;
}
.projects__title{
  font-size: var(--h2-font-size);
  margin-block: .5rem;
  color: var(--white-color);
}
.projects__data span{
  font-size: var(--h3-font-size);
  color: var(--second-color);
  font-weight: var(--font-semi-bold);
}
.projects__data p{
  margin-top: 1rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-align: justify;
}


/* OUR TEAM */
 .team-section {
      text-align: center;
      padding: 80px 20px;
      background: linear-gradient(135deg, #f0f4ff, #e6ecff);
    }

    .team-section h2 {
      font-size: 2.5rem;
      margin-block: .5rem;
      color: #222;
    }

    .team-section p {
      font-size: var(--small-font-size) !important;
      max-width: 600px;
      margin: 0 auto 50px;
      font-size: 1rem;
      color: #555;
    }

    .team-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .team-card {
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
    }

    .team-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }

    .team-card img {
      width: 100%;
      height: 280px;
      object-fit: cover;
      border-bottom: 5px solid #4e73df;
    }

    .team-info {
      padding: 20px;
    }

    .team-info h3 {
      font-size: 1rem;
      margin: 10px 0 5px;
      color: #222;
    }

    .team-info p.role {
      font-size: 0.95rem;
      color: #4e73df;
      margin-bottom: 15px;
    }

    .team-info p {
      font-size: 0.9rem;
      color: #555;
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 15px;
      padding: 15px 0 20px;
    }

    .social-links a {
      color: #4e73df;
      font-size: 1.2rem;
      transition: color 0.3s ease;
      text-decoration: none;
    }

    .social-links a:hover {
      color: #1d3edc;
    }

    /* OUR CLIENTS */

    .clients-section {
      text-align: center;
      padding: 60px 20px;
      background: #fff;
      overflow: hidden;
    }

    .clients-section h2 {
      font-size: 2rem;
      margin-bottom: 30px;
      color: #333;
    }

    .slider {
      overflow: hidden;
      position: relative;
      width: 100%;
    }

    .slide-track {
      display: flex;
      width: calc(220px * 10); /* width × number of logos */
      animation: scroll 25s linear infinite;
    }

    /* Pause animation on hover */
    .slider:hover .slide-track {
      animation-play-state: paused;
    }

    .slide {
      width: 220px;
      height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      box-sizing: border-box;
    }

    .slide img {
      width: 100%;
      height: 100%;
      object-fit: contain; /* keeps proportions, no stretching */
      filter: grayscale(100%);
      transition: filter 0.3s ease, transform 0.3s ease;
    }

    .slide img:hover {
      filter: grayscale(0%);
      transform: scale(1.05);
    }

    @keyframes scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
/*=============== CONTACT ===============*/
 .contact-section {
      background: linear-gradient(135deg, #f0f4ff, #e6ecff);
      padding: 60px 20px;
    }

    .contact-section h2 {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 15px;
      color: var(--first-color);
    }

    .contact-section p {
      text-align: center;
      color: var(--black-color);
      margin-bottom: 40px;
    }

    .contact-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      gap: 20px;
      color: #333;
    }

    .contact-info div {
     
      padding: 15px;
      border-radius: 10px;
    }

    .contact-info strong {
      display: block;
      margin-bottom: 5px;
      color: #000;
    }

    .map {
      margin-top: 20px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .map iframe {
      width: 100%;
      height: 250px;
      border: none;
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    input, textarea {
      padding: 12px 15px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1rem;
      outline: none;
      transition: border 0.3s ease;
    }

    input:focus, textarea:focus {
      border-color: #007BFF;
    }

    textarea {
      resize: none;
      min-height: 120px;
    }

    button {
      padding: 14px;
      background: var(--first-color);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    button:hover {
     box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .contact-container {
        grid-template-columns: 1fr;
      }
    }

    .message {
  margin-top: 10px;
  font-weight: bold;
}

.message.success {
  color: green;
}

.message.error {
  color: red;
}


/*=============== FOOTER ===============*/
    .footer{
      background-color: var(--black-color);
      color: var(--text-color-light);
      padding-block: 2.5rem 2rem;
    }
    .footer__container{
      row-gap: 4rem;
      padding-bottom: 4rem;
      border-bottom: 1px solid var(--black-border);
    }
    .footer__logo{
      display: inline-flex;
      align-items: center;
      column-gap: .25rem;
    }
    .footer__logo span{
      color: var(--white-color);
      font-size: var(--h2-font-size);
      font-weight: var(--font-semi-bold);

    }
  .footer__logo img{
    width: 50px;
    height: 50px;
    object-fit: cover;
  }
  .footer__description{
    margin-block: 1rem;
  }
  .footer__email,
  .footer__info{
    font-style: normal;

  }
  .footer__content{
    grid-template-columns: repeat(3, max-content);
    gap: 4rem 3rem;
  }
  .footer__title{
    font-size: var(--h3-font-size);
    color: var(--white-color);
    margin-bottom: 1rem;
  }
  .footer__links,
  .footer__list{
    display: grid;
    row-gap: .5rem;

  }
  .footer__link{
    color: var(--text-color-light);
    transition: color .4s;
  }
  .footer__link:hover{
    color: var(--first-color);

  }
  .footer__social{
    display: flex;
    column-gap: 1rem;
  }
  .footer__social__link{
    
    color: var(--first-color);
    font-size: var(--h1-font-size);
  }
    .footer__social__link:hover{
      transform: translateY(-.25rem);
    }
  .footer__copy{
    display: block;
    text-align: center;
    font-size: var(--small-font-size);
    margin-top: 4rem;
  }
/*=============== SCROLL BAR ===============*/

::-webkit-scrollbar{
  width: .6rem;
  background-color: hsl(255, 5%, 75%);
}
::-webkit-scrollbar-thumb{
  background-color: hsl(255, 5%, 65%);
}
::-webkit-scrollbar-thumb:hover{
  background-color: hsl(255, 5%, 55%);
}
/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1.5rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, .15);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;


  z-index: var(--z-tooltip);

  transition: bottom .4s transform .4s;
}
.scrollup:hover{
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 480px){
  .container{
  margin-inline: 1rem;
  }
  .section__title{
    font-size: 1.5rem;
  }
  .home__title{
    font-size: 1.75rem;
  }
  .home__buttons{
    flex-direction: column;
    
  }
  .home__img-1{
    width: 200px;
    margin-left: 1.5rem;
  }
  .about__list{
    grid-template-columns: repeat(1, 100px);
   
  
  }
  .about__img-1{
    width: 150px;
    left: 4rem;
  }
  .about__img-2{
    width: 200px;
    margin-right: 0;
  }

    .team-section {
      padding: 60px 20px;
    }
  .team-section h2{
    font-size: 1.5rem;
  }
  .clients-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    
}
.contact-section h2 {
   
    font-size: 1.5rem;
   
}
.contact-section p {
    font-size: var(--small-font-size);
    margin-bottom: 20px;
}
.footer__content{
    grid-template-columns: repeat(1, max-content) !important;
    
}
  
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container,
  .about__container,
  .services__container,
  .projects__container
  {
    grid-template-columns: 360px;
    justify-content: center;
  }
   .contact-container{
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
   }
  .footer__container{
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
  }
  
}
@media screen and (min-width: 768px) {
 .nav__menu{
  width: 50%;
 }
 .projects__container{
  grid-template-columns: repeat(2, 330px);
 }

 .footer__container{
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
 }
   .home__container,
  .about__container,
  .services__container,
  .projects__container
  {
    grid-template-columns: 560px;
    justify-content: center;
  }
 
}

/* For large devices */
@media screen and (min-width: 1150px) {
 .container{
  margin-inline: auto;
 }
 .section{
  padding: 7rem 2rem;
 }
 .nav{
  height: calc(var(--header-height) + 2rem);
 }
 .toggle__menu,
 .nav__close{
  display: none;
 }
.nav__menu{
  width: initial;
}
.nav__list{
  flex-direction: row;
  align-items: center;
  column-gap: 1.5rem;
}
.bg-header .nav__link{
  color: var(--text-color);
}
.bg-header .active-link,
.bg-header .nav__link:hover{
  color: var(--first-color);
}
.bg-header .button{
  border-radius: 2px;
  color: var(--white-color);
}
.bg-header .button:hover{
  color: var(--white-color);
}
.home__container{
  grid-template-columns: 475px 550px;
  column-gap: 6rem;
  align-items: flex-start;
  padding-top: 5.5rem;

}
.home__content{
  row-gap: 4.5rem;
}
.home__data{
  text-align: initial;
}
.home__description{
  margin-bottom: 3rem;
}
.home__buttons{
  justify-content: initial;
  column-gap: 3rem;
}
.home__info{
  justify-content: initial;
  column-gap: 5.5rem;
}
.home__info-description{
  font-size: var(--normal-font-size);
}
.home__img-1{
  width: 550px;
  margin-left: 0;
}
.home__img-2{
  width: 350px;
  border-width: 10px;
  left: -7rem;
  bottom: -8rem;
}
.home__lines{
  object-position: center;
}
.about__container{
  grid-template-columns: repeat(2, 480px);
  column-gap: 9rem;
  padding-block: 9rem 2rem;

}
.about__images{
  order: -1;
}
.about__img-1{
  width: 370px;
  border-width: 10px;
  top: -9rem;
  left: 11rem;
}
.about__img-2{
  width: 470px;
}
.about__data,
.about__data :is(.section__title, .section__subtitle){
  text-align: initial;
}
.about__list{
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 3.5rem;
}
.services__container{
  grid-template-columns: initial;
  row-gap: 5rem;
  padding-bottom: 4.5rem;
}
.service__data{
  display: grid;
  grid-template-columns: 415px 370px max-content;
  justify-content: space-between;
  align-items: center;
}
.service__data :is(.section__title, .section__subtitle),
.services__description{
  text-align: initial;
}
.service__data .section__title{
  margin-bottom: 0;
}
.services__swiper{
  max-width: 1100px;
}
.services__card{
  width: 348px;
  border-width: 3px;
  padding: 3.5rem 2rem 6rem;
}
.services__shape{
  height: 330px;
}
.swiper-button-next,
.swiper-button-prev{
  bottom: 3rem;
}
.projects__container{
  grid-template-columns: repeat(1, 1100px);
  column-gap: 2rem;
  padding-block: 5rem 4rem;
}
.footer{
  padding-block: 4.5rem 3rem;

}
.footer__container{
  padding-bottom: 6rem;
}
.footer__content{
  column-gap: 7rem;
}
.footer__description{
  margin-block: 1.5rem;

}
.footer__title{
  margin-bottom: 1.5rem;
}
.footer__links,
.footer__list{
  row-gap: 1rem;
}
.scrollup{
  right: 3rem;
}

}