body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
}

main {
    display: flex;
    height: 100vh;
    width: 100%;
}

.side {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    font-family: 'Reddit Sans', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(131, 131, 131);
    font-weight: bold;
    pointer-events: none;
}

h1{
    font-size: 150px;
}

.videoBox {
    width: 100%;
    height: 100%;
    transition: filter 0.5s ease;
    position: relative; /* needed for pseudo-element */
}

.matrix-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.matrix-text {
  color: rgb(0, 120, 0);
  font-size: 150px;
  font-family: 'Reddit Sans', sans-serif;
  position: relative;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0;
}

.matrix-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, -2px);
  color: #0f0;
  text-shadow: 0 0 5px #0f0, 0 0 15px #0f0;
}




/* Glitch effect for the text */
@keyframes glitch {
  0%, 100% {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(0);
  }
  33% {
    clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
    transform: translate(-5px, -5px);
  }
  66% {
    clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%);
    transform: translate(5px, 5px);
  }
}


.videoBox video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* semi-transparent background */
    display: flex;
    justify-content: center;
    gap: 2rem; /* space between icons */
    padding: 1rem 0;
    transform: translateY(100%); /* hide below the bottom */
    transition: transform 0.5s ease;
}

.side:hover .social-box {
    transform: translateY(0); /* slide up on hover */
}

.social-box img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-box img:hover {
    transform: scale(1.2); /* slight pop on hover */
}