/* ========================= */
/*         style.css         */
/* ========================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#050505;
  color:white;
  font-family:'Orbitron', sans-serif;
  overflow-x:hidden;
  position:relative;
}

/* FONDO GRID */

.grid{
  position:fixed;
  width:100%;
  height:100%;
  background:
  linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size:50px 50px;
  z-index:-2;

  animation:gridMove 10s linear infinite;
}

@keyframes gridMove{
  from{
    transform:translateY(0);
  }

  to{
    transform:translateY(50px);
  }
}

/* HEADER */

header{
  width:100%;
  padding:25px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;

  position:fixed;
  top:0;

  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(10px);

  border-bottom:1px solid rgba(255,255,255,0.08);

  z-index:1000;
}

.logo{
  font-size:24px;
  font-weight:700;
  letter-spacing:3px;
}

.logo span{
  color:#8f8f8f;
}

nav a{
  color:#bdbdbd;
  text-decoration:none;
  margin-left:35px;
  font-size:14px;
  transition:0.3s;
}

nav a:hover{
  color:white;
  text-shadow:0 0 10px white;
}

/* HERO */

.hero{
  width:100%;
  min-height:100vh;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:150px 8%;
  gap:50px;
}

/* HERO TEXTO */

.hero-content{
  max-width:650px;

  animation:fadeLeft 1s ease;
}

.status{
  color:#7d7d7d;
  margin-bottom:20px;
  font-size:14px;
}

.status i{
  color:#00ff88;
  margin-right:8px;

  animation:pulse 1s infinite;
}

@keyframes pulse{
  0%{opacity:1;}
  50%{opacity:0.3;}
  100%{opacity:1;}
}

.hero h1{
  font-size:70px;
  line-height:1.1;
  margin-bottom:25px;

  text-shadow:
  0 0 10px rgba(255,255,255,0.1),
  0 0 30px rgba(255,255,255,0.1);
}

.description{
  color:#9d9d9d;
  line-height:1.8;
  font-size:15px;

  margin-bottom:40px;
}

/* BOTONES */

.buttons{
  display:flex;
  gap:20px;
}

.btn-primary,
.btn-secondary{
  padding:15px 28px;
  text-decoration:none;
  transition:0.3s;
  font-size:13px;
  letter-spacing:2px;
}

.btn-primary{
  background:white;
  color:black;
}

.btn-primary:hover{
  transform:translateY(-4px);
  box-shadow:0 0 25px rgba(255,255,255,0.3);
}

.btn-secondary{
  border:1px solid rgba(255,255,255,0.2);
  color:white;
}

.btn-secondary:hover{
  background:rgba(255,255,255,0.08);
}

/* TERMINAL */

.terminal{
  width:500px;
  background:#0d0d0d;
  border:1px solid rgba(255,255,255,0.08);

  border-radius:15px;

  overflow:hidden;

  box-shadow:
  0 0 20px rgba(255,255,255,0.03);

  animation:fadeRight 1s ease;
}

.terminal-top{
  height:50px;
  background:#111;

  display:flex;
  align-items:center;
  padding:0 20px;
  gap:10px;
}

.terminal-top span{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#444;
}

.terminal-body{
  padding:30px;
  font-family:monospace;
  color:#cfcfcf;
  line-height:2;
  font-size:14px;
}

.typing{
  width:fit-content;
  border-right:2px solid white;
  white-space:nowrap;
  overflow:hidden;

  animation:
  typing 4s steps(30) infinite alternate,
  blink 0.5s infinite;
}

@keyframes typing{
  from{
    width:0;
  }

  to{
    width:230px;
  }
}

@keyframes blink{
  50%{
    border-color:transparent;
  }
}

/* DROPDOWNS */

.dropdown-section{
  padding:100px 8%;
}

.dropdown-section h2{
  font-size:40px;
  margin-bottom:50px;
}

details{
  background:#0d0d0d;
  border:1px solid rgba(255,255,255,0.08);

  margin-bottom:20px;

  border-radius:10px;

  overflow:hidden;
}

summary{
  padding:25px;
  cursor:pointer;

  display:flex;
  align-items:center;
  gap:15px;

  font-size:16px;
}

summary:hover{
  background:rgba(255,255,255,0.03);
}

details p{
  padding:0 25px 25px 25px;
  color:#9d9d9d;
  line-height:1.7;
}

/* FOOTER */

footer{
  padding:60px 8%;
  text-align:center;
  border-top:1px solid rgba(255,255,255,0.08);
}

.footer-line{
  width:200px;
  height:1px;
  background:rgba(255,255,255,0.2);

  margin:25px auto;
}

/* ANIMACIONES */

@keyframes fadeLeft{
  from{
    opacity:0;
    transform:translateX(-50px);
  }

  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes fadeRight{
  from{
    opacity:0;
    transform:translateX(50px);
  }

  to{
    opacity:1;
    transform:translateX(0);
  }
}

/* RESPONSIVE */

@media(max-width:1100px){

  .hero{
    flex-direction:column;
    justify-content:center;
  }

  .hero h1{
    font-size:50px;
  }

  .terminal{
    width:100%;
  }

}

@media(max-width:768px){

  nav{
    display:none;
  }

  .hero h1{
    font-size:38px;
  }

  .buttons{
    flex-direction:column;
  }

  .dropdown-section h2{
    font-size:30px;
  }

}