body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Barlow Condensed', Arial, sans-serif;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.content {
    width: 75%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.content h1 {
    font-size: 10em;
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.content p {
    font-size: 1.5em;
    margin: 0;
}

@media only screen and (max-width: 959px) {
    .content h1{
        font-size: 8em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    .content h1{
        font-size: 7em;
    }
}

@media only screen and (max-width: 767px) {
    .content h1{
        font-size: 5em;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    .content h1{
        font-size: 7em;
    }
}

@media only screen and (max-width: 479px) {
    .content h1{
        font-size: 3em;
    }
}


h1 {
    font-size: 4rem;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  h1:hover {
    color: #00ff9d;
  }

  h1:hover::before,
  h1:hover::after {
    content: 'Pixel & Logic';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    opacity: 0.8;
  }

  h1:hover::before {
    color: #dfdfdf;
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    top: 0;
  }

  h1:hover::after {
    color: #dadada;
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) reverse both infinite;
    top: 0;
  }

  @keyframes glitch {
    0% {
      transform: translate(0);
    }
    20% {
      transform: translate(-2px, 2px);
    }
    40% {
      transform: translate(-2px, -2px);
    }
    60% {
      transform: translate(2px, 2px);
    }
    80% {
      transform: translate(2px, -2px);
    }
    100% {
      transform: translate(0);
    }
  }

  p {
    font-size: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reveal-text {
    position: relative;
    color: transparent;
    animation: reveal 0.5s ease forwards;
  }

  @keyframes reveal {
    from {
      background: linear-gradient(90deg, #fff 50%, transparent 50%);
      background-size: 200% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
    }
    to {
      background: linear-gradient(90deg, #fff 50%, transparent 50%);
      background-size: 200% 100%;
      background-position: 0 0;
      -webkit-background-clip: text;
    }
  }