/* Contact Page Styles */
.contact {
  min-height: 100vh;
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(255, 44, 223, 0.1) 0%, rgba(13, 13, 29, 0) 50%),
    linear-gradient(235deg, rgba(0, 255, 255, 0.1) 0%, rgba(13, 13, 29, 0) 70%);
  z-index: -1;
}

.page-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--fuchsia));
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
  z-index: 0;
}

.contact-info h2 {
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-info p {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  position: relative;
  z-index: 1;
  padding-left: 3.5rem;
}

.icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 44, 223, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 44, 223, 0.5);
}

.contact-method h3 {
  margin-bottom: 0.5rem;
  color: var(--electric-yellow);
}

.contact-method p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--neon-blue);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

.contact-form-container {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 44, 223, 0.1) 0%, transparent 100%);
  z-index: 0;
}

.contact-form {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--header-font);
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--neon-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: rgba(13, 13, 29, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 5px;
  color: var(--white);
  font-family: var(--body-font);
  font-size: 1rem;
  resize: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.contact-form .btn {
  margin-top: 1rem;
}

/* Popup styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 13, 29, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--card-bg);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
  animation: popupIn 0.5s forwards;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

@keyframes popupIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  transition: var(--transition);
}

.close-popup:hover {
  color: var(--fuchsia);
}

.popup-content h2 {
  color: var(--neon-blue);
  margin-bottom: 1rem;
}

.popup-content p {
  margin-bottom: 2rem;
}

.close-btn {
  margin: 0 auto;
}

/* Icons */
.email-icon::before,
.location-icon::before,
.social-icon::before,
.twitter::before,
.discord::before,
.instagram::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

.email-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF2CDF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.location-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF2CDF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.social-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF2CDF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'%3E%3C/path%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'%3E%3C/path%3E%3Cline x1='6' y1='1' x2='6' y2='4'%3E%3C/line%3E%3Cline x1='10' y1='1' x2='10' y2='4'%3E%3C/line%3E%3Cline x1='14' y1='1' x2='14' y2='4'%3E%3C/line%3E%3C/svg%3E");
}

.twitter::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300FFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z'%3E%3C/path%3E%3C/svg%3E");
}

.discord::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300FFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 9H4a9 9 0 0 1 9-9v1.5M9.5 4H11a9 9 0 0 1 9 9h-1.5'%3E%3C/path%3E%3Cpath d='M5.5 15H4a9 9 0 0 0 9 9v-1.5M15 18.5h1.5a9 9 0 0 0 9-9H24'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='2.5'%3E%3C/circle%3E%3C/svg%3E");
}

.instagram::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300FFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .contact {
    padding: 120px 0 80px;
  }
  
  .contact-info,
  .contact-form-container {
    padding: 2rem;
  }
  
  .contact-method {
    padding-left: 3rem;
  }
}