/* CONTACT — page-scoped styles */

/* Make sure background overlays never block clicks/typing */
.overlay,
#overlay-art,
#overlay-code {
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Also ensure anything INSIDE overlays can’t capture events */
.overlay *,
#overlay-art *,
#overlay-code * {
  pointer-events: none !important;
}

/* Keep the real page content above the overlays */
.topbar,
.page,
.site-footer,
.panel,
.contact-form {
  position: relative;
  z-index: 2;
}

/* Inputs/textarea must be above everything */
.field input,
.field textarea {
  position: relative;
  z-index: 3;
  min-width: 0;
}



.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 160px;
}

.page-header {
  max-width: 520px;
  margin: 0 0 56px;
}

.page-header h1,
.contact-title {
  margin: 0;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 32px;
  margin-top: 12px;
  text-transform: lowercase;
}


.contact-dot {
  display: inline-block;
  transform: translateY(-0.02em);
}

.page-header .lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 52ch;
}

.lead {
  margin-top: 14px;
  opacity: 0.88;
  font-size: 18px;
  line-height: 1.7;
  max-width: 520px;
}



.panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 44px 84px 64px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow: visible; /* allow inner form shadow to render (prevents “kayma” look) */
  box-sizing: border-box;
  justify-content: flex-start;
  isolation: isolate;
}

.panel > * {
  width: 100%;
  max-width: 980px;
}

.panel h2,
.panel h3 {
  margin: 0 0 6px;
}

.panel .hint {
  margin: 0 0 14px;
}

.panel form {
  /* Keep layout control inside .form-grid (prevents double-grid / shifting) */
  display: block;
  width: 100%;
}

.contact-button,
.panel button {
  margin-top: 6px;
  padding: 14px 28px;
  border-radius: 999px;
}

/* Form container */
.contact-form {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  transform: translateZ(0);
  box-sizing: border-box;
  overflow: visible; /* let inner shadows breathe; layout is still constrained by width */
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  grid-template-areas:
    "name message"
    "email message"
    "actions actions";
  gap: 18px 28px;
  align-items: start;
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.field label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* IMPORTANT: ensure inputs are always clickable/typable */
.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.65);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  pointer-events: auto;
  position: relative;
  z-index: 3;
  min-width: 0;
}

.field textarea {
  resize: vertical;
  width: 100%;
  min-height: 320px;
  height: 320px;
}

/* Extra specificity to win over any global textarea rules */
.contact-form .field textarea,
.panel textarea,
textarea[name="message"],
textarea#message {
  width: 100% !important;
  min-height: 320px !important;
  height: 320px !important;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

/* Place fields */
.field:nth-of-type(1) { grid-area: name; }
.field:nth-of-type(2) { grid-area: message; }
.field:nth-of-type(2) {
  align-self: stretch;
  width: 100%;
}
.field:nth-of-type(3) { grid-area: email; }

.actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.muted {
  opacity: 0.75;
}

.hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.contact-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  display: inline-block;
  margin-top: 18px;
}

/* Footer (çizgi daha kısa + diğerleriyle aynı hissiyat) */
.site-footer {
  padding: 0 0 46px;
}

.footer-divider {
  width: 100%;
  max-width: 980px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 90px auto 26px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 14px;
  opacity: 0.75;
}

.footer-inner span:nth-child(1) { text-align: left; }
.footer-inner span:nth-child(2) { text-align: center; }
.footer-inner span:nth-child(3) { text-align: right; }

@media (max-width: 820px) {
  .form-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "email"
      "message"
      "actions";
  }

  .actions {
    justify-content: flex-start;
  }

  .field textarea {
    min-height: 240px;
    height: 240px;
  }

  .contact-form .field textarea {
    min-height: 240px !important;
    height: 240px !important;
  }
}

@media (max-width: 700px) {
  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
    padding: 0 16px;
  }

  .footer-inner span {
    text-align: center !important;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 84px 16px 110px;
  }
}

@media (max-width: 900px) {
  .panel {
    padding: 34px 28px 44px;
  }
}