﻿/* =========================================================
   CONTACT SECTION - CLEAN & BOLD
========================================================= */
.section-separator {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 2rem 0;
}

#contact {
  background: var(--bg);
  padding: 7rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contact h2 {
  color: var(--accent) !important;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 4rem 0 6rem 0;
  padding: 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  text-align: center;
}

#contact > .contact-wrapper {
  width: 100%;
  padding-bottom: 6rem;
}

.contact-wrapper {
  max-width: 750px;
  width: 100%;
  text-align: center;
  background: rgba(36, 36, 36, 0.4);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#contact h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

#contact > .contact-wrapper > p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(155, 123, 255, 0.16);
  background: rgba(155, 123, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.cta-btn,
.btn {
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, rgba(155, 123, 255, 0.42) 0%, rgba(155, 123, 255, 0.18) 100%);
  color: #fff;
  border: 1px solid rgba(155, 123, 255, 0.5);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Mouse-tracking spotlight glow */
.cta-btn::before,
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 90px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.cta-btn:hover::before,
.btn:hover::before {
  opacity: 1;
}

/* Ensure button content sits above the glow layer */
.cta-btn > *,
.btn > * {
  position: relative;
  z-index: 2;
}

.cta-btn:hover,
.btn:hover {
  background: linear-gradient(135deg, rgba(155, 123, 255, 0.58) 0%, rgba(155, 123, 255, 0.32) 100%);
  border-color: rgba(155, 123, 255, 0.8);
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px rgba(155, 123, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.cta-btn:active,
.btn:active {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn::before,
  .btn::before { display: none; }
}

/* =========================================================
   RESPONSIVE - CONTACT
========================================================= */
@media (max-width: 768px) {
  #contact {
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  #contact h2 {
    font-size: 1.8rem;
  }

  #contact > .contact-wrapper > p {
    font-size: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 1rem;
    font-size: 16px;
  }

  .cta-btn,
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}


