.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #000; /* Fallback background color */
}

/* Video Background Styles */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

/* Optional dark overlay for better text visibility */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Adjust opacity as needed */
  z-index: 1;
  pointer-events: none;
}

.hero header {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.nav-links li a {
  color: var(--text-white);
  text-decoration: none;
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-medium);
  transition: opacity 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 0 20px;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-content svg.hero-logo {
  display: block;
  width: 520px;
  max-width: 90%;
  margin: 0 0 1rem;
  height: auto;
  aspect-ratio: 520/300;
}

.hero-content p {
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-medium);
  text-align: center;
  max-width: 800px;
  color: var(--text-muted-foreground);
  margin: 0 0 2rem;
  letter-spacing: 0.05em;
  font-display: swap;
}

.btn-contact {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--text-white);
  border-radius: 4px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: var(--font-size-xlarge);
  }

  .hero-content p {
    font-size: var(--font-size-base);
    max-width: 600px;
  }
  
  /* Ensure video covers viewport on tablets */
  .hero-video {
    min-width: 100%;
    min-height: 100%;
  }
}

@media (max-width: 768px) {
  .hero-content svg.hero-logo {
    width: 70%;
    max-width: 350px;
    margin: 0 0 0.75rem;
  }

  .hero-content h1 {
    font-size: var(--font-size-large);
  }

  .hero-content p {
    font-size: var(--font-size-small);
    max-width: 500px;
  }
}

@media (max-width: 720px) {
  .hero header {
    display: none;
    height: 0;
    padding: 0;
    margin: 0;
  }

  .hero-content {
    height: 100%;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 100vh;
  }

  .hero header {
    display: none;
    height: 0;
    padding: 0;
    margin: 0;
  }

  .hero-content {
    height: 100%;
    gap: 1rem;
    justify-content: center;
    padding: 0 15px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .hero-content svg.hero-logo {
    width: 60%;
    max-width: 280px;
    margin: 0 0 0.5rem;
  }

  .hero-content p {
    margin-bottom: 1.5rem;
    margin-top: 0;
  }
  
  /* Optimize video for mobile */
  .hero-video {
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
  }
}
