@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  list-style: none;
  text-decoration: none;
  background: #f1f1f1;
  color: #313131;
}

body {
  font-family: "Montserrat", sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2% 8%;
  background: #f1f1f1;
  color: #313131;
}

.mail a {
  display: flex;
  font-size: 14px;
  font-weight: 500;
}

.mail a i {
  font-size: 16px;
  font-weight: 500;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  font-weight: 500;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #313131;
  font-size: 14px;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.hamburger i {
  font-size: 30px;
  color: #313131;
  cursor: pointer;
}

.main {
  display: flex; /* Makes children (title & container) side by side */
  justify-content: space-evenly; /* Ensures equal spacing */
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 150px);
  margin: auto;
}

.contact-title {
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  width: 20%; /* Ensures equal width */
  text-align: left;
  color: #000;
}

.contact-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  height: auto; /* Adjust height dynamically */
  padding: 20px;
  width: 60%; /* Ensures equal width */
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
  color: #000;
}

input {
  background: none;
  border: none;
  border-bottom: 1px solid #bbb;
  color: #313131;
  font-size: 24px;
  font-weight: 600;
  width: 300px;
  margin: 0 5px;
  outline: none;
}

input::placeholder {
  color: #bbb;
  text-transform: uppercase;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  color: #313131;
  cursor: pointer;
  text-align: left;
  text-transform: uppercase;
}

.alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.alert p {
  background: transparent;
}

.alert.success {
  background-color: #d4edda; /* Light green for success */
  color: #155724; /* Dark green for success text */
  border: 1px solid #c3e6cb;
}

.alert button {
  background-color: #313131;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

.alert button:hover {
  background-color: #000;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer .copyright p strong a {
  background: #313131;
  color: #f1f1f1;
  /* font-size: 12px; */
  text-decoration: none;
  /* margin-right: 30px; */
}

.footer .copyright p {
  padding: 3px 0;
  background: #313131;
  color: #f1f1f1;
  font-size: 10px;
  text-decoration: none;
  text-align: center;
}

/* Popup container */
.popup {
  display: none; /* Hide popup by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup h2 {
  margin-top: 30px;
}

/* Popup content */
.popup-content {
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  width: 80%;
  max-width: 600px;
}

.popup-content .links {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 0;
}

.popup-content .links li {
  margin: 10px 0;
}

.popup-content .links li a {
  text-decoration: none;
}

.popup-content .links li a:hover {
  text-decoration: underline;
  transition: all 0.9s ease-in-out;
}

/* Close button */
.close-btn {
  font-size: 30px;
  font-weight: bold;
  color: #313131;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 10%;
    text-align: right;
    margin-right: 50px;
    z-index: 1;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 15px 0;
  }

  .hamburger {
    display: block;
  }
  .mail a p {
    display: none;
  }

  .mail a i {
    font-size: 28px;
  }

  .main {
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center elements vertically */
    align-items: center; /* Center elements horizontally */
    height: calc(100vh - 50px);
  }

  .contact-title {
    font-size: 28px;
    width: 50%;
  }

  .contact-title br {
    display: none;
  }

  .contact-container {
    width: 70%; /* Ensures equal width */
    font-size: 24px;
  }

  input {
    font-size: 20px;
    width: 250px;
  }

  button {
    font-size: 16px;
  }
}

@media (max-width: 425px) {
  .main {
    height: calc(100vh - 150px);
  }

  .contact-title {
    font-size: 24px;
    width: 70%;
  }

  .contact-container {
    width: 80%; /* Ensures equal width */
    font-size: 20px;
  }

  input {
    font-size: 18px;
    width: 200px;
  }

  button {
    font-size: 14px;
    margin-top: 10px;
  }

  .alert {
    width: 250px;
    padding: 15px;
  }
  .alert button {
    width: 100%;
  }
}
