/*  HERO  */

header {
  height: 100svh;                
  padding-top: 7em;               
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 50px #00ffffe6;
  border-radius: 0 0 30px 30px;
  width: 100%;
  max-width: none;
}

#heroContainer {
  width: 100%;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;

  display: grid;                  
  place-items: center;            
  text-align: center;
}

.title {
  position: relative;
  z-index: 2;                    
}

.title h1 {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.floating-code {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;                     
}

.code-line {
  position: absolute;
  color: #00ffffe6;
  font-size: 1rem;
  font-family: "Fira Code", monospace;
  white-space: nowrap;
  animation: floatFade 10s linear forwards;
  will-change: transform, opacity;
}

@keyframes floatFade {
  0%   { opacity: 0; transform: translateY(30px); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-600px); }
}
/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  background-color: var(--black);
  width: 100%;
  height: 7em;
  z-index: 5;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-left: 1.5em;
}

.logo,
.logo:visited,
.logo:hover,
.logo:active {
  color: white;
  text-decoration: none;
}

.logo img {
  height: 70px;
  width: auto;
  margin: 0;
}

/* DESKTOP NAV */

.nav {
  width: 70%;
}

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-content: flex-end;
  margin-right: 1.5em;
}

.nav ul li a {
  color: var(--white);
  text-decoration: none;
}

/* Mobile NAV START */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  margin: 1.5em;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
  position: relative;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: -8px;
}