/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 4eb8b2  f5c636 */

  --first-color: #012a26;
  --second-color: #ea872a;
  --first-gradient: linear-gradient(90deg,
      hsl(29.06deg 82.05% 58.63%),
      hsl(45.24deg 82.05% 68.63%));
  --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);
}

p {
  line-height: 1.6;
}

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;
  color: var(--first-color);
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: background-color .4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.footer__logo {
  display: flex;
  align-items: center;
  column-gap: .25rem;
}

.nav__logo .logo {
    width: 135px;

}
.footer__logo .logo {
  width: 200px;
  margin-top: 5px;
}

.nav__toggle,
.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(--first-color);
    width: 80%;
    height: 100%;
    padding: 7.5rem 3.5rem 0;
    border-left: 1.5px solid var(--second-color);
    transition: right .4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__link:hover {
  color: var(--second-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%, 0.1);
}

.bg-header .nav__logo span,
.bg-header .nav__toggle {
  color: var(--second-color);
}

/* Active link */
.active-link {
  color: var(--second-color);
}


/*=============== HOME ===============*/
.home {
  position: relative;
  background-color: var(--first-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 {
  margin-bottom: 2.5rem;
  color: var(--white-color);
}

.home__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.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: 0.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: 200px;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  border: 5px solid var(--second-color);
  border-radius: 6px;
}

.home__img-2 {
  width: 150px;
  border: 5px solid var(--white-color);
  position: absolute;
  left: -1rem;
  bottom: -3.5rem;
  border-radius: 6px;

}

.home__img-3 {
  width: 150px;
  border: 5px solid var(--white-color);
  position: absolute;
  left: 4rem;
  bottom: -4.5rem;
  border-radius: 6px;

}


/* .home__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
} */

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  justify-content: center;
  background: var(--second-color);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 1.7rem;
  transition: box-shadow .4s;
}

.button:hover {
  /* box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
  color: var(--white-color); */
  opacity: 0.9;
}

.button__link {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--first-color);
}

.button__link span {
  font-weight: var(--font-semi-bold);
  color: var(--second-color);
}

.button__link i {
  font-size: 1.5rem;
  transition: transform .4s;
  color: var(--second-color);

}

.button__link:hover i {
  transform: translateX(.25rem);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 8rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__list {
  text-align: initial;
  display: grid;
  grid-template-columns: repeat(2, 130px);
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about__list-item {
  display: flex;
  column-gap: 0.5rem;
  color: var(--title-color);
}

.about__list-item i {
  color: var(--first-color);
  font-size: 1.25rem;
  justify-self: center;

}

.about__images {
  position: relative;
  justify-self: center;
}

.about__img-1 {
  width: 200px;
  border: 5px solid var(--second-color);
  position: absolute;
  top: -5rem;
  left: 6rem;
  border-radius: 12px;
}

.about__img-2 {
  border: 10px solid var(--second-color);
  width: 250px;
  margin-right: 2.5rem;
  border-radius: 12px;

}

/*=============== SERVICES ===============*/
.services {
  position: relative;
}

.services__container {
  position: relative;
  row-gap: 3rem;
}

.services__data {
  text-align: center;
}

/* .services__description {
  margin-bottom: 2rem;
  line-height: 1.6;
} */

.services__card {
  width: 260px;
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  padding: 2rem 1rem 3.5rem;
  transition: border-color .4s;
}

.services__card:hover {
  border-color: var(--first-color);
}

.services__icon {
  width: 70px;
  height: 70px;
  background-color: var(--first-color);
  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);
  color: var(--first-color);
  margin-bottom: .5rem;
}

.services__shape {
  position: absolute;
  width: 100%;
  height: 245px;
  background-color: var(--second-color);
  bottom: 0;
  left: 0;
}



/* Swiper class */
.swiper {
  margin-inline: initial;
  padding-bottom: 4rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-button-prev,
.swiper-button-next {
  top: initial;
  bottom: 0;
  width: 32px;
  height: 32px;
  background-color: var(--white-color);
  box-shadow: 0 2px 8px hsla(255, 8%, 4%, .1);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: calc(50% - 3rem);
}

.swiper-button-next {
  right: calc(50% - 3rem);
}

/*=============== products ===============*/
.products {
  position: relative;
  background-color: var(--first-color);
}

.products__container {
  position: relative;
  row-gap: 3rem;
}

.products__swiper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  justify-self: center;
  text-align: center;
}

.products__data {
  text-align: center;
}

.products__card {
  /* width: 260px; */
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  /* padding: 1rem 1rem 4rem; */
  transition: border-color .4s;
}

.products__card:hover {
  border-color: var(--first-color);
}

.products__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* margin-bottom: 1rem; */
  border-radius: 4px;
}


.products__show-details {
  padding: 10px 20px;
  border: none;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: 6px;
  cursor: pointer;
  transition: .6s;
  margin: 10px 0;
}
.products__show-details:hover {
  background-color: var(--second-color);
  
}



/* Popup overlay - covers entire screen */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

/* Popup content - covers 50% of screen */
.popup-content {
  background-color: white;
  width: 80%;
  max-width: 900px;
  height: 60vh;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
}

/* Photo gallery layout */
.photo-gallery {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

.photo-gallery img {
  width: 30%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff4757;
}

.popup-header {
  margin-bottom: 20px;
}

.project-title {
  font-size: 24px;
  color: #333;
}

.project-description {
  color: #555;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .popup-content {
    width: 90%;
    height: 70vh;
  }
  
  .photo-gallery {
    flex-direction: column;
  }
  
  .photo-gallery img {
    width: 100%;
    height: 150px;
  }
}

/*=============== CONTACT ===============*/
.contact {
  background-color: var(--second-color);
}
.contact__container {
  row-gap: 3rem;
  padding-block: 1.5rem 3rem;
}

.contact__img {
  width: 320px;
  justify-self: center;
}

.contact__data {
  grid-template-columns: 230px;
  justify-content: center;
  row-gap: 1.5rem;
}

.contact__card {
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  padding: 1.5rem 2rem;
  text-align: center;
  border-radius: 12px;
  transition: border-color .4s;
}

.contact__card:hover {
  border-color: var(--first-color);
}

.contact__icon {
  width: 48px;
  height: 48px;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.contact__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.contact__info {
  font-style: normal;
}

.contact__social {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.contact__social-link {
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform .4s;
}

.contact__social-link:hover {
  transform: translateY(-.25rem);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact__form-group {
  width: 100%;
}

.contact__form-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 2px solid var(--gray-border);
  background-color: var(--container-color);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  transition: border-color .4s;
}

.contact__form-input:focus {
  outline: none;
  border-color: var(--first-color);
}

.contact__form-input::placeholder {
  color: var(--text-color-light);
  opacity: 0.7;
}

.contact__form-button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--first-color);
  color: var(--white-color);
  border: none;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: background-color .4s, transform .4s;
}

.contact__form-button:hover {
  background-color:  hsla(177, 43%, 51%, 0.843);
  transform: translateY(-.25rem);
}

/* For the textarea specifically */
.contact__form-input textarea {
  resize: vertical;
  min-height: 100px;
}


/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
  color: var(--text-color-light);
  padding-block: 3.5rem 2rem;
}

.footer__container {
  row-gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--second-color);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
}


.footer__logo span {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

.footer__logo i {
  color: var(--first-color);
  font-size: 1.5rem;
}

.footer__description {
  margin-block: 1rem;
  color: var(--second-color);
}

.footer__email,
.footer__info {
  font-style: normal;
  color: var(--second-color);

}

.footer__content {
  /* grid-template-columns: repeat(2, max-content);
  gap: 4rem 3rem; */
}

.footer__title {
  font-size: var(--h3-font-size);
  color: var(--second-color);
  margin-bottom: 1rem;
}

.footer__links,
.footer__list {
  display: grid;
  row-gap: 0.5rem;
  color: var(--second-color);
}

.footer__link {
  color: var(--second-color);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--white-color);
}

.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social-link {
  font-size: 1.5rem;
  color: var(--second-color);
  transition: transform 0.4s ease;
}

.footer__social-link:hover {
  transform: translateY(-.25rem);
}

.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 4rem;
  color: var(--second-color);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.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: 1rem;
  bottom: -50%;
  /* Starts hidden below viewport */
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, 0.15);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
  border-radius: 4px;
  /* Added for better appearance */
  cursor: pointer;
  /* Indicates clickable element */
}

.scrollup:hover {
  transform: translateY(-0.25rem);
  /* Subtle hover effect */
}

.show-scroll {
  bottom: 3rem;

}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width:340px) {
  .container {
    margin-inline: 1rem;
  }

  .section__title {
    font-size: 1.25rem;
  }

  .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, 200px);
  }

  .about__img-1 {
    width: 150px;
    left: 4rem;
  }

  .about__img-2 {
    width: 200px;
    margin-right: 8;
  }

  .footer__content {
    grid-template-columns: repeat(1, max-content);
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {

  .home__container,
  .about__container,
  .services__container,
  .contact__container {
    grid-template-columns: 360px;
    justify-content: center;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 768px) {
  .nav__menu {
    width: 50%;
  }

  /* .products__container {
    grid-template-columns: repeat(2, 330px);
  } */
.products__swiper {
      grid-template-columns: repeat(auto-fill,minmax(200px , 1fr) );

}
  .contact__data {
    grid-template-columns: repeat(2, 240px);
  }

  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
}

/* For large devices */

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__logo .logo {
    width: 200px;
  }


  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: initial;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }


  .bg-header .nav__link {
    color: var(--text-color);
  }

  .bg-header .active-link,
  .bg-header .nav__link:hover {
    color: var(--first-color);
  }

  .bg-header .button,
  .bg-header .button:hover {
    color: var(--first-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;
    border-width: 10px;
  }

  .home__img-2 {
    width: 350px;
    border-width: 10px;
    left: -4rem;
    bottom: -4rem;
  }

  .home__img-3 {
    width: 350px;
    left: 3rem;
    bottom: -12rem;
    border: 10px solid var(--second-color);
  }




  /* .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: 5px;
    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: 2.5rem;
  }

  .services__container {
    grid-template-columns: initial;
    row-gap: 5rem;
    padding-bottom: 4.5rem;
  }

  .services__data {
    display: grid;
    grid-template-columns: 415px 175px;
    justify-content: space-between;
    align-items: center;
  }

  .services__data :is(.section__title, .section__subtitle) {
    text-align: initial;
  }

  .services__data .section__title {
    margin-bottom: 0px;
  }

  .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;
  }

  .products__container {
    grid-template-columns: initial;
    row-gap: 5rem;
    padding-bottom: 4.5rem;
  }

  .products__img {
    margin-bottom: 0rem;
  }


  .products__data {
    padding: 1rem 1.5rem 4rem;
  }

  .products__show-details {
    font-size: var(--h2-font-size);
  }

  .products__swiper {
    justify-self:auto;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

  .products__card {
    width: 348px;
    height: 600px;
    border-width: 3px;
    /* padding: 3.5rem 2rem 6rem; */
  }

  .products__card > div {
  height: 500px;
}


  .contact :is(.section__title, .section__subtitle) {
    text-align: initial;
  }

  .contact__container {
    grid-template-columns: 530px 515px;
    justify-content: initial;
    align-items: flex-start;
    column-gap: 3.5rem;
    padding-block: 3.5rem 4rem;
  }

  .contact__img {
    width: 530px;
  }

  .contact__data {
    gap: 2rem;
  }

  .contact__card {
    border-width: 3px;
  }

  .contact__title {
    font-size: var(--h3-font-size);
  }

  .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;
  }
}