* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden; /* prevents scrollbars */
}

.hero {
  width: 100%;
  height: 100vh;
  background: rgba(12, 3, 51, 0.3); /* fallback color */
  position: relative;
  padding: 0 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.back-video {
  position: fixed; /* changed from absolute */
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover; /* this is the key for perfect scaling */
}

.content {
  text-align: center;
  position: relative; /* ensures it stays above video */
  z-index: 1;
}

.content h1 {
  font-size: 160px;
  color: #fff;
  font-weight: 600;
  transition: 0.5s;
}

/* Responsive typography for mobile */
@media (max-width: 1024px) {
  .content h1 {
    font-size: 100px;
  }
}

@media (max-width: 768px) {
  .content h1 {
    font-size: 70px;
  }
}

@media (max-width: 480px) {
  .content h1 {
    font-size: 48px;
  }
  .content a {
    font-size: 18px;
    padding: 12px 40px;
  }
}

.content h1:hover {
  -webkit-text-stroke: 2px white;
  color: transparent;
}

.content a {
  text-decoration: none;
  display: inline-block;
  color: #fff;
  font-size: 24px;
  border: 2px solid white;
  padding: 14px 50px;
  margin-top: 20px;
  border-radius: 50px;
  transition: 0.5s;
}

.content a:hover {
  background: #fff;
  color: #000;
}

/* iOS-specific fix for fullscreen video */
@supports (-webkit-touch-callout: none) {
  .back-video {
    height: 100vh;
  }
}
