* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.navbar {
  background-color: rgba(243, 46, 46, 1);
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.logo-container {
  color: white;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 40px;
  border-radius: 4px;
}

.menu-icon {
  display: block;
  font-size: 1.5em;
  cursor: pointer;
  color: rgba(255, 255, 255, 1);
}

.nav-links {
  list-style: none;
  margin: 0px 5px;
  padding: 0;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: rgba(243, 46, 46, 1);
  z-index: 10;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-links li {
  margin: 0;
  text-align: center;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 1);
  padding: 10px;
  display: block;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; /* Position at the bottom of the item */
  left: 50%; /* Start from the center */
  transform: translateX(-50%);
  width: 50%; /* Start with 50% width */
  height: 2px; /* Adjust thickness of the line */
  background-color: rgb(52, 73, 255);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 80%; /* Expand to 80% on hover */
}

.dropdown-content {
  display: none; /* Hide dropdown content on mobile */
  position: absolute;
  top: 0;
  right: 100%; /* Position the dropdown items to the right of the parent item */
  background-color: rgba(243, 46, 46, 1);
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #3449ff;
  flex-direction: column;
  z-index: 20;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-content a {
  padding: 8px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 1);
  transition: color 0.3s ease;
  position: relative;
}

.dropdown-content a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%; /* Start with 50% width */
  height: 2px; /* Adjust thickness of the line */
  background-color: rgba(52, 73, 255); /* Blue color */
  transition: width 0.3s ease;
}

.dropdown-content a:hover::after {
  width: 80%;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.sample-image {
  position: relative;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.sample-image img {
  width: 100%;
  height: 30dvh;
}

.contact-info-wrapper {
  width: 50dvw;
  display: block;
  text-align: center;
  margin: auto; /* Automatically centers horizontally */
  padding: 20px;
  border: 1px solid rgba(243, 46, 46, 1);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-wrapper h1 {
  font-size: 24px;
  color: rgb(52, 73, 255);
  margin-bottom: 10px;
}

.contact-info-wrapper p {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.8);
  margin: 5px 0;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 1);
  text-align: left;
  opacity: 0;
  animation: fadeIn 2s forwards;
  padding: 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}

.overlay-text span {
  color: rgba(52, 73, 255);
}

.overlay-text p {
  margin-top: 3px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

main {
  display: flex;
  margin: 10px 20px;
  padding: 10px;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.main-text-wrapper {
  display: block;
  padding: 10px;
  margin: 0 auto;
}

.contact-form-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 400px;
  margin: 40px auto;
  padding: 30px;
  border: 1px solid rgba(243, 46, 46, 1);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper h2 {
  font-size: 28px;
  color: rgb(52, 73, 255);
  text-align: center;
  margin-bottom: 20px;
}

.contact-form-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.8);
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid rgb(52, 73, 255);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

.contact-form-wrapper textarea {
  height: 150px;
}

.contact-form-wrapper button {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 18px;
  margin-top: 10px;
  color: white;
  background-color: rgb(52, 73, 255);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form-wrapper button:hover {
  background-color: rgba(200, 40, 40, 1);
}

.mail-status {
  display: block;
  width: 100%;
  margin: 10px;
  font-size: 16px;
}

.mail-status.success {
  color: green;
}

.mail-status.error {
  color: red;
}

.footer {
  background-color: rgba(243, 46, 46, 1);
  color: rgba(255, 255, 255, 1);
  text-align: center;
  padding: 5px;
  font-size: 0.8em;
  width: 100%;
  position: relative;
  bottom: 0;
}

/* Styles for larger screens */
@media (min-width: 750px) {
  .navbar {
    padding: 1em 2em;
    flex-direction: row;
    justify-content: space-between;
  }

  .menu-icon {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
  }

  .nav-links li {
    margin-right: 20px;
  }

  .logo {
    height: 60px;
  }

  .overlay-text {
    font-size: 24px;
  }

  .contact-form-wrapper {
    max-width: 300px;
    margin: 0px auto;
  }

  .footer {
    padding: 10px 0;
    font-size: 1em;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(243, 46, 46, 1);
    min-width: 160px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    right: 0%;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

@media (min-width: 1024px) {
  .contact-form-wrapper {
    max-width: 600px;
  }

  .nav-links a {
    padding: 0.5em 1.5em;
  }
}

/* ~~~~~~~~~~~~~ Webkit ~~~~~~~~~~~~~ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb {
  background-color: #a3a3a3;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}
