.inner {
  position: relative;
  z-index: 2;
}

#three {
  position: relative;
  overflow: hidden;
  background-image: url("/images/photo-backgrounds/pexels-apasaric-325185.jpg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed; /* Fallback for browsers without smooth scroll */
}

/* When smooth scroll is active, background-attachment will be overridden by JS */
.smooth-scroll-active #three {
  background-attachment: scroll;
}

#particles-js {
  z-index: 1;
}
section.form-section {
  display: flex;
  justify-content: center;
  padding: 2rem;
}
form {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05); /* subtle translucent box */
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* soft shadow */
}
.form-container {
  display: flex;
  gap: 20px;
}

input {
  width: 330px;
  font-weight: 500;
  color: rgb(147, 98, 170);
}

.message {
  width: 100%;
}
input,
textarea {
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #968d8d;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0);
  color: white;
}

input::placeholder,
textarea::placeholder {
  color: #968d8d;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
}

button {
  width: 100%;
  background-color: #95839347;
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
  align-self: flex-start;
}

button:hover {
  background: #1f1fb056;
}

/* ✅ Responsive */
@media (max-width: 900px) {
  .form-container {
    flex-direction: column;
    gap: 10px;
  }

  #three {
    background-attachment: scroll !important;
    background-position: center !important;
    background-size: cover !important;
  }

  input {
    width: 100%;
  }
}

@media (max-width: 600px) {
  section.form-section {
    padding: 1.5rem 1rem;
  }

  form {
    gap: 10px;
    padding: 20px;
  }

  input,
  textarea {
    font-size: 14px;
  }

  textarea {
    min-height: 120px;
  }

  button {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 400px) {
  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.9rem;
  }
}
