/* styles.css */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('shared/media/images/psychedelic-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #b8b8b8;
}

/* Sticky footer support and main content box */
main {
  flex: 0 1 auto; /* Don't force it to take all vertical space */
  margin: 2rem auto;
  max-width: 900px;
  min-width: 600px;
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 3rem;

  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 230, 230, 0.5);
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Reset and unify spacing */
main > * {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Headings inside main */
main h1, main h2, main h3, main h4, main h5 {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

/* Paragraphs */
main p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
  max-width: 100%;
}

/* Intro section */
.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Services list */
.services ul {
  list-style: none;
  padding: 0;
}

.services li {
  padding: 0.5rem 0;
  font-size: 1.2rem;
}

/* Contact form wrapper */
.contact-form-wrapper {
  max-width: 600px;
  width: 100%;
  margin: auto;
}

/* Inputs and textarea */
form input,
form textarea {
  font-size: 1.2rem;
  padding: 1rem 1.25rem;
  min-height: 3.5rem;
  border-radius: 8px;
  box-sizing: border-box;
  resize: vertical;
  width: 100%;
}

form textarea {
  min-height: 6rem;
}

button {
  padding: 0.75rem 1.5rem;
  background-color: #00e6e6;
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: fit-content;
}

button:hover {
  background-color: #00cccc;
}

/* Responsive improvements */
@media (max-width: 900px) {
  main {
    max-width: 90%;
    min-width: auto;
    padding: 2rem 2rem;
  }
  .intro h1 {
    font-size: 2.5rem;
  }
  .services li {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  main {
    width: 90%;
    padding: 1.5rem 1.5rem;
    margin: 1rem auto;
    border-radius: 0.8rem;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .services li {
    font-size: 1rem;
  }

  form input,
  form textarea {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    min-height: 3rem;
  }

  button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 400px) {
  main {
    width: 95%;
    padding: 1rem 1rem;
  }

  .intro h1 {
    font-size: 1.6rem;
  }

  .services li {
    font-size: 0.9rem;
  }

  form input,
  form textarea {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}
