/* ============================================================
   CONTACT — Work With Me Page
   ============================================================ */

:root {
  --bg: #08090c;
  --bg-subtle: #0e1017;
  --teal: #00e5cc;
  --teal-dim: rgba(0, 229, 204, 0.15);
  --teal-glow: rgba(0, 229, 204, 0.3);
  --text-primary: #e8eaed;
  --text-secondary: rgba(232, 234, 237, 0.55);
  --text-dim: rgba(232, 234, 237, 0.25);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Back Navigation ---- */
.back-nav {
  position: relative;
  z-index: 10;
  padding: 2vh 32px;
  flex-shrink: 0;
}

.back-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: #0a66c2;
}

/* ---- Contact Section ---- */
.contact-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2vh 24px 4vh;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 35% 45%, rgba(0, 229, 204, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 65% 55%, rgba(74, 127, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle, rgba(179, 102, 255, 0.06) 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.06); }
}

/* ---- Contact Card ---- */
.contact-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  background: rgba(14, 16, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeSlideUp 0.6s ease both;
}

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

/* ---- Header ---- */
.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hidden {
  display: none;
}

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

.form-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.form-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: rgba(10, 102, 194, 0.4);
  background: rgba(10, 102, 194, 0.04);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(232,234,237,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: #0e1017;
  color: var(--text-primary);
}

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

.form-submit {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: #0a66c2;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 4px;
}

.form-submit:hover {
  background: #0856a2;
  box-shadow: 0 0 24px rgba(10, 102, 194, 0.3);
}

.form-submit:active {
  transform: scale(0.98);
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .back-nav {
    padding: 24px 24px;
  }

  .contact-section {
    padding: 24px 16px 40px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-subtitle {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .back-nav {
    padding: 16px 20px;
  }

  .contact-card {
    padding: 24px 18px;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-glow {
    width: 400px;
    height: 400px;
  }
}
