html,body{
  margin:0;
  width:100%;
  min-height:100%;
  background:#020617;
  color:#e5f7ff;
  font-family:"Rajdhani","Segoe UI",Arial,sans-serif;
}

body{
  overflow:hidden;
}

.contact-page{
  position:relative;
  width:100vw;
  height:100vh;
  overflow:hidden;
  background:
    radial-gradient(circle at 22% 28%, rgba(34,211,238,.16), transparent 34%),
    radial-gradient(circle at 78% 60%, rgba(251,191,36,.12), transparent 34%),
    linear-gradient(135deg,#020617,#030712 52%,#07111f);
}

.grid{
  position:absolute;
  inset:-20%;
  background-image:
    linear-gradient(rgba(34,211,238,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.08) 1px, transparent 1px);
  background-size:54px 54px;
  transform:perspective(700px) rotateX(62deg) translateY(14%);
  transform-origin:center bottom;
  opacity:.34;
}

.scanline{
  position:absolute;
  inset:0;
  height:18vh;
  background:linear-gradient(to bottom, transparent, rgba(34,211,238,.08), transparent);
  animation:scan 4.2s infinite linear;
  opacity:.55;
  z-index:2;
  pointer-events:none;
}

.terminal-intro{
  position:absolute;
  left:6vw;
  top:10vh;
  width:min(720px,44vw);
  z-index:3;
}

.terminal-label{
  display:inline-flex;
  padding:8px 12px;
  border:1px solid rgba(125,249,255,.35);
  color:#67e8f9;
  font-size:13px;
  letter-spacing:.18em;
  background:rgba(2,6,23,.62);
  box-shadow:0 0 30px rgba(34,211,238,.18);
}

h1{
  margin:22px 0 16px;
  font-size:clamp(42px,5vw,82px);
  line-height:.92;
  letter-spacing:-.04em;
  color:#fff;
  text-shadow:0 0 24px rgba(34,211,238,.70),0 0 90px rgba(251,191,36,.25);
}

.typed-intro{
  min-height:145px;
  font-size:clamp(20px,1.6vw,28px);
  line-height:1.45;
  color:#d7faff;
  text-shadow:0 0 18px rgba(34,211,238,.16);
}

.cursor{
  display:inline-block;
  width:9px;
  height:1.05em;
  background:#67e8f9;
  margin-left:4px;
  vertical-align:-.15em;
  animation:blink .8s steps(2,end) infinite;
  box-shadow:0 0 16px rgba(34,211,238,.9);
}

.contact-card{
  position:absolute;
  right:7vw;
  top:9vh;
  width:min(520px,40vw);
  z-index:4;
  padding:26px;
  border-radius:28px;
  border:1px solid rgba(125,249,255,.25);
  background:rgba(2,6,23,.66);
  box-shadow:
    0 0 52px rgba(34,211,238,.16),
    inset 0 0 28px rgba(34,211,238,.06);
  backdrop-filter:blur(14px);
}

label{
  display:block;
  margin-top:14px;
  color:#a5f3fc;
  font-weight:800;
  letter-spacing:.06em;
  font-size:14px;
  text-transform:uppercase;
}

input,textarea{
  width:100%;
  box-sizing:border-box;
  margin-top:7px;
  border-radius:16px;
  border:1px solid rgba(125,249,255,.24);
  background:rgba(2,6,23,.72);
  color:#e5f7ff;
  padding:12px 14px;
  font:inherit;
  outline:none;
  box-shadow:inset 0 0 18px rgba(34,211,238,.05);
}

input:focus,textarea:focus{
  border-color:rgba(34,211,238,.7);
  box-shadow:
    0 0 22px rgba(34,211,238,.20),
    inset 0 0 18px rgba(34,211,238,.08);
}

textarea{
  min-height:130px;
  resize:vertical;
}

.send-btn{
  width:100%;
  min-height:50px;
  margin-top:18px;
  border-radius:999px;
  border:1px solid rgba(251,191,36,.36);
  background:rgba(2,6,23,.74);
  color:#fef3c7;
  font:inherit;
  font-size:18px;
  font-weight:900;
  letter-spacing:.06em;
  cursor:pointer;
  box-shadow:
    0 0 30px rgba(251,191,36,.18),
    inset 0 0 20px rgba(251,191,36,.08);
}

.send-btn:hover{
  background:rgba(69,26,3,.56);
  box-shadow:
    0 0 42px rgba(251,191,36,.42),
    inset 0 0 24px rgba(251,191,36,.14);
}

.form-status{
  min-height:22px;
  margin-top:12px;
  color:#fef3c7;
}

.side-note{
  position:absolute;
  left:6vw;
  bottom:11vh;
  width:min(620px,42vw);
  z-index:3;
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(251,191,36,.24);
  background:rgba(2,6,23,.50);
  box-shadow:0 0 32px rgba(251,191,36,.10);
}

.side-note h2{
  margin:0 0 10px;
  color:#fff;
  font-size:30px;
  text-shadow:0 0 24px rgba(251,191,36,.38);
}

.side-note p{
  margin:10px 0 0;
  color:#feecc7;
  font-size:18px;
  line-height:1.45;
}

.back-home{
  position:absolute;
  left:24px;
  bottom:22px;
  z-index:5;
  color:#a5f3fc;
  text-decoration:none;
  padding:10px 15px;
  border-radius:999px;
  border:1px solid rgba(125,249,255,.28);
  background:rgba(2,6,23,.58);
}

@keyframes scan{
  from{transform:translateY(-22vh)}
  to{transform:translateY(110vh)}
}

@keyframes blink{
  50%{opacity:0}
}

@media(max-width:900px){
  html,body{
    overflow:auto;
  }

  body{
    overflow:auto;
  }

  .contact-page{
    min-height:100vh;
    height:auto;
    overflow:auto;
    padding:28px 0 90px;
  }

  .terminal-intro,
  .contact-card,
  .side-note{
    position:relative;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
    width:86vw;
    margin:22px auto;
  }

  .terminal-intro{
    margin-top:40px;
  }

  .contact-card{
    box-sizing:border-box;
  }

  .typed-intro{
    min-height:120px;
    font-size:20px;
  }

  h1{
    font-size:clamp(38px,13vw,70px);
  }

  .side-note p{
    font-size:17px;
  }

  .back-home{
    position:fixed;
  }
}
