#contact {
  background: var(--bg-foot);
  padding: 80px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.contact-heading {
  font-family: var(--sans);
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.contact-sub {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--text-gray);
  text-align: center;
  max-width: 600px;
  margin-top: -24px;
}

.form-wrapper {
  background: var(--card-bg2);
  border: 1px solid rgba(255, 45, 149, 0.2);
  border-radius: 12px;
  padding: 40px;
  width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-gray);
}

.field-input {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: #fff;
  outline: none;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

.field-input::placeholder { color: var(--text-dimmer); }

.field-input:focus {
  border-color: rgba(255, 45, 149, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.1);
}

textarea.field-input {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(270deg, var(--pink), var(--purple));
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  opacity: .9;
  box-shadow: 0 0 30px rgba(255, 45, 149, 0.4);
  transform: translateY(-1px);
}

.submit-btn:active { transform: translate(1px, 2px) scale(0.98) !important; }

.submit-btn span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: color .2s, border-color .2s;
}

.social-link:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.social-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover::after { width: 100%; }

/* ── Footer ── */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 0 0;
  width: 100%;
}

.footer-deco {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dimmest);
  letter-spacing: 2px;
}

.footer-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dimmer);
}

/* ── Contact confirmation ── */
#contact-confirm[hidden],
#contact-form[hidden] { display: none !important; }

.contact-confirm {
  position: relative;
  overflow: hidden;
  background: var(--card-bg2);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 48px 40px;
  width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: confirmIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             borderFlow 3s 0.6s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.1), 0 0 60px rgba(176, 38, 255, 0.06);
}

/* Scanline sweep on reveal */
.contact-confirm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 240, 255, 0.03) 3px,
    rgba(0, 240, 255, 0.03) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Neon border pulse */
@keyframes borderFlow {
  0%, 100% { border-color: rgba(0, 240, 255, 0.5); box-shadow: 0 0 24px rgba(0,240,255,0.1), 0 0 60px rgba(176,38,255,0.06); }
  50%       { border-color: rgba(176, 38, 255, 0.5); box-shadow: 0 0 32px rgba(176,38,255,0.15), 0 0 80px rgba(0,240,255,0.08); }
}

@keyframes confirmIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.5);
  animation: iconPop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             iconPulse 2s 0.65s ease-in-out infinite;
}

@keyframes iconPop {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0,240,255,0.5), 0 0 32px rgba(0,240,255,0.2); }
  50%       { box-shadow: 0 0 32px rgba(0,240,255,0.8), 0 0 64px rgba(176,38,255,0.4); }
}

.confirm-title {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
  min-height: 1.4em;
}

.confirm-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 3px;
  vertical-align: middle;
  animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.confirm-msg {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-gray);
  text-align: center;
  max-width: 420px;
  line-height: 1.6;
  animation: fadeUp 0.4s 0.7s both;
  opacity: 0;
  animation-fill-mode: both;
}

.confirm-reset {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  background: none;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
  animation: fadeUp 0.4s 1s both;
  opacity: 0;
  animation-fill-mode: both;
}

.confirm-reset:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

/* Loading state */
.submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.submit-btn.loading #submit-icon {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}