* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  scroll-behavior: smooth;
}

:root {
  color: #fff;
}

body {
  position: relative;
  overflow-y: scroll;
  height: 100vh;
  background: black;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(30px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.358);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#main-header a-main-header {
  margin-left: 40px;
}

#main-header a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  transition: color 0.2s;
}

#main-header a:hover {
  text-shadow: 10px 0 30px #8e2de2;
  text-decoration: 3px underline #8e2de2;
}

#main-header span {
  padding-left: 40px;
  font-weight: 300;
  font-size: 14px;
  margin-left: 8px;
}

#main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  gap: 240px;
}

#contact-footer {
  width: 100%;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 300px;
  padding: 50px 20px;
  margin-bottom: 100px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.icon-header i {
  font-size: 2.5rem;
  color: white;
  margin-right: 15px;
}

.icon-header h2 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}

.contact-item p {
  font-size: 1.1rem;
  text-decoration: underline;
  text-decoration-color: white;
  transition: color 0.2s;
}

.contact-item p:hover {
  color: #8e2de2;
  text-decoration-color: #8e2de2;
}

#main-footer {
  width: 100%;
  position: relative;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(30px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.358);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.social-icons {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.social-icons a {
  color: white;
  font-size: 2rem;
  justify-content: space-evenly;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: #8e2de2;
}

.copyright-text {
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
}

main {
  padding-top: 100px;
  padding-bottom: 200px;
  position: relative;
  z-index: 5;
}

#contact {
  min-height: 100vh;
  width: 100%;
  padding-top: 11vh;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.contact-header {
  margin-bottom: 140px;
  padding: 10px 30px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(30px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.358);
  border: 3px solid rgba(255, 255, 255, 0.801);
  border-radius: 20px;
}

.contact-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-container {
  background: rgba(36, 36, 62, 0.8);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  padding-top: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #8e2de2;
  box-shadow: 0 0 10px rgba(142, 45, 226, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
  padding: 12px 25px;
  background-color: #38384a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.submit-button:hover {
  background-color: #8e2de2;
  box-shadow: 0 0 15px rgba(142, 45, 226, 0.7);
  border-color: #8e2de2;
}

.submit-button i {
  font-size: 1.2em;
}

.success-message {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  text-shadow: 0 0 10px rgba(142, 45, 226, 0.5);
}

.success-message i {
  font-size: 4em;
  color: #4caf50;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.success-message h3 {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
}

.success-message p {
  font-size: 1.1em;
  line-height: 1.5;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.close-success-message-button {
  margin-top: 30px;
  padding: 10px 25px;
  background-color: #38384a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.close-success-message-button:hover {
  background-color: #8e2de2;
  box-shadow: 0 0 12px rgba(142, 45, 226, 0.6);
  border-color: #8e2de2;
}

.contact-form {
  display: block;
}

@media (max-width: 768px) {
  #main-nav {
    gap: 16px;
  }
  #contact-footer {
    flex-direction: column;
    gap: 50px;
    margin-bottom: 50px;
  }
}
