.background-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: 1; opacity: 0.8; } .home { position: relative; height: 100vh; display: flex; justify-content: center; align-items: center; text-align: center; color: white; overflow: hidden; } .home-content { position: relative; z-index: 2; } .home-content h1 { font-size: 4vw; font-weight: bold; margin: 0; } .home-content p { font-size: 1vw; font-weight: bold; margin: 0; }