/* ============================================================
   CONTACT PAGE — contact.css
   ============================================================ */

:root {
  --bg:          #050505;
  --bg-soft:     #0d0d0f;
  --bg-card:     rgba(255, 255, 255, 0.04);
  --bg-card-mid: rgba(18, 22, 40, 0.97);
  --text:        #f4f4f5;
  --text-muted:  #a1a1aa;
  --line:        rgba(255, 255, 255, 0.09);
  --accent:      #60a5fa;
  --radius:      18px;
  --nav-height:  72px;
  --container:   1140px;
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ────────────────────────────────────────────── */
html { scrollbar-width: thin; scrollbar-color: rgba(96,165,250,.35) transparent; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    rgba(56,189,248,.55) 0%,
    rgba(96,165,250,.65) 30%,
    rgba(129,140,248,.65) 60%,
    rgba(168,85,247,.55) 100%);
  border-radius: 99px;
}

/* ── Page transition overlay ────────────────────────────── */
.pt-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; pointer-events: none;
}
.pt-col {
  position: absolute;
  top: 0; bottom: 0;
  width: calc(100% / 7 + 2px);
  transform: translateY(-100%);
  will-change: transform;
  animation-fill-mode: both;
}
.pt-col:nth-child(1) { left: calc(100% / 7 * 0);       background: #38bdf8; }
.pt-col:nth-child(2) { left: calc(100% / 7 * 1 - 1px); background: #57aef9; }
.pt-col:nth-child(3) { left: calc(100% / 7 * 2 - 1px); background: #6b9ef9; }
.pt-col:nth-child(4) { left: calc(100% / 7 * 3 - 1px); background: #7d8ff7; }
.pt-col:nth-child(5) { left: calc(100% / 7 * 4 - 1px); background: #9080f4; }
.pt-col:nth-child(6) { left: calc(100% / 7 * 5 - 1px); background: #a66df2; }
.pt-col:nth-child(7) { left: calc(100% / 7 * 6 - 1px); background: #b855f7; }
.pt-overlay.pt-enter .pt-col {
  animation: ptDropIn 0.55s cubic-bezier(0.76,0,0.24,1) both;
}
.pt-overlay.pt-enter .pt-col:nth-child(1) { animation-delay: 0.00s; }
.pt-overlay.pt-enter .pt-col:nth-child(2) { animation-delay: 0.06s; }
.pt-overlay.pt-enter .pt-col:nth-child(3) { animation-delay: 0.12s; }
.pt-overlay.pt-enter .pt-col:nth-child(4) { animation-delay: 0.18s; }
.pt-overlay.pt-enter .pt-col:nth-child(5) { animation-delay: 0.24s; }
.pt-overlay.pt-enter .pt-col:nth-child(6) { animation-delay: 0.30s; }
.pt-overlay.pt-enter .pt-col:nth-child(7) { animation-delay: 0.36s; }
.pt-overlay.pt-exit .pt-col {
  transform: translateY(0%);
  animation: ptRiseOut 0.5s cubic-bezier(0.76,0,0.24,1) both;
}
.pt-overlay.pt-exit .pt-col:nth-child(1) { animation-delay: 0.00s; }
.pt-overlay.pt-exit .pt-col:nth-child(2) { animation-delay: 0.06s; }
.pt-overlay.pt-exit .pt-col:nth-child(3) { animation-delay: 0.12s; }
.pt-overlay.pt-exit .pt-col:nth-child(4) { animation-delay: 0.18s; }
.pt-overlay.pt-exit .pt-col:nth-child(5) { animation-delay: 0.24s; }
.pt-overlay.pt-exit .pt-col:nth-child(6) { animation-delay: 0.30s; }
.pt-overlay.pt-exit .pt-col:nth-child(7) { animation-delay: 0.36s; }

@keyframes ptDropIn  { from { transform: translateY(-100%); } to { transform: translateY(0%);   } }
@keyframes ptRiseOut { from { transform: translateY(0%);    } to { transform: translateY(100%); } }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(5,5,5,0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrapper {
  min-height: var(--nav-height);
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(180, 200, 255, 0.6);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-logo:hover { color: rgba(220, 235, 255, 0.85); }

.nav-logo-name {
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 40%, #818cf8 75%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating lang switcher */
.lang-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(120, 170, 255, 0.22);
  background: rgba(10, 14, 28, 0.75);
  backdrop-filter: blur(12px);
  color: #dbeafe;
  cursor: pointer;
  transition: 0.3s ease;
  font: inherit;
  font-size: 0.88rem;
}

.lang-float-btn:hover {
  background: rgba(80, 140, 255, 0.14);
  border-color: rgba(140, 190, 255, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.18);
}

.lang-float-btn.active {
  background: linear-gradient(90deg, rgba(59,130,246,0.25), rgba(129,140,248,0.25));
  border-color: rgba(96, 165, 250, 0.55);
  color: #ffffff;
  box-shadow:
    0 0 12px rgba(96, 165, 250, 0.3),
    0 0 24px rgba(129, 140, 248, 0.18);
}

.lang-flag {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.nav-menu {
  display: flex; align-items: center; gap: 6px;
}

.nav-menu a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(180,195,220,.6);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: rgba(240,245,255,.92);
  border-color: transparent;
  background: transparent;
}

/* ── Main layout ──────────────────────────────────────────── */
.contact-main {
  padding: calc(var(--nav-height) + 64px) 0 80px;
  min-height: 100vh;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

/* ── Form column ──────────────────────────────────────────── */
.contact-form-header {
  margin-bottom: 40px;
}

.contact-form-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 0.22em; flex-wrap: wrap;
}

.contact-form-header h1 .plain  { color: #fff; }

.contact-form-header h1 .accent {
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 40%, #818cf8 75%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-form-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Form ─────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180,210,255,.75);
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(160,180,210,.5);
}

input, textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(120,160,255,.15);
  background: rgba(16,20,38,.85);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: none;
}

input::placeholder, textarea::placeholder {
  color: rgba(160,175,200,.45);
}

input:focus, textarea:focus {
  border-color: rgba(96,165,250,.55);
  background: rgba(20,26,50,.95);
  box-shadow: 0 0 0 3px rgba(96,165,250,.1), 0 0 18px rgba(96,165,250,.08);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 28px;
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f8fbff;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 45%, #818cf8 100%);
  border: none;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 24px rgba(59,130,246,.25);
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(59,130,246,.32);
}

.submit-btn svg {
  transition: transform var(--transition);
}

.submit-btn:hover svg {
  transform: translate(2px, -2px);
}

/* ── Aside column ─────────────────────────────────────────── */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.aside-block {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18,22,40,.97), rgba(12,15,30,.98));
  border: 1px solid rgba(120,160,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

.aside-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e2eeff;
  margin-bottom: 10px;
}

.aside-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Email bar */
.email-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 11px;
  background: rgba(8,10,22,.9);
  border: 1px solid rgba(120,160,255,.14);
  margin-bottom: 14px;
  gap: 10px;
  cursor: default;
}

.email-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(210,225,255,.85);
  font-family: 'Courier New', monospace;
  min-width: 0;
  overflow: hidden;
}

.email-bar-inner svg {
  flex-shrink: 0;
  color: rgba(96,165,250,.65);
}

.copy-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(120,160,255,.18);
  background: rgba(40,60,100,.4);
  color: rgba(180,210,255,.7);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
  background: rgba(60,90,150,.55);
  border-color: rgba(96,165,250,.38);
  color: #fff;
}

.copy-btn.copied {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.35);
  color: #4ade80;
}

.mailto-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(96,165,250,.8);
  font-weight: 500;
  transition: color var(--transition);
}

.mailto-btn:hover {
  color: #93c5fd;
}

/* Social row */
.aside-social h3 { margin-bottom: 14px; }

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(120,160,255,.18);
  background: rgba(40,55,90,.35);
  font-size: 0.88rem;
  color: rgba(200,220,255,.8);
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-pill:hover {
  background: rgba(60,90,140,.5);
  border-color: rgba(96,165,250,.38);
  color: #fff;
  transform: translateY(-2px);
}

.social-pill img {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(.75) sepia(.5) saturate(3) hue-rotate(185deg);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-aside {
    position: static;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-form-header h1 {
    font-size: 2rem;
  }
}
.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(180, 195, 220, 0.85);
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}