#contact {
  position: relative;
  background: url("../images/contact.svg") no-repeat center center;
  background-size: cover;
  padding: 150px 20px;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
}

.contact-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-container h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.contact-container p {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 30px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .contact {
    padding: 60px 20px; /* Significantly reduced padding for mobile */
    background-attachment: scroll; /* Better performance on mobile browsers */
  }

  .contact-container h2 {
    font-size: 1.6rem; /* Scaled down for smaller screens */
    margin-bottom: 15px;
  }

  .contact-container p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Ensure the button is easy to tap on mobile */
  .btn-contact {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 50px 15px;
  }

  .contact-container h2 {
    font-size: 1.4rem;
  }
}
