:root {
  --bg: #060a16;
  --bg-soft: #0a1128;
  --navy: #0b1d4a;
  --navy-deep: #071335;
  --blue: #0d4fd1;
  --blue-bright: #2f6bff;
  --cyan: #22d3ee;
  --cyan-soft: #7fe9ff;
  --ink: #eef3ff;
  --ink-dim: #93a2c4;
  --line: rgba(148, 168, 220, .14);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(47, 107, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 107, 255, .045) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.page-glow { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(30px); }
.page-glow-one { width: 650px; height: 650px; top: -280px; right: -240px; background: radial-gradient(circle, rgba(13, 79, 209, .3), transparent 67%); }
.page-glow-two { width: 500px; height: 500px; bottom: -270px; left: -220px; background: radial-gradient(circle, rgba(34, 211, 238, .13), transparent 68%); }

.contact-nav {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1320px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(34, 211, 238, .38)); }
.brand-name { font: 700 20px/1 "Space Grotesk", sans-serif; }
.brand-name span { color: var(--cyan); }

.contact-nav-links { display: flex; align-items: center; gap: 30px; }
.contact-nav-links a { color: var(--ink-dim); font-size: 14px; transition: color .25s ease; }
.contact-nav-links a:hover, .contact-nav-links a[aria-current="page"] { color: var(--cyan-soft); }
.nav-email { padding: 10px 18px; border: 1px solid rgba(34, 211, 238, .22); border-radius: 999px; color: var(--cyan-soft); font-size: 13px; transition: background .25s ease, border-color .25s ease; }
.nav-email:hover { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .5); }

main { position: relative; z-index: 2; padding-top: 84px; }

.contact-hero {
  display: grid;
  width: min(1320px, calc(100% - 48px));
  min-height: calc(100vh - 156px);
  margin: 0 auto;
  padding: 72px 0 80px;
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
}

.contact-intro { animation: intro-in .9s cubic-bezier(.16, 1, .3, 1) both; }
.eyebrow { display: inline-flex; margin-bottom: 24px; align-items: center; gap: 10px; color: var(--cyan-soft); font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .14em; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: pulse 1.8s ease-in-out infinite; }

.contact-intro h1 { max-width: 650px; font: 600 clamp(46px, 5.6vw, 78px)/1.02 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.contact-intro h1 span { background: linear-gradient(100deg, var(--cyan), var(--blue-bright), var(--cyan-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-intro > p { max-width: 590px; margin-top: 26px; color: var(--ink-dim); font-size: 17px; line-height: 1.75; }

.contact-details { display: grid; margin-top: 42px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-card { display: flex; min-width: 0; padding: 17px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .025); transition: transform .25s ease, border-color .25s ease; }
a.detail-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .32); }
.detail-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: linear-gradient(145deg, rgba(47, 107, 255, .18), rgba(34, 211, 238, .12)); color: var(--cyan-soft); font: 600 12px/1 "JetBrains Mono", monospace; }
.detail-card small, .detail-card strong { display: block; overflow-wrap: anywhere; }
.detail-card small { margin-bottom: 5px; color: var(--ink-dim); font-size: 11px; }
.detail-card strong { font-size: 12px; font-weight: 600; }

.project-types { display: flex; margin-top: 30px; flex-wrap: wrap; gap: 9px; }
.project-types span { padding: 8px 11px; border: 1px solid rgba(148, 168, 220, .12); border-radius: 999px; color: #8190b3; font: 500 10px/1 "JetBrains Mono", monospace; }

.form-shell { overflow: hidden; border: 1px solid rgba(126, 233, 255, .16); border-radius: 24px; background: linear-gradient(145deg, rgba(12, 25, 58, .93), rgba(6, 12, 29, .96)); box-shadow: 0 35px 90px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .05); animation: form-in 1s .15s cubic-bezier(.16, 1, .3, 1) both; }
.form-topline { display: flex; padding: 18px 22px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.form-topline div { display: flex; gap: 6px; }
.form-topline div span { width: 7px; height: 7px; border-radius: 50%; background: #34405d; }
.form-topline div span:first-child { background: var(--cyan); box-shadow: 0 0 9px rgba(34, 211, 238, .65); }
.form-topline small { color: #7180a4; font: 500 10px/1 "JetBrains Mono", monospace; letter-spacing: .12em; }

form { display: grid; padding: clamp(24px, 4vw, 38px); gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; min-width: 0; gap: 9px; }
.field > span { color: #bac7e4; font-size: 12px; font-weight: 600; }
.field b { color: var(--cyan); }

.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid rgba(148, 168, 220, .16); border-radius: 12px; outline: 0; background: rgba(255, 255, 255, .035); color: var(--ink); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.field input, .field select { height: 50px; padding: 0 15px; }
.field textarea { min-height: 135px; padding: 14px 15px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #667391; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan-soft) 50%), linear-gradient(135deg, var(--cyan-soft) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--navy-deep); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(34, 211, 238, .58); background-color: rgba(34, 211, 238, .045); box-shadow: 0 0 0 4px rgba(34, 211, 238, .07); }

.submit-button { display: flex; width: 100%; min-height: 54px; border: 0; border-radius: 13px; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--blue-bright), var(--cyan)); color: #04101f; font-weight: 700; cursor: pointer; box-shadow: 0 16px 35px -15px rgba(34, 211, 238, .7); transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; }
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -15px rgba(34, 211, 238, .85); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.submit-button i { font-size: 20px; font-style: normal; transition: transform .25s ease; }
.submit-button:hover i { transform: translateX(4px); }
.form-status { display: none; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.form-status.visible { display: block; }
.form-status.success { border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .08); color: var(--cyan-soft); }
.form-status.error { border: 1px solid rgba(255, 102, 128, .3); background: rgba(255, 102, 128, .08); color: #ff9bae; }
.form-note { color: #687695; font-size: 10px; text-align: center; }
.honeypot { position: absolute !important; left: -9999px !important; }

.contact-footer { position: relative; z-index: 2; display: flex; width: min(1320px, calc(100% - 48px)); min-height: 72px; margin: 0 auto; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #667391; font-size: 12px; }
.contact-footer a { color: var(--ink-dim); transition: color .25s ease; }
.contact-footer a:hover { color: var(--cyan-soft); }
.contact-footer a span { margin-left: 7px; }

@keyframes intro-in { from { opacity: 0; transform: translateX(-55px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes form-in { from { opacity: 0; transform: translateY(-50px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.7); } }

@media (max-width: 980px) {
  .contact-nav { width: min(100% - 36px, 760px); }
  .contact-nav-links { display: none; }
  .contact-hero { width: min(100% - 36px, 760px); padding-top: 55px; grid-template-columns: 1fr; gap: 55px; }
  .contact-intro h1 { max-width: 720px; }
  .contact-footer { width: min(100% - 36px, 760px); }
}

@media (max-width: 600px) {
  .page-grid { background-size: 46px 46px; }
  .contact-nav { width: calc(100% - 28px); min-height: 72px; }
  main { padding-top: 72px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .nav-email { padding: 9px 12px; font-size: 10px; }
  .contact-hero { width: calc(100% - 28px); padding: 48px 0 62px; gap: 42px; }
  .contact-intro h1 { font-size: clamp(38px, 12.3vw, 55px); }
  .contact-intro > p { font-size: 15px; }
  .contact-details, .field-row { grid-template-columns: 1fr; }
  .contact-details { margin-top: 32px; }
  .form-shell { border-radius: 19px; }
  form { padding: 22px 17px; }
  .contact-footer { width: calc(100% - 28px); padding: 18px 0; flex-direction: column; align-items: flex-start; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
