/* ============================= */
/* GLOBAL RESET & BASE */
/* ============================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Orbitron","Poppins",sans-serif;
  color: #e5e7eb;
  background: radial-gradient(circle at top, #0a0f1f, #000);
  overflow-x: hidden;
}

/* Background Image + Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    url("../assets/cyber-bg.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero-section {
  min-height: calc(100vh - 56px);
  padding: 50px 30px;
}

/* ============================= */
/* BRAND */
/* ============================= */
.brand-text {
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(0,255,255,.6),
    0 0 18px rgba(0,255,255,.4);
}

/* ============================= */
/* NEON BOXES */
/* ============================= */
.cyber-box,
.code-box,
.info-box {
  position: relative;
  background: rgba(0,0,0,.65);
  border-radius: 14px;
  border: 1px solid rgba(0,255,255,.6);
  box-shadow: 0 0 18px rgba(0,255,255,.35);
  padding: 22px;
  overflow: hidden;
}

/* scanner */
.cyber-box::after,
.code-box::after,
.info-box::after {
  content:"";
  position:absolute;
  top:-100%;
  left:0;
  width:100%;
  height:60%;
  background:linear-gradient(
    to bottom,
    transparent,
    rgba(0,255,255,.35),
    transparent
  );
  animation: scanner 4s linear infinite;
}

@keyframes scanner {
  0%{top:-100%}
  100%{top:200%}
}

/* ============================= */
/* CODE BOX */
/* ============================= */
.code-box pre {
  margin:0;
  color:#00ffe1;
  font-family: "Courier New", monospace;
  font-size:14px;
  max-height:220px;
  overflow:auto;
}

/* ============================= */
/* INFO BOX */
/* ============================= */
.info-box h5 {
  color:#ff3c3c;
  text-shadow:0 0 8px rgba(255,60,60,.9);
}

/* ============================= */
/* CYBER HEADING */
/* ============================= */
.cyber-heading {
  margin: 45px 0 25px;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 3px;
  color: #00ffe7;
  text-shadow: 0 0 14px rgba(0,255,255,.8);
}

.cyber-heading::after {
  content:"|";
  margin-left:6px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50%{opacity:0}
}

/* ============================= */
/* INPUTS */
/* ============================= */
.cyber-input,
.cyber-select {
  width:100%;
  padding:14px;
  background:#0c1318;
  border:1px solid #00ffe1;
  border-radius:10px;
  color:#fff;
  outline:none;
}

/* ============================= */
/* BUTTONS */
/* ============================= */
.cyber-btn,
button,
.btn {
  padding:14px;
  border-radius:12px;
  background:linear-gradient(90deg,#00ffe1,#0088ff);
  border:none;
  color:#000;
  font-weight:700;
  box-shadow:0 0 15px rgba(0,255,255,.6);
  transition:.3s;
}

.cyber-btn.green {
  background:linear-gradient(90deg,#00ff99,#00cc66);
}

.cyber-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 0 25px rgba(0,255,255,1);
}

/* ============================= */
/* RESULT */
/* ============================= */
.math-hidden {
  display:none;
}

/* ============================= */
/* FOOTER */
/* ============================= */
.site-footer {
  position:relative;
  background:#050b12;
  color:#9ee7ff;
  padding:35px 20px 15px;
  overflow:hidden;
  border-top:2px solid #00ffff;
}

.site-footer::after {
  content:"";
  position:absolute;
  top:0;
  left:-40%;
  width:40%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(0,255,255,.3),
    rgba(0,255,255,.7),
    rgba(0,255,255,.3),
    transparent
  );
  animation:footerLaser 4.5s linear infinite;
}

@keyframes footerLaser {
  0%{left:-40%;opacity:0}
  10%{opacity:1}
  100%{left:110%;opacity:0}
}

.footer-inner {
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  gap:25px;
  flex-wrap:wrap;
}

.footer-left {
  flex:1;
  font-size:14px;
  line-height:1.6;
}

.footer-right a {
  color:#00ffff;
  font-weight:600;
  text-decoration:none;
}

.footer-bottom {
  margin-top:18px;
  text-align:center;
  font-size:13px;
  opacity:.8;
}

/* ============================= */
/* MOBILE OPTIMIZATION */
/* ============================= */
@media (max-width:768px){

  body{font-size:14px}

  .hero-section{
    padding:25px 14px;
    min-height:auto;
  }

  .brand-text{
    font-size:1.1rem;
    letter-spacing:1px;
  }

  .cyber-heading{
    font-size:1.35rem;
    margin:30px 0 18px;
  }

  .cyber-box,
  .code-box,
  .info-box{
    padding:18px;
  }

  .code-box pre{
    font-size:12px;
    max-height:180px;
  }

  .cyber-input,
  .cyber-select{
    font-size:14px;
    padding:12px;
  }

  .cyber-btn{
    font-size:.95rem;
  }

  .site-footer{
    padding:30px 15px 15px;
  }

  .footer-left,
  .footer-bottom{
    font-size:12px;
    text-align:center;
  }

  .site-footer::after{
    opacity:.6;
    filter:blur(3px);
  }
}
