/* MOBILE-ONLY CSS - SIMPLIFIED VERSION */

/* This file only applies to mobile devices */

/* Mobile Loading Screen - iOS Compatible */
@media (max-width: 768px) {
  #loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    z-index: 9999 !important;
    /* Remove flex centering to let absolute positioning work */
    transition: opacity 0.5s ease-out !important;
  }
  
  #loading-screen.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Logo should always be visible - positioned above everything */
  .logo-overlay {
    position: fixed !important;
    top: 45% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
    width: 450px !important;
    height: 68px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
  }
  
  .logo-overlay img {
    width: 450px !important;
    height: 68px !important;
    object-fit: contain !important;
  }
  
  /* Smaller screens - match responsive logo sizing EXACTLY */
  @media (max-width: 480px) {
    .logo-overlay {
      width: 380px !important;
      height: 55px !important;
    }
    
    .logo-overlay img {
      width: 380px !important;
      height: 55px !important;
    }
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
  }
  
  #main-content {
    display: none !important;
  }
  
  #main-content.loaded {
    display: block !important;
  }
}

/* Hide startup video on mobile to save bandwidth */
@media (max-width: 768px) {
  #startup-video {
    display: none !important;
  }
}

/* Mobile Simplified Layout - Only Video and Logo */
@media (max-width: 768px) {
  /* Hide all content below video except contact form */
  .content-below {
    display: none !important;
  }
  
  /* But show the contact form container */
  .content-below #svg-contact-form-container {
    display: none !important;
    position: fixed !important;
    bottom: -100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 50 !important;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    margin: 0 !important;
  }
  
  .content-below #svg-contact-form-container.active {
    display: flex !important;
    bottom: 0 !important;
    pointer-events: auto !important;
  }
  
  /* Hide Instagram header */
  img[src*="ighdr.svg"],
  img[src*="ighdrmobile.svg"] {
    display: none !important;
  }
  
  /* Hide Instagram handle and follow buttons */
  #handle-svg,
  #follow-svg,
  .handle-link,
  a[href*="instagram.com"] {
    display: none !important;
  }
  
  /* Hide LightWidget */
  .lightwidget-widget,
  iframe[src*="lightwidget.com"] {
    display: none !important;
  }
  
  /* Contact form styles moved to .content-below section above */
  
  #svg-contact-form {
    width: 90% !important;
    max-width: 400px !important;
    height: auto !important;
    position: relative !important;
    transform: scale(0.7) translateY(50px) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0 !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  }
  
  #svg-contact-form.active {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
  }
  
  /* Mobile contact form input styling */
  #svg-contact-form-container.active #name,
  #svg-contact-form-container.active #email,
  #svg-contact-form-container.active #phone,
  #svg-contact-form-container.active #message {
    display: block !important;
    position: static !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 16px !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 400 !important;
    padding: 12px 16px !important;
    outline: none !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: auto !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
  }
  
  /* Focus states for inputs */
  #svg-contact-form-container.active #name:focus,
  #svg-contact-form-container.active #email:focus,
  #svg-contact-form-container.active #phone:focus,
  #svg-contact-form-container.active #message:focus {
    border-color: rgba(0, 170, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1) !important;
  }
  
  /* Placeholder styling */
  #svg-contact-form-container.active #name::placeholder,
  #svg-contact-form-container.active #email::placeholder,
  #svg-contact-form-container.active #phone::placeholder,
  #svg-contact-form-container.active #message::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 15px !important;
  }
  
  /* Message textarea specific styling */
  #svg-contact-form-container.active #message {
    height: 100px !important;
    resize: none !important;
    min-height: 100px !important;
  }
  
  /* Send button for mobile */
  #svg-contact-form-container.active #svg-send-btn {
    position: static !important;
    width: 100% !important;
    height: 50px !important;
    z-index: 20 !important;
    background: linear-gradient(135deg, #00aaff, #0088cc) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    transition: all 0.3s ease !important;
    margin-top: 8px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3) !important;
  }
  
  /* Send button hover/active states */
  #svg-contact-form-container.active #svg-send-btn:hover {
    background: linear-gradient(135deg, #0088cc, #006699) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4) !important;
  }
  
  #svg-contact-form-container.active #svg-send-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.3) !important;
  }
  
  /* Thank you message for mobile */
  #svg-contact-form-container.active #thank-you-message {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    color: white !important;
    padding: 25px 30px !important;
    border-radius: 8px !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    max-width: 80vw !important;
    width: auto !important;
  }
  
  /* Ensure video container takes full screen */
  .video-container {
    width: 100% !important;
    height: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    overflow: hidden !important;
  }
  
  /* Ensure video fills entire screen */
  .video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
  }
  

  
  /* Mobile Navigation - Top of screen */
  .mobile-navigation {
    position: fixed !important;
    top: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    pointer-events: auto !important;
  }
  
  .mobile-navigation img {
    height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* Make dots much smaller */
  .mobile-navigation img[src*="dot.svg"] {
    height: 8px !important;
    width: auto !important;
  }
  
  /* Ensure links in navigation don't affect image display */
  .mobile-navigation a {
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 0 !important;
  }
  
  /* Mobile Location - Bottom of screen */
  .mobile-location {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20 !important;
    pointer-events: auto !important;
  }
  
  .mobile-location img {
    height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* Prevent any scrolling - but allow when contact form is active */
  html, body {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
  
  /* Allow scrolling when contact form is active */
  body.contact-form-active {
    overflow: auto !important;
    position: static !important;
    height: auto !important;
    min-height: 100vh !important;
  }
  
  html.contact-form-active {
    overflow: auto !important;
    position: static !important;
    height: auto !important;
    min-height: 100vh !important;
  }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
  .logo-overlay {
    width: 380px !important;
    height: 55px !important;
  }
  
  .logo-overlay img {
    width: 380px !important;
    height: 55px !important;
  }
  
  /* Adjust navigation for smaller screens */
  .mobile-navigation {
    top: 30px !important;
    gap: 12px !important;
  }
  
  .mobile-navigation img {
    height: 36px !important;
  }
  
  /* Make dots much smaller on smaller screens too */
  .mobile-navigation img[src*="dot.svg"] {
    height: 6px !important;
  }
  
  /* Ensure links in navigation don't affect image display on smaller screens */
  .mobile-navigation a {
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 0 !important;
  }
  
  /* Adjust location for smaller screens */
  .mobile-location {
    bottom: 15px !important;
  }
  
  .mobile-location img {
    height: 50px !important;
  }
}

  /* Ensure main content is always visible on mobile */
  @media (max-width: 768px) {
    #main-content {
      width: 100% !important;
      height: 100% !important;
      overflow: hidden !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
    }
  }