/*=============== 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)*/
  --first-color: hsl(350, 71%, 42%);
  /* --first-color: hsl(18, 95%, 55%); */
  --second-color: hsl(349, 49%, 49%);
  /* --second-color: hsl(42, 98%, 52%); */
  --first-gradient: linear-gradient(90deg,
      hsl(350, 71%, 42%),
      hsl(350, 75%, 50%));
  /* --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(200, 7%, 24%); */
  --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;
  z-index: var(--z-fixed);
  transition: background-color .4s;
}

/* Change background header only for the homepage*/
.header__home {
  background-image: url("assets/img/Wietek-Logo.png");
}

.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;
  height: 15%;
  width: 15%;
  transition: all 0.3s ease-in-out;
}

.nav__logo-img {
  transition: opacity 0.3s ease;
}

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

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

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
  transition: color .4s;
}

.nav__flag {
  width: 24px;
  height: auto;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.header.scrolled .nav__lang {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav__flag:hover {
  transform: scale(1.1);
}

.nav__lang {
  display: flex;
  align-items: center;
}

/* 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__flag {
    width: 24px;
  }

  .header.scrolled .nav__lang {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

.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 .nav__toggle {
  color: var(--title-color);
}

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

/*=============== HOME ===============*/
.home {
  position: relative;
  background-color: var(--white-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(--title-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.home__description {
  margin-bottom: 2.5rem;
  color: var(--text-color);
}

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

.home__info {
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
  position: relative;
  z-index: 10;
  margin-top: 2rem;
  z-index: 20;
  align-items: center;
}

@media screen and (min-width: 1150px) {
  .home__info {
    padding-left: 5rem;
  }
}

.home__info>div {
  min-height: 6rem;
  text-align: center;
}

.home__info-title {
  color: var(--second-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: .5rem;
  min-width: 5.8ch;
  text-align: center;
}

.home__info-description {
  font-size: var(--small-font-size);
  color: var(--black-color);
}

.home__info-title,
.home__info-description {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home__info-title.show,
.home__info-description.show {
  opacity: 1;
  transform: translateY(0);
}

.home__images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.home__images img {
  width: 48%;
  /* both images same width */
  aspect-ratio: 4 / 5;
  /* forces same HEIGHT */
  object-fit: cover;
  /* crops nicely */
  border-radius: 8px;
}


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

.home__logo-transparent {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px;
  /* adjust as needed */
  height: auto;
  /* adjust as needed */
  /* background-image: url("assets/img/Wietek-Logo-White.png"); */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  /* adjust transparency */
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  /* make sure it doesn’t block clicks */
}

/*=============== Responsive for Tablets ===============*/
@media screen and (max-width: 1150px) and (min-width: 769px) {
  .home__info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 4rem;
    /* vertical gap | horizontal gap */
    text-align: center;
  }

  .home__info>div {
    width: 45%;
    /* Two items per row */
    min-height: 6rem;
  }

  .home__info-title {
    font-size: 2rem;
    min-width: 6ch;
  }

  .nav__logo-img {
    height: 3.5rem;
    padding: 0.3rem 0;
  }

}

/*=============== Responsive for Mobile ===============*/
@media screen and (max-width: 768px) {
  .home__container {
    padding-block: 2rem 4rem;
  }

  .home__title {
    font-size: 2rem;
  }

  .home__description {
    font-size: 1rem;
  }

  .home__buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .home__info {
    flex-direction: column;
    row-gap: 2rem;
    column-gap: 0;
    text-align: center;
  }

  .home__info-title {
    font-size: 1.8rem;
  }

  .home__images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .home__images img {
    width: 45%;
    max-width: 380px;
    height: auto;
    object-fit: cover;
  }

  .home__logo-transparent {
    width: 600px;
  }
}

@media (max-width: 480px) {
  .home__images {
    padding-bottom: 15%;
  }

  .home__img-1 {
    width: 85%;
  }

  .home__img-2 {
    width: 45%;
    right: 5%;
    bottom: 10%;
    /* Adjusted for smaller screens */
  }

  @media (max-width: 1150px) {
    .home__data {
      order: 1;
    }

    .home__images {
      order: 2;
    }

    .home__info {
      order: 3;
    }
  }
}

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

.button:hover {
  box-shadow: 0 8px 32px hsla(350, 71%, 42%, 0.3);
  color: var(--white-color);
}

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

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

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

.button__link i {
  font-size: 1.5rem;
  transition: transform .4s;
}

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

/*=============== ABOUT ===============*/
.about {
  margin-top: -10%;
}

.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 {
  font-size: 1.25rem;
  color: var(--first-color);
}

.about__images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  /* space between images */
  max-width: 600px;
  margin: 0 auto;
  /* center the block */
}

.about__images img {
  width: 100%;
  /* same width for both */
  max-width: 400px;
  /* control maximum size */
  height: 50%;
  /* keep aspect ratio */
  object-fit: cover;
  /* make image look clean */
  border-radius: 8px;
}



@media (max-width: 1150px) {
  .about__images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .about__images img {
    width: 45%;
    /* Adjust the width to fit two images on one line */
    max-width: 380px;
    height: 60%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .about {
    margin-top: -35%;
    margin-bottom: -35%;
  }
}

/*=============== ABOUT US PAGE ===============*/

.about__section {
  background: url('../img/about-bg.jpg') center/cover no-repeat;
  position: relative;
  padding: 6rem 0;
  color: var(--white-color);
}

.about__overlay {
  background-color: rgba(0, 0, 0, 0.6);
  /* semi-transparent black */
  padding: 4rem 2rem;
}

.about__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about__content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--first-color-light);
}

.about__content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

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

.services__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 3.5rem;
  transition: border-color .4s;
}

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

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

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

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.card-link:hover {
  text-decoration: none;
}

/* 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(--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);
}

/*=============== 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);
}

.projects__data {
  padding: 1.5rem 1rem 3rem;
}

.projects__title {
  font-size: var(--h2-font-size);
  margin-block: .5rem;
}

.projects__date {
  display: block;
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.projects__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/*=============== GLightbox ===============*/
.projects-lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem;
  overflow: hidden;
  max-height: 445px;
  transition: max-height 0.5s ease;
}

.projects-lightbox-grid.expanded {
  opacity: 1;
  visibility: visible;
  max-height: 9999px;
}

.projects-lightbox-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.projects-lightbox-grid img:hover {
  transform: scale(1.03);
}

#toggleLightboxBtn {
  margin: 2rem auto 0;
  display: block;
  align-items: center;
  justify-content: center;
  background: var(--first-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow .4s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  gap: 0.5rem;
  font-family: var(--body-font);
  border-radius: 8px;
}


/* === FORCE 4 COLUMNS ON MOBILE === */
@media (max-width: 768px) {
  .projects-lightbox-grid {
    grid-template-columns: repeat(4, 1fr);
    max-height: 150px;
    /* Adjusted for mobile */
  }

}

/*=============== CONTACT ===============*/
.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;
  transition: border-color .4s;
}

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

.contact__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact__card-link:hover {
  color: inherit;
}

.contact__card-link .contact__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact__card-link:hover .contact__card {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact__icon {
  width: 48px;
  height: 48px;
  background-color: var(--black-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: .5rem;
}

.contact__information {
  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);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--black-color);
  color: var(--text-color-light);
  padding-block: 3.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-img {
  width: 200px;
  height: auto;
}

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

.footer__email,
.footer__info {
  font-style: normal;
}

.footer__content {
  grid-template-columns: repeat(2, 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 {
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform .4s;
}

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

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

/*=============== SCAFFOLDING FORM ===============*/

/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Form Overlay (Modal Background) */
.form__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  /* hidden by default */
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.form__overlay.show-form {
  display: flex;
}

/* Form Container – the only scrollable element */
.form__container {
  position: relative;
  background-color: var(--body-color);
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.3);
  scrollbar-width: thin;
  scrollbar-color: gray transparent;
}

.form__container::-webkit-scrollbar {
  width: 8px;
}

.form__container::-webkit-scrollbar-track {
  background: transparent;
}

.form__container::-webkit-scrollbar-thumb {
  background-color: gray;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* ✅ Remove scrollbar arrows (buttons) */
.form__container::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.form__container::-webkit-scrollbar-thumb:hover {
  background-color: rgb(160, 132, 132);
}

/* Remove overflow-y from .form so it doesn’t create a second scrollbar */
.form {
  padding: 2rem;
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--container-color);
  border-radius: 1rem;
  /* Removed max-height and overflow-y here */
}

/* Close button */
.form__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

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

/* Section titles */
.form__section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--title-color);
}

/* Section divider styling (applied to the title of the next section) */
.form__divider {
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-top: 1.5px solid var(--text-color-light);
  padding-top: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
}

/* If using an <hr> instead, style it like this: */
.form__container hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--text-color-light);
}

/* Grid layout */
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

/* Responsive: single column below 768px */
@media screen and (max-width: 768px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
}

/* Input and textarea styles */
.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 0.5rem;
  background-color: var(--input-bg, #fff);
  font-size: 0.95rem;
}

/* Label */
.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Form group */
.form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

/* Checkboxes */
.form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.form__checkboxes input {
  margin-right: 0.5rem;
}

/* Upload section */
.form__upload {
  border: 2px dashed var(--first-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--body-color);
  transition: background 0.3s;
}

.form__upload:hover {
  background-color: var(--container-color-alt);
}

.form__upload-label {
  display: inline-block;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-color);
}

.form__upload-label i {
  font-size: 2rem;
  color: var(--first-color);
  display: block;
  margin-bottom: 0.5rem;
}

.form__upload input[type="file"] {
  display: none;
}

/* Consent checkbox */
.form__checkbox {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form__checkbox input {
  margin-right: 0.5rem;
}

/* Contact info */
.form__contact-info {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-color);
}

.form__contact-info a {
  color: var(--first-color);
  text-decoration: underline;
}

/* Submit button – match your site’s button style */
form button[type="submit"] {
  background: var(--first-gradient);
  color: var(--white-color);
  padding: 0.75rem 2rem;
  font-size: var(--normal-font-size);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.3s;
  width: auto;
  /* Allow auto width instead of 100% */
  margin-top: 1rem;
}

form button[type="submit"]:hover {
  box-shadow: 0 8px 32px hsla(18, 95%, 55%, 0.3);
}

/*=============== 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: 1rem;
  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(-.55rem);
}

/* Show Scroll Up */
.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;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    filter: contrast(1.02) brightness(1.02);
    /* Optional light tweak */
    border-radius: 8px;
    /* Slight rounding helps with visual softness */
    transition: transform 0.3s ease;
    object-fit: cover;
  }

  .about__list {
    grid-template-columns: repeat(1, 200px);
  }

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

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

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

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

  .home__container,
  .about__container,
  .services__container,
  .projects__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%;
  }

  .projects__container {
    grid-template-columns: repeat(2, 330px);
  }

  .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__toggle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: initial;
  }

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

  .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(--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: -3rem;
  }

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

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

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

  .services__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(3, 350px);
    column-gap: 2rem;
    padding-block: 5rem 4rem;
  }

  .projects__card {
    border-width: 3px;
  }

  .projects__data {
    padding: 2rem 1.5rem 4rem;
  }

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