/* ========================================
   MOBILE-ONLY OPTIMIZATIONS (≤ 768px)
   ======================================== */

/* Mobile Typography & Fluid Scaling */
@media (max-width: 768px) {
  :root {
    /* Fluid typography scale */
    --step-0: clamp(14px, 3.5vw, 16px);
    --step-1: clamp(16px, 4vw, 18px);
    --step-2: clamp(18px, 4.5vw, 20px);
    --step-3: clamp(20px, 5vw, 24px);
    --step-4: clamp(22px, 6vw, 28px);
    --step-5: clamp(24px, 7vw, 32px);
    
    /* Mobile-specific spacing */
    --mobile-section-padding: clamp(2rem, 6vw, 4rem);
    --mobile-card-padding: clamp(1rem, 4vw, 2rem);
    --mobile-button-padding: clamp(0.8rem, 3vw, 1.2rem);
    --mobile-gap: clamp(1rem, 4vw, 2rem);
    
    /* Safe area insets for notches */
    --safe-area-left: max(16px, env(safe-area-inset-left));
    --safe-area-right: max(16px, env(safe-area-inset-right));
    --safe-area-top: max(16px, env(safe-area-inset-top));
    --safe-area-bottom: max(16px, env(safe-area-inset-bottom));
  }

  /* Base typography improvements */
  html {
    font-size: 56.25%; /* 9px base for better mobile scaling */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }

  body {
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Fluid heading sizes */
  h1 {
    font-size: var(--step-5);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: var(--step-4);
    line-height: 1.3;
    margin-bottom: 1.25rem;
  }

  h3 {
    font-size: var(--step-3);
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  h4 {
    font-size: var(--step-2);
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  p {
    font-size: var(--step-0);
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  /* Container improvements with safe areas */
  .wrap {
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    max-width: 100%;
  }

  /* Header optimizations */
  .site-header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
  }

  .title-area {
    flex: 1;
    min-width: 0;
  }

  .title-area img {
    width: clamp(120px, 25vw, 180px);
    height: auto;
  }

  /* Hide desktop navigation */
  .genesis-nav-menu {
    display: none !important;
  }

  .header-right {
    display: none;
  }

  /* Mobile menu toggle button - Consistent across all pages */
  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.8rem !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    min-width: 44px !important;
    min-height: 44px !important;
    z-index: 10001 !important;
    box-shadow: none !important;
    /* Override any conflicting styles */
    margin: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    border-width: 0 !important;
  }

  .menu-toggle:hover {
    background: transparent !important;
    transform: scale(1.05) !important;
    color: transparent !important;
    border-width: 0 !important;
  }

  .menu-toggle-icon {
    display: block !important;
    width: 24px !important;
    height: 3px !important;
    background: #000 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
    margin: 0 auto !important;
    top: 0 !important;
  }

  /* Override homepage-specific styles to be consistent */
  .home .menu-toggle-icon,
  .menu-toggle-icon {
    background: #000 !important;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    content: '' !important;
    position: absolute !important;
    width: 24px !important;
    height: 3px !important;
    background: #000 !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
    left: 0 !important;
  }

  .menu-toggle-icon::before {
    top: -10px !important;
  }

  .menu-toggle-icon::after {
    top: 10px !important;
  }

  .menu-toggle.activated .menu-toggle-icon {
    background: transparent !important;
  }

  .menu-toggle.activated .menu-toggle-icon::before {
    top: 0 !important;
    transform: rotate(45deg) !important;
    background: #000 !important;
  }

  .menu-toggle.activated .menu-toggle-icon::after {
    bottom: 0 !important;
    transform: rotate(-45deg) !important;
    background: #000 !important;
  }

  /* Mobile navigation menu */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-menu.active {
    right: 0;
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .mobile-nav-header img {
    width: 150px;
    height: auto;
  }

  .mobile-nav-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.4rem !important;
    font-size: 1.2rem !important;
    color: var(--color-text) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .mobile-nav-close:hover {
    background: #f8f9fa !important;
    color: var(--color-primary) !important;
  }

  .mobile-nav-close::before {
    content: '✕' !important;
    font-weight: 300 !important;
    font-size: 1.2rem !important;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
  }

  .mobile-nav-list li {
    border-bottom: 1px solid var(--color-border-light);
  }

  .mobile-nav-list a {
    display: block;
    padding: 2rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-nav-list a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    padding-left: 2.5rem;
  }

  .mobile-nav-cta {
    padding: 2rem;
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-light);
  }

  .mobile-nav-cta .site-btn {
    width: 100%;
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Banner/Hero Section - Full Screen Mobile */
  .banner-area {
    position: relative;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .banner-area video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    /* Ensure video covers entire area */
    min-width: 100%;
    min-height: 100%;
    /* Prevent video from being cut off */
    transform: none;
    /* Mobile-specific video optimizations */
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
    -ms-object-fit: cover;
    /* Ensure video is visible and plays properly */
    opacity: 1;
    visibility: visible;
    /* Force video to cover full area */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .banner-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.2) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
    pointer-events: none !important;
    /* Remove any backdrop filters */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .banner-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: 2rem 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove any background or frosted effects */
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
  }

  .banner-text h1 {
    font-size: var(--step-5);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    font-weight: 700;
  }

  .banner-text h4 {
    font-size: var(--step-1);
    line-height: 1.5;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    font-weight: 600;
  }

  .banner-text .site-btn {
    font-size: 1.6rem;
    padding: 1.2rem 2.5rem;
    min-height: 44px;
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Section spacing */
  .who-we-work-with,
  .why-intellex,
  .eb5-visa-program,
  .investor-trust-cues {
    padding: var(--mobile-section-padding) 0;
  }

  /* Grid layouts - convert to single column */
  .advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .advantage-card {
    padding: var(--mobile-card-padding);
    text-align: center;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .advantage-icon {
    margin-bottom: 1.5rem;
  }

  .advantage-icon img,
  .advantage-icon svg {
    width: 48px;
    height: 48px;
  }

  /* Why Intellex section */
  .why-intellex-content {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-gap);
  }

  .why-intellex-left,
  .why-intellex-right {
    width: 100%;
  }

  .why-intellex-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .why-item {
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: 8px;
  }

  .image-with-overlay {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
  }

  .image-with-overlay img {
    width: 100%;
    height: auto;
    display: block;
  }

  .image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.4rem;
    line-height: 1.4;
  }

  /* EB-5 Program section */
  .visa-program-boxes .panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .panel-grid-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--mobile-card-padding);
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .panel-grid-cell img {
    width: 64px;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .card-content h4 {
    font-size: var(--step-3);
    margin-bottom: 0.5rem;
  }

  .card-content p {
    font-size: var(--step-0);
    opacity: 0.8;
  }

  /* Trust cues section */
  .trust-cues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .trust-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--mobile-card-padding);
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .trust-icon {
    margin-bottom: 1.5rem;
  }

  .trust-icon img,
  .trust-icon svg {
    width: 48px;
    height: 48px;
  }

  /* CTA section */
  .ready-to-start-cta {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .cta-left-panel {
    order: 2;
    padding: var(--mobile-section-padding);
    background: var(--color-primary);
    color: var(--color-white);
  }

  .cta-right-image {
    order: 1;
    height: 200px;
    overflow: hidden;
  }

  .cta-right-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cta-content h2 {
    font-size: var(--step-4);
    margin-bottom: 1rem;
  }

  .cta-content p {
    font-size: var(--step-1);
    margin-bottom: 2rem;
    opacity: 0.9;
  }

  .cta-btn {
    font-size: 1.6rem;
    padding: 1.2rem 2.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Buttons - ensure proper touch targets */
  .site-btn {
    padding: var(--mobile-button-padding) 2rem;
    font-size: 1.6rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 600;
  }

  /* Footer */
  .footer-widgets {
    padding: var(--mobile-section-padding) 0 2rem;
  }

  .flags-area {
    padding: 2rem 0;
    background: var(--color-bg-light);
  }

  .flag-images {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .flag-images a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.2s ease;
    min-height: 44px;
  }

  .flag-images a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .securities-disclaimer {
    padding: 2rem 0;
    background: var(--color-primary);
    color: var(--color-white);
  }

  .securities-disclaimer p {
    font-size: 1.4rem;
    line-height: 1.5;
    text-align: center;
  }

  .site-footer {
    padding: 2rem 0;
    text-align: center;
    background: var(--color-text);
    color: var(--color-white);
  }

  .site-footer p {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .site-footer a {
    color: var(--color-white);
    text-decoration: underline;
  }

  /* Cookie banner */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }

  .cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }

  .cookie-text p {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0;
  }

  .cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .cookie-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    flex: 1;
    min-width: 120px;
  }

  .cookie-accept {
    background: var(--color-primary);
    color: var(--color-white);
  }

  .cookie-reject {
    background: var(--color-border);
    color: var(--color-text);
  }

  .cookie-manage {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
  }

  /* Form improvements */
  .contact-form {
    padding: 2rem 0;
  }

  .form-field {
    margin-bottom: 2rem;
  }

  .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    color: var(--color-text);
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 100%;
    min-height: 44px;
    transition: border-color 0.2s ease;
    background: var(--color-white);
    color: var(--color-text);
    font-family: inherit;
  }

  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(1, 31, 91, 0.1);
  }

  textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
  }

  .submit-btn {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .submit-btn:hover {
    background: #001a4a;
    transform: translateY(-1px);
  }

  .submit-btn:active {
    transform: translateY(0);
  }

  .submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
  }

  /* Form validation styles */
  .form-field input.error,
  .form-field textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
  }

  .error-message {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    display: block;
  }

  /* Success message */
  .success-message {
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    text-align: center;
    margin-top: 2rem;
  }

  .success-message p {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
  }

  /* Images - responsive and optimized */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Remove hover effects on touch devices */
  @media (hover: none) and (pointer: coarse) {
    .advantage-card:hover,
    .panel-grid-cell:hover,
    .trust-cue:hover {
      transform: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
  }

  /* Accessibility improvements */
  
  /* Focus indicators for keyboard navigation */
  .site-btn:focus,
  .menu-toggle:focus,
  .mobile-nav-close:focus,
  .mobile-nav-list a:focus,
  .submit-btn:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  /* Skip link for screen readers */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
  }

  .skip-link:focus {
    top: 6px;
  }

  /* Screen reader only text */
  .screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  /* Ensure sufficient color contrast */
  .banner-text h1,
  .banner-text h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* Touch target improvements */
  .mobile-nav-list a,
  .site-btn,
  .menu-toggle,
  .mobile-nav-close,
  .submit-btn,
  .cookie-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation: none !important;
      transition: none !important;
    }
    
    .mobile-nav-menu,
    .mobile-nav-overlay,
    .mobile-nav-list li,
    .mobile-nav-cta {
      transition: none !important;
    }
  }

  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .banner-overlay {
      background: rgba(0, 0, 0, 0.8);
    }
    
    .advantage-card,
    .panel-grid-cell,
    .trust-cue {
      border: 2px solid var(--color-text);
    }
    
    .site-btn {
      border: 2px solid var(--color-primary);
    }
  }

  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    .mobile-nav-menu {
      background: #1a1a1a;
      color: #ffffff;
    }
    
    .mobile-nav-list a {
      color: #ffffff;
    }
    
    .mobile-nav-list a:hover {
      background: #2a2a2a;
    }
    
    .mobile-nav-cta {
      background: #2a2a2a;
    }
    
    .cookie-banner {
      background: #2a2a2a;
      color: #ffffff;
    }
  }

  /* Ensure text is readable */
  p, li, span, div {
    line-height: 1.6;
  }

  /* Improve button contrast */
  .site-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
  }

  .site-btn:hover {
    background: #001a4a;
    border-color: #001a4a;
  }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .banner-area {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }
  
  .banner-area video {
    object-fit: cover;
    object-position: center center;
  }
  
  .mobile-nav-menu {
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .mobile-nav-list a {
    padding: 1.5rem 2rem;
  }
}

/* Very small screens (≤ 360px) */
@media (max-width: 360px) {
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .banner-area {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }
  
  .banner-text h1 {
    font-size: clamp(20px, 8vw, 24px);
  }
  
  .mobile-nav-list a {
    padding: 1.5rem 1.5rem;
    font-size: 1.6rem;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    flex: none;
  }
}

  /* Additional mobile video optimizations */
@media (max-width: 768px) {
  /* Remove frosted effects from banner area (except overlay) */
  .banner-area,
  .banner-area *,
  .banner-text,
  .banner-text * {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Allow banner-overlay to have its slight filter */
  .banner-overlay {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Ensure mobile nav close button is consistent across all pages */
  .mobile-nav-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.4rem !important;
    font-size: 1.2rem !important;
    color: var(--color-text) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .mobile-nav-close:hover {
    background: #f8f9fa !important;
    color: var(--color-primary) !important;
  }

  .mobile-nav-close::before {
    content: '✕' !important;
    font-weight: 300 !important;
    font-size: 1.2rem !important;
  }
  
  /* Hide any existing text content in close button to prevent double symbols */
  .mobile-nav-close {
    font-size: 0 !important;
  }
  
  .mobile-nav-close * {
    display: none !important;
  }
  
  /* Ensure video autoplay works on mobile */
  .banner-area video {
    autoplay: true;
    muted: true;
    playsinline: true;
    webkit-playsinline: true;
    loop: true;
    preload: auto;
  }
  
  /* Hide video controls on mobile */
  .banner-area video::-webkit-media-controls {
    display: none !important;
  }
  
  .banner-area video::-webkit-media-controls-panel {
    display: none !important;
  }
  
  .banner-area video::-webkit-media-controls-play-button {
    display: none !important;
  }
  
  .banner-area video::-webkit-media-controls-start-playback-button {
    display: none !important;
  }
  
  .banner-area video::-webkit-media-controls-overlay-play-button {
    display: none !important;
  }
  
  .banner-area video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
  }
  
  /* Ensure video covers full screen on mobile */
  .banner-area {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}

