* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(0deg, rgba(244,242,237,1) 0%, rgba(210,201,171,1) 28%, rgba(172,158,110,1) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

header {
  position: fixed;
  top: 0;
  margin-bottom: 10px;
  width: 100%;
  padding: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #333;
  font-size: 24px;
}

.main {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 400px;
}

.project-container {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  transition: 0.3s ease-in-out;
  width: 100%;
  max-width: 350px;
}

.project-container:hover {
  background: #d2c9ab;
  transform: scale(1.05);
}

/* Style for the buttons row */
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* <-- Ensures buttons wrap if screen is narrow */
}

.button-row button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background: #8c7a53;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.3s ease-in-out;

  min-width: 160px;     /* Ensure it doesn't get too small */
  max-width: 100%;      /* Prevents overflow */
  white-space: nowrap;  /* Keeps text in one line */
  flex: 1 1 auto;        /* Flexible width, not forced */
}


/* Hover effect for buttons */
.button-row button:hover {
  background-color: #d2c9ab;
  transform: scale(1.05);
}

/* Contact form container */
#contact-form-container {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  display: none;
  width: 400px;
  max-width: 90%;
}

#contact-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Style for contact form elements */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#feedback {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  resize: none;
}

#contact-form button {
  width: 100%;
  padding: 12px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

#contact-form button:hover {
  background-color: #555;
}
