/* Mobile Critical CSS - Only essential styles for first render */
/* This loads immediately, everything else is deferred */

@media screen and (max-width: 767px) {
  /* Critical Layout */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  /* Critical Navbar */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* Critical Hero */
  .hero {
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .hero-title {
    font-size: 14vw !important;
    color: #fff;
  }

  /* Hide non-critical elements initially */
  .carousel-section-mobile,
  .mission-statement-mobile,
  .interactive-features-mobile,
  .testimonials-section-mobile,
  .build-section,
  .cta-section,
  .footer {
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
    animation-delay: 0.1s;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

  /* Prevent layout shift */
  img, video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Critical video background */
  .video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh;
    z-index: -1;
    background: #1a1a1a;
  }

  /* Lazy video placeholder */
  .lazy-video {
    background: #f0f0f0;
    min-height: 200px;
  }

  /* Mobile contact button - critical */
  .mobile-contact-button {
    position: fixed !important;
    bottom: 5vw !important;
    right: 5vw !important;
    z-index: 1000 !important;
  }
}