<section id="home">
  <div class="hero-video-bg">
    <video autoplay muted loop playsinline id="heroVideo">
      <source src="assets/background-video.mp4" type="video/mp4">
      Your browser does not support the video tag.
    </video>
    <div class="hero-overlay"></div>
  </div>
  <div class="hero-grid-overlay"></div>
  <div class="hero-content">
    <div class="hero-tag">Excellence in Construction</div>
    <h1 class="hero-title">
      Building<br><em>Strong</em><br>Foundations
    </h1>
    <p class="hero-subtitle">
      Solid Construction delivers reliable residential, commercial, and infrastructure projects with uncompromising quality, safety, and professionalism.
    </p>
    <div class="hero-actions">
      <a href="#contact" class="btn-primary">
        Request a Quote
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
      </a>
      <a href="#projects" class="btn-secondary">View Our Projects</a>
    </div>
  </div>
  <div class="hero-stats">
    <div class="hero-stat">
      <div class="hero-stat-num">24<span>+</span></div>
      <div class="hero-stat-label">Years Active</div>
    </div>
    <div class="hero-stat">
      <div class="hero-stat-num">850<span>+</span></div>
      <div class="hero-stat-label">Projects Done</div>
    </div>
    <div class="hero-stat">
      <div class="hero-stat-num">98<span>%</span></div>
      <div class="hero-stat-label">Client Satisfaction</div>
    </div>
  </div>
  <div class="scroll-indicator">
    <div class="scroll-line"></div>
    <span>Scroll</span>
  </div>
</section>

<style>
#home {
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,26,24,0.85) 0%, rgba(26,26,24,0.5) 60%, rgba(26,26,24,0.7) 100%);
}
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--charcoal));
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-size: clamp(56px, 9vw, 120px);
  color: var(--white);
  line-height: 0.9;
  max-width: 800px;
  margin-bottom: 28px;
}
.hero-title em {
  color: var(--gold);
  font-style: normal;
}
.hero-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-on-dark);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0.85;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-stats {
  position: absolute;
  bottom: 60px;
  right: 40px;
  display: flex;
  gap: 40px;
  z-index: 2;
}
.hero-stat { text-align: right; }
.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero-stat-num span { color: var(--gold); }
.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (max-width: 768px) {
  .hero-stats { display: none; }
}
</style>

<script>
// Ensure video plays on mobile and handles autoplay policies
document.addEventListener('DOMContentLoaded', function() {
  const video = document.getElementById('heroVideo');
  if (video) {
    video.play().catch(function(error) {
      console.log("Video autoplay failed:", error);
    });
  }
});
</script>