/* ═══════════════════════════════════════════════════════════════
   ONOFREI DUMITRU — CONTACT PAGE CSS
═══════════════════════════════════════════════════════════════ */

:root {
  --navy:        #06080f;
  --navy-2:      #0a0e1a;
  --navy-3:      #0d1320;
  --blue-deep:   #0f1e35;
  --blue-mid:    #1a3a5c;
  --blue-accent: #2463a6;
  --blue-glow:   #3b82f6;
  --blue-soft:   #4a9eff;
  --blue-pale:   #93c5fd;
  --white:       #ffffff;
  --off-white:   #e2eaf7;
  --muted:       #6b82a8;
  --glass-bg:    rgba(255, 255, 255, 0.04);
  --glass-border:rgba(255, 255, 255, 0.09);
  --glass-blur:  blur(24px);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Sora', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }

/* ── CURSOR ─────────────────────────────────────────── */
#cursor {
  width: 8px; height: 8px;
  background: var(--blue-soft);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}
#cursor-follow {
  width: 36px; height: 36px;
  border: 1px solid rgba(74,158,255,0.35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(.23,1,.32,1);
}

/* ── DYNAMIC ISLAND HEADER ──────────────────────────── */
#nav-island {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.island-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 10px 20px 10px 16px;
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 100px;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  white-space: nowrap;
  transition: all 0.3s;
}
.island-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  padding: 4px 12px 4px 8px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.island-nav {
  display: flex; gap: 24px;
}
.island-nav a {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  transition: color 0.25s;
  position: relative; padding: 4px 0;
}
.island-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--blue-soft);
  transition: width 0.3s;
}
.island-nav a:hover,
.island-nav a.active { color: var(--white); }
.island-nav a.active::after,
.island-nav a:hover::after { width: 100%; }

.island-cta {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.status-dot {
  width: 7px; height: 7px;
  background: #22c55e; border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ── BACKGROUND ─────────────────────────────────────── */
.contact-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(36,99,166,0.18), transparent 70%);
  top: -100px; left: -100px;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,158,255,0.1), transparent 70%);
  bottom: 0; right: 0;
  animation: orbFloat2 18s ease-in-out infinite;
}
@keyframes orbFloat  { 0%,100%{transform:translate(0,0);}50%{transform:translate(50px,40px);} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0);}50%{transform:translate(-40px,-60px);} }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(36,99,166,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,99,166,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(6,8,15,0.7) 100%);
}

/* ── MAIN LAYOUT ────────────────────────────────────── */
main {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 40px 60px;
  position: relative; z-index: 1;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
}

/* ── INFO PANEL ─────────────────────────────────────── */
.contact-info { }
.info-label {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--blue-soft);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 24px;
}
.info-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500; line-height: 1.1;
  color: var(--white); margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.info-heading em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
}
.info-text {
  font-size: 14px; font-weight: 300; line-height: 1.9;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  max-width: 380px;
}

/* Channels */
.contact-channels { margin-bottom: 40px; }
.channel-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.channel-item:first-child { border-top: 1px solid rgba(255,255,255,0.05); }
.channel-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-pale);
  flex-shrink: 0;
  background: rgba(74,158,255,0.05);
}
.channel-info {
  display: flex; flex-direction: column; gap: 3px;
}
.channel-label {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--muted);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.channel-value {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.75);
}

/* Quote */
.contact-quote {
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-size: 16px; font-style: italic;
  color: rgba(255,255,255,0.3);
}
.quote-line {
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Socials */
.social-links {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
}
.social-link {
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  transition: color 0.25s;
}
.social-link:hover { color: var(--blue-pale); }
.sep { color: rgba(255,255,255,0.15); }

/* ── GLASS FORM ─────────────────────────────────────── */
.glass-form {
  background: rgba(255,255,255,0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(74,158,255,0.04);
}

.form-header {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.02);
}
.form-tag {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.form-dots {
  display: flex; gap: 6px;
}
.form-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.form-dots span:nth-child(1) { background: rgba(255,97,97,0.4); }
.form-dots span:nth-child(2) { background: rgba(255,190,70,0.4); }
.form-dots span:nth-child(3) { background: rgba(70,200,100,0.4); }

.form-body { padding: 32px; }

.field-group { margin-bottom: 28px; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 10px;
}
.field-wrap { position: relative; }
.field-input {
  width: 100%;
  background: transparent;
  border: none; outline: none;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 300;
  color: var(--white);
  padding: 10px 0;
  transition: all 0.3s;
  resize: none;
}
.field-input::placeholder {
  color: rgba(255,255,255,0.2);
  font-style: italic;
}
.field-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--navy-2) inset;
  -webkit-text-fill-color: var(--white);
}
.field-textarea { min-height: 100px; line-height: 1.7; }
.field-line {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s, transform 0.3s;
  transform-origin: center;
}
.field-wrap:focus-within .field-line {
  background: var(--blue-soft);
  box-shadow: 0 0 10px rgba(74,158,255,0.3);
}

/* Submit button */
.submit-btn {
  width: 100%; margin-top: 8px;
  padding: 16px 28px;
  background: linear-gradient(135deg, rgba(36,99,166,0.4), rgba(74,158,255,0.15));
  border: 1px solid rgba(74,158,255,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400;
  color: var(--white); letter-spacing: 0.05em;
  cursor: none; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(.23,1,.32,1);
}
.submit-btn:hover {
  background: linear-gradient(135deg, rgba(36,99,166,0.6), rgba(74,158,255,0.25));
  border-color: rgba(74,158,255,0.55);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(36,99,166,0.3);
}
.btn-glow {
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(74,158,255,0.12), transparent 60%);
  border-radius: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.submit-btn:hover .btn-glow { opacity: 1; }
.btn-arrow {
  display: flex; align-items: center; color: var(--blue-pale);
  transition: transform 0.3s;
}
.submit-btn:hover .btn-arrow { transform: translateX(4px); }

/* Success state */
.form-success {
  display: none; align-items: center; gap: 14px;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.form-success.show { display: flex; }
.success-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #4ade80; flex-shrink: 0;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.9s cubic-bezier(.23,1,.32,1), transform 0.9s cubic-bezier(.23,1,.32,1);
  transition-delay: 0.1s;
}
.reveal-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.9s cubic-bezier(.23,1,.32,1), transform 0.9s cubic-bezier(.23,1,.32,1);
  transition-delay: 0.25s;
}
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 20px;
  }
  main { padding: 100px 24px 60px; }
}
@media (max-width: 600px) {
  .island-nav { gap: 14px; }
  .island-nav a { font-size: 10px; }
  .island-cta { display: none; }
}
