.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  background: #1a1a2e;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(58, 1, 92, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.contact-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0rem,
    rgba(58, 1, 92, 0.02) 0.1rem,
    transparent 0.2rem
  );
  animation: slidePattern 30s linear infinite;
  pointer-events: none;
}

@keyframes slidePattern {
  to { transform: translateX(2rem); }
}

.contact-content {
  max-width: clamp(50rem, 80vw, 75rem);
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 
    0 2rem 6rem rgba(0, 0, 0, 0.8),
    inset 0 0.1rem 0 rgba(139, 92, 246, 0.3),
    0 0 0 0.1rem rgba(139, 92, 246, 0.1);
  overflow: hidden;
  display: flex;
  backdrop-filter: blur(2rem);
  -webkit-backdrop-filter: blur(2rem);
  position: relative;
  z-index: 1;
}

.contact-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.2rem;
  background: var(--accent-gradient);
  border-radius: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0 0;
  box-shadow: 0 0 2rem rgba(58, 1, 92, 0.8);
}

.form-left-side {
  flex: 1;
  padding: clamp(2rem, 5vw, 4rem);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-black);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: clamp(3rem, 8vw, 5rem);
  height: 0.25rem;
  background: var(--accent-gradient);
  border-radius: 0.125rem;
  box-shadow: 0 0 1rem rgba(58, 1, 92, 0.8);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.6;
  max-width: 28rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.hidden {
  display: none;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input {
  padding: clamp(0.875rem, 2.5vw, 1.125rem) clamp(1rem, 3vw, 1.25rem);
  border: 0.125rem solid rgba(139, 92, 246, 0.3);
  border-radius: clamp(0.5rem, 2vw, 0.875rem);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-light);
  line-height: 1.5;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 
    0 0 0 0.1875rem rgba(58, 1, 92, 0.3),
    0 0 2rem rgba(58, 1, 92, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
}

.form-textarea {
  min-height: clamp(7.5rem, 15vw, 10rem);
  resize: vertical;
}

.submit-btn {
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--accent-gradient);
  color: var(--neutral-light);
  border: none;
  border-radius: clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: clamp(1rem, 3vw, 1.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0.5rem 2rem rgba(58, 1, 92, 0.4);
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover {
  transform: translateY(-0.25rem) scale(1.02);
  box-shadow: 0 1rem 3rem rgba(58, 1, 92, 0.6);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(-0.125rem) scale(1.01);
}

.submit-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transform: none;
}

.contact-right-side {
  flex: 1;
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(0, 0, 0, 0.1);
  color: var(--neutral-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-left: 0.1rem solid rgba(139, 92, 246, 0.2);
}

.contact-right-side::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(58, 1, 92, 0.08) 90deg,
    transparent 180deg,
    rgba(139, 92, 246, 0.05) 270deg,
    transparent 360deg
  );
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}

.contact-info-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--fw-black);
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

.contact-info-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: clamp(2.5rem, 6vw, 4rem);
  height: 0.25rem;
  background: var(--accent-gradient);
  border-radius: 0.125rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: rgba(139, 92, 246, 0.1);
  border-radius: clamp(0.75rem, 2vw, 1.25rem);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  transition: all 0.4s ease;
  border: 0.1rem solid rgba(139, 92, 246, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-item:hover {
  background: rgba(139, 92, 246, 0.15);
  transform: translateY(-0.25rem) scale(1.02);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0.5rem 2rem rgba(58, 1, 92, 0.3);
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item i {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  width: clamp(2rem, 4vw, 2.5rem);
  height: clamp(2rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: clamp(0.375rem, 1vw, 0.5rem);
  flex-shrink: 0;
}

.contact-item .fa-envelope {
  background: #8b5cf6;
  color: white;
}

.contact-item .fa-facebook {
  background: #1877f2;
  color: white;
}

.popup-hidden {
  display: none;
}


.contact-details h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h6);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-family: var(--font-body);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: #8b5cf6;
  text-decoration: underline;
  text-decoration-color: #8b5cf6;
}

.success-message {
  display: none;
  background: #10b981;
  color: var(--neutral-light);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: var(--fw-medium);
  font-family: var(--font-body);
  border: 1px solid #059669;
}

.success-message.show {
  display: block;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .contact-content {
    max-width: 60rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    min-height: auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
  }

  .contact-section::after {
    animation-duration: 45s;
  }

  .contact-content {
    flex-direction: column;
    max-width: 100%;
  }

  .contact-right-side {
    border-left: none;
    border-top: 0.1rem solid rgba(139, 92, 246, 0.2);
  }

  .contact-item:hover {
    transform: translateY(-0.125rem) scale(1.01);
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .form-left-side,
  .contact-right-side {
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  .contact-content {
    border-radius: 1.5rem;
  }

  .contact-content::before {
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.75rem;
  }

  .contact-details {
    width: 100%;
  }

  .contact-details p {
    word-break: break-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-section::after,
  .contact-right-side::before {
    animation: none;
  }

  .section-title::after,
  .contact-info-title::after {
    box-shadow: none;
  }

  .contact-item::before,
  .submit-btn::before {
    transition: none;
  }
}
