/* static/css/style.css */

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
html,body { height: 100%; background: #0b0f17; color: #e6f0ff; -webkit-font-smoothing:antialiased; }

/* Animated gradient background */
.bg {
  position: fixed; inset: 0;
  background: radial-gradient(1200px 800px at 10% 20%, rgba(80,140,255,0.12), transparent 10%),
              radial-gradient(900px 600px at 80% 80%, rgba(200,80,220,0.12), transparent 10%),
              linear-gradient(180deg, #081021 0%, #0b0f17 40%);
  filter: blur(40px) saturate(120%);
  transform: scale(1.05);
  z-index: 0;
  animation: floatBG 10s ease-in-out infinite alternate;
}
@keyframes floatBG { from { transform: scale(1.03) translateY(0); } to { transform: scale(1.07) translateY(-10px); } }

.container { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; z-index: 2; padding: 2rem; }

/* Neon card */
.neon-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 14, 22, 0.45);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(3,6,12,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  border: 1px solid rgba(120,180,255,0.06);
  backdrop-filter: blur(8px) saturate(120%);
  position: relative;
  overflow: hidden;
}

/* Neon stroke on edges */
.neon-card::before {
  content: "";
  position: absolute; inset: -2px;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(80,160,255,0.25), rgba(160,90,255,0.25), rgba(255,110,200,0.25));
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 16px;
  padding: 2px;
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* Logo */
.logo-wrap { display:flex; justify-content:center; margin-bottom: 8px; }
.logo { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(80,150,255,0.12)); }

/* Title */
.title { text-align:center; font-weight: 700; font-size: 20px; margin-top: 6px; letter-spacing: 0.6px; color: #e9f7ff; }
.tagline { text-align:center; font-size: 12px; opacity: 0.75; margin-bottom: 18px; }

/* inputs */
.field { display:block; margin: 12px 0; }
.field span { display:block; font-size: 11px; opacity: 0.75; margin-bottom:6px; color: #cfe7ff; }
input[type="text"], input[type="password"], textarea {
  width:100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(10,12,16,0.5);
  color: #eaf6ff;
  outline: none;
  font-size: 14px;
  transition: box-shadow .15s, border-color .15s;
}
input:focus, textarea:focus {
  box-shadow: 0 0 18px rgba(120,180,255,0.08), 0 0 28px rgba(160,90,255,0.04);
  border-color: rgba(140,200,255,0.22);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.65);
  color: #eaf6ff;
  outline: none;
  font-size: 14px;
  transition: box-shadow .15s, border-color .15s, background .3s;
  display: block;
}

.field input:focus {
  border-color: rgba(140, 200, 255, 0.25);
  box-shadow: 0 0 18px rgba(120, 180, 255, 0.08), 0 0 28px rgba(160, 90, 255, 0.04);
  background: rgba(12, 16, 24, 0.8);
}

/* Placeholder text match */
.field input::placeholder {
  color: #cfe7ffb3;
}

/* Neon button */
.btn {
  display:inline-block;
  width:100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none; cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
}
.btn.neon {
  background: linear-gradient(90deg, rgba(80,160,255,0.12), rgba(200,100,255,0.12));
  color: #e9f7ff;
  box-shadow: 0 6px 26px rgba(80,140,255,0.08), 0 0 40px rgba(160,90,255,0.02);
  border: 1px solid rgba(140,200,255,0.12);
}
.btn.neon:hover { transform: translateY(-2px); }

/* message */
.message { text-align:center; margin-top:10px; font-size:13px; opacity:0.92; color:#ffdbdb; }

/* footer link */
.footer-links { text-align:center; margin-top:12px; }
.footer-links a { color: #bfe2ff; text-decoration: underline; opacity:0.85; }

/* Floating contact bubble */
.contact-bubble {
  position: fixed; right: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:22px;
  background: linear-gradient(180deg, rgba(120,200,255,0.12), rgba(200,120,255,0.06));
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 6px 20px rgba(80,140,255,0.06);
  backdrop-filter: blur(6px);
  z-index: 50;
}

/* contact popup */
.contact-popup {
  position: fixed; right: 22px; bottom: 92px;
  width: 320px; max-width: calc(100% - 44px);
  background: rgba(6, 10, 16, 0.75);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(120,180,255,0.06);
  backdrop-filter: blur(6px) saturate(130%);
  display: none; z-index: 60;
}

/* header row */
.contact-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; color:#dff0ff; }
.close-x { background: transparent; border: none; color: #cde8ff; cursor:pointer; font-size:16px; }

/* contact inputs */
.contact-popup input, .contact-popup textarea {
  width:100%; margin:6px 0; padding:10px; border-radius:8px; border:1px solid rgba(255,255,255,0.04);
  background: rgba(10,12,16,0.42); color: #eaf6ff;
}
.contact-actions { margin-top:8px; }

/* small responsiveness */
@media (max-width:420px){
  .neon-card { padding: 18px; max-width: 92%; }
  .logo { width: 68px; height:68px; }
  .contact-popup { right: 12px; left: 12px; bottom: 78px; }
}
