.section-head {
  margin-bottom: 3vw;
  font-size: 3vw;
}

.underline {
  width: 4vw;
  border: 0.2vw solid red;
}

/* ===========Hero=========== */

.slider {
  position: relative;
  width: 100%;
  height: 87vh;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.caption {
  position: absolute;
  top: 39vh;
  left: 10%;
  color: white;
}

.caption h1 {
  font-size: 2.4vw;
  margin-bottom: 1vw;
}

.caption p {
  font-size: 1.2vw;
  margin-bottom: 1.2vw;
  line-height: 1.6vw;
}

.btn {
  font-size: 1vw;
  position: absolute;
  top: 100%;
  padding: 0.8vh 1.8vw;
  border: 0.2vw solid white;
  border-radius: 0.6vw;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0.2vw solid white;
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  color: white;
  font-size: 1.4vw;
  cursor: pointer;
}

.prev {
  left: 3vw;
}

.next {
  right: 3vw;
}

.prev:hover,
.next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===========Certifications============ */
.certifications{
  width: 100%;
  text-align: center;
  margin: 5vw 0;
}

.certifications img{
  width: 25%;
}


/* ===========Headline=========== */
.headline {
  text-align: center;
  margin: 0 auto 8vw;
}

.headline h1 {
  font-size: 2.4vw;
  margin-bottom: 1.6vw;
}

.headline p {
  font-size: 1.4vw;
  line-height: 2vw;
}

.headline b {
  font-weight: 600;
}

/* ===========Service=========== */
.services {
  text-align: center;
  margin-bottom: 9vw;
}

.services h1 {
  text-decoration: underline;
  text-decoration-thickness: 0.1vw;
  text-underline-offset: 0.2vw;
  margin-bottom: 4vw;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1, 1fr;
  column-gap: 10%;
}

.grid-box img {
  border: 0.3vw solid black;
  margin-bottom: 1.2vw;
  width: 100%;
  transition: transform 0.3s ease;
}

.grid-box img:hover {
  transform: translateY(-0.5vw);
}

.grid-box p {
  font-size: 1.4vw;
}

/* ===========Metal Welding Homepage=========== */

.metalWelding {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  margin-bottom: 7.5vw;
}

.metalWelding-text h1 {
  font-size: 3.2vw;
  text-decoration: underline;
  text-decoration-thickness: 0.1vw;
  text-underline-offset: 0.2vw;
  margin-bottom: 1vw;
}

.metalWelding-text p {
  min-width: max-content;
  font-size: 1vw;
  line-height: 152.63%;
}

.metalWelding-text b {
  font-weight: 600;
}

.metalWelding-img img {
  width: 90%;
}

/* ===========TRUSTED BY=========== */
.trustedBy {
  text-align: center;
  margin-bottom: 5vw;
}

.trustedBy h1 {
  margin-bottom: 0;
}

.trustedBy-underline {
  margin: 0 auto 4vw;
}

.trustedlogos img {
  width: 100%;
  border: 0.2vw solid black;
  border-radius: 1.6vw;
}

/* ================= FEATURED PROJECTS ================= */

.featured-projects {
  margin-bottom: 6vw;
  text-align: center;
}

.featured-projects-header h1 {
  font-size: 3.2vw;
}

.fp_underline {
  margin: 0 auto 3vw;
}

.projects-slider {
  position: relative;
  width: 100%;
}

.projects-slide {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  animation: fadeSlide 0.5s ease;
}

.projects-slide.active {
  display: grid;
}

.projects-slide img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 1vw;
  object-fit: cover;
  box-shadow: 0.3vw 0.3vw 1vw rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-slide img:hover {
  transform: translateY(-0.4vw);
  box-shadow: 0.6vw 0.6vw 1.4vw rgba(0, 0, 0, 0.45);
}

/* ----- Controls ----- */

.projects-slider-controls {
  display: flex;
  justify-content: center;
  gap: 2vw;
  margin-top: 3vw;
}

.projects-slider-controls button {
  font-size: 2.2vw;
  width: 4vw;
  height: 4vw;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background-color: black;
  color: white;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.projects-slider-controls button:hover {
  background-color: red;
  transform: translateY(-0.2vw);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(1vw);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ====== MOBILE ====== */

@media screen and (max-width: 768px) {

  .underline {
    width: 6vw;
    border: 0.4vw solid red;
  }

  .slider {
    height: 40vh;
  }

  .caption {
    top: 30%;
    left: 10%;
    right: 7%;
  }

  .caption h1 {
    font-size: 6vw;
    margin-bottom: 3vw;
  }

  .caption p {
    font-size: 2.4vw;
    line-height: 3vw;
    margin-bottom: 4vw;
  }

  .btn {
    font-size: 2.4vw;
    padding: 2vw 4vw;
    border-width: 0.4vw;
    border-radius: 2.4vw;
  }

  .prev,
  .next {
    width: 5vw;
    height: 5vw;
    font-size: 3vw;
  }

  /* ====== CERTIFICATIONS ====== */

  .certifications img {
    width: 50%;
  }

  /* ====== HEADLINE ====== */
  .headline {
    margin: 0 auto 12vw;
    min-width: 80vw;
  }

  .headline h1 {
    font-size: 5vw;
    line-height: 7vw;
    margin-bottom: 5vw;
  }

  .headline p {
    text-align: justify;
    font-size: 2.8vw;
    line-height: 5vw;
  }

  /* ====== SERVICES ====== */
  .services-grid {
    grid-template-columns: 1fr;
    row-gap: 8vw;
    margin-bottom: 27vw;
  }

  .services h1 {
    font-size: 6vw;
    text-decoration-thickness: 0.3vw;
    text-underline-offset: 0.4vw;
  }

  .grid-box p {
    font-size: 4vw;
  }

  /* ====== METAL WELDING ====== */
  .metalWelding {
    grid-template-columns: 1fr;
    gap: 6vw;
    text-align: center;
    margin: 0 auto 12vw;
  }

  .metalWelding-text h1 {
    font-size: 6vw;
    text-decoration-thickness: 0.3vw;
    text-underline-offset: 0.4vw;
  }

  .metalWelding-text br {
    display: none;
  }

  .metalWelding-text p {
    min-width: unset;
    text-align: justify;
    font-size: 3vw;
    line-height: 5vw;
  }

  .metalWelding-img img {
    width: 100%;
  }

  /* ====== TRUSTED BY ====== */
  .trustedBy {
    margin-bottom: 20vw;
  }

  .trustedBy h1 {
    font-size: 6vw;
  }

  /* ====== FEATURED PROJECTS ====== */

  .featured-projects-header h1 {
    font-size: 6vw;
  }

  .fp_underline {
    margin-bottom: 6vw;
  }

  .projects-slide {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw;
  }

  .projects-slide img {
    border-radius: 2vw;
  }

  .projects-slider-controls button {
    font-size: 5vw;
    width: 9vw;
    height: 9vw;
  }
}

/* ==================== DESKTOP ==================== */
@media screen and (min-width: 1920px) {

  .main {
    margin: 0 auto;
  }

  .underline {
    width: 2vw;
    border-width: 0.1vw;
  }

  /* ---------- SECTION HEADINGS ---------- */
  .section-head {
    font-size: 2.8rem;
  }

  /* ---------- HERO / SLIDER ---------- */
  .slider {
    height: 85vh;
  }

  .caption {
    top: 40%;
    left: 8%;
    max-width: 42rem;
  }

  .caption h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
  }

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

  .btn {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    border-width: 2px;
    border-radius: 1.6rem;
  }

  .prev,
  .next {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .prev {
    left: 3rem;
  }

  .next {
    right: 3rem;
  }

  /* ---------- certifications ---------- */

  .certifications {
    margin: 3vw auto;
  }

  .certifications img {
    width: 15%;
  }

  /* ---------- HEADLINE ---------- */
  .headline {
    margin-bottom: 6rem;
  }

  .headline h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }

  .headline p {
    font-size: 1.2rem;
    line-height: 2.2rem;
  }

  /* ---------- SERVICES ---------- */
  .services {
    margin-bottom: 8rem;
  }

  .services-grid {
    column-gap: 6rem;
  }

  .grid-box p {
    font-size: 1.4rem;
  }

  /* ---------- METAL WELDING ---------- */
  .metalWelding {
    gap: 6rem;
    margin-bottom: 8rem;
  }

  .metalWelding-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
  }

  .metalWelding-text p {
    font-size: 1.2rem;
    line-height: 2.2rem;
  }

  /* ---------- TRUSTED BY ---------- */
  .trustedBy {
    margin-bottom: 7rem;
  }

  /* ---------- FEATURED PROJECTS ---------- */

  .featured-projects {
    margin-bottom: 4rem;
  }

  .featured-projects-header h1 {
    font-size: 3rem;
  }

  .fp_underline {
    margin-bottom: 3rem;
  }

  .projects-slide {
    gap: 2.5rem;
  }

  .projects-slide img {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
  }

  .projects-slider-controls {
    gap: 2rem;
    margin-top: 3rem;
  }

  .projects-slider-controls button {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
  }
}