/* ============================================================
   YOUSEE360 — MOBILE EXPERIENCE
   Full mobile redesign: menu, sticky action bar, FAB, 360 gyro,
   typography. Loaded last; mobile-first conversion-focused.
   ============================================================ */

/* ============================================================
   1. MOBILE NAV FIX — close behavior + X icon + CTA-first
   ============================================================ */
@media (max-width: 980px) {

  /* The menu container */
  .navigation-menu,
  .navigation-menu.w-nav-menu {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100dvh !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    background: rgba(6, 7, 10, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 88px 20px max(20px, env(safe-area-inset-bottom)) !important;
    gap: 2px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%) !important;
    transition: transform .35s cubic-bezier(0.16,1,0.3,1) !important;
    z-index: 99998 !important;
    visibility: hidden;
    pointer-events: none;
  }
  .w-nav[data-nav-menu-open] .navigation-menu,
  .navigation-menu.w--nav-menu-open,
  .navigation-menu.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Persistent mobile CTA at TOP of open menu — real <a> element */
  .navigation-menu::before { content: none !important; }
  .ys-mobile-top-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 22px !important;
    margin: 0 0 14px 0;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #00ff88, #2dffa6) !important;
    color: #001a10 !important;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 8px 24px -8px rgba(0,255,136,0.5);
    flex-shrink: 0;
    min-height: 56px;
    width: 100%;
  }
  .ys-mobile-top-cta::after { content: "→"; transition: transform .2s; }
  .ys-mobile-top-cta:active::after { transform: translateX(3px); }
  .navigation-menu .nav-cta {
    display: none !important; /* hide the bottom-positioned one — replaced by ys-mobile-top-cta */
  }
  .ys-mobile-top-cta { display: none; } /* hidden by default outside menu */
  .navigation-menu .ys-mobile-top-cta { display: flex !important; }

  /* Each link gets a big tap target + chevron */
  .navigation-link,
  .w-dropdown-toggle {
    width: 100%;
    padding: 18px 20px !important;
    font-size: 1.0625rem !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.04);
    margin: 0 !important;
    min-height: 56px;
    justify-content: space-between !important;
    color: rgba(255,255,255,0.92) !important;
  }
  .navigation-link:hover,
  .navigation-link:active,
  .w-dropdown-toggle:active {
    background: rgba(0,255,136,0.06) !important;
    border-color: rgba(0,255,136,0.18) !important;
  }
  .navigation-link.w--current {
    background: rgba(0,255,136,0.08) !important;
    border-color: rgba(0,255,136,0.25) !important;
  }
  .navigation-link.w--current::after { display: none; }

  /* Right side block in menu — language switch only on mobile */
  .navigation-menu .nav-right {
    display: flex !important;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .nav-lang-switch {
    width: auto !important;
    padding: 10px 16px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 999px !important;
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.7) !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
  }

  /* Dropdown panel (Services / Industries) */
  .w-dropdown { width: 100%; }
  .w-dropdown.is-open .w-dropdown-toggle,
  .w-dropdown.w--open .w-dropdown-toggle {
    background: rgba(0,255,136,0.06) !important;
    border-color: rgba(0,255,136,0.18) !important;
    color: #fff !important;
  }
  .w-dropdown.is-open .w-icon-dropdown-toggle,
  .w-dropdown.w--open .w-icon-dropdown-toggle { transform: rotate(180deg); }
  .w-dropdown-list {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin: 4px 0 6px !important;
    grid-template-columns: 1fr !important;
    background: rgba(0,255,136,0.03) !important;
    border: 1px solid rgba(0,255,136,0.08) !important;
    padding: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }
  .w-dropdown.is-open .w-dropdown-list,
  .w-dropdown.w--open .w-dropdown-list { display: grid !important; }
  .w-dropdown-link {
    padding: 14px 16px !important;
    font-size: 0.9375rem !important;
    min-height: 48px;
    border-radius: 10px !important;
  }
  .w-dropdown-link::before { font-size: 0.6875rem !important; }
  .w-dropdown-link[data-icon]::after {
    font-size: 1rem !important;
    top: 14px !important;
  }

  /* Hamburger BUTTON — animate to X when open */
  .hamburger-button {
    width: 48px !important;
    height: 48px !important;
    z-index: 100000 !important;
    position: relative !important;
  }
  .hamburger-button .icon::before,
  .hamburger-button .icon::after,
  .hamburger-button .icon span {
    background: #fff !important;
  }
  .navigation-bar.is-menu-open .hamburger-button .icon::before {
    top: 7px !important;
    transform: rotate(45deg);
  }
  .navigation-bar.is-menu-open .hamburger-button .icon::after {
    bottom: 7px !important;
    transform: rotate(-45deg);
  }
  .navigation-bar.is-menu-open .hamburger-button .icon span {
    opacity: 0;
    transform: scaleX(0);
  }

  /* When menu is open, lock the nav bg so it doesn't flicker */
  .navigation-bar.is-menu-open {
    background: rgba(6,7,10,0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Body lock when menu open */
  body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }
}

/* ============================================================
   2. STICKY BOTTOM ACTION BAR (mobile only)
   ============================================================ */
.ys-mob-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9990;
  display: none;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  transform: translateY(0);
  transition: transform .35s cubic-bezier(0.16,1,0.3,1), opacity .25s ease;
}
.ys-mob-bar.is-hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.ys-mob-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  transition: transform .15s ease, background .25s ease;
}
.ys-mob-bar a:active { transform: scale(0.97); }
.ys-mob-bar a.btn-call {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}
.ys-mob-bar a.btn-wa {
  background: rgba(37,211,102,0.15);
  color: #25d366;
  border: 1px solid rgba(37,211,102,0.35);
}
.ys-mob-bar a.btn-quote {
  background: linear-gradient(135deg, #00ff88, #2dffa6);
  color: #001a10;
  flex: 1.4;
  font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(0,255,136,0.5);
}
.ys-mob-bar i { font-size: 1rem; }

@media (max-width: 768px) {
  .ys-mob-bar { display: flex; }
  /* Push page content above the bar */
  body { padding-bottom: 0; }
  footer.ys-footer-v2 { padding-bottom: 100px !important; }
}

/* ============================================================
   3. FLOATING CONTACT FAB (mobile only)
   Tap to expand contact methods radially.
   ============================================================ */
.ys-fab {
  position: fixed;
  right: 16px;
  bottom: calc(86px + env(safe-area-inset-bottom)); /* above the action bar */
  z-index: 9991;
  display: none;
}
.ys-fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #2dffa6);
  color: #001a10;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0,255,136,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .35s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}
.ys-fab.is-open .ys-fab-trigger { transform: rotate(45deg); }

.ys-fab-options {
  position: absolute;
  right: 4px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ys-fab.is-open .ys-fab-options {
  opacity: 1;
  pointer-events: auto;
}
.ys-fab-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(10px);
  transition: transform .25s cubic-bezier(0.16,1,0.3,1) calc(var(--i, 0) * .04s), background .2s;
}
.ys-fab.is-open .ys-fab-option { transform: translateY(0); }
.ys-fab-option:active { background: rgba(0,255,136,0.15); }
.ys-fab-option i { color: var(--ys-green, #00ff88); width: 18px; }

@media (max-width: 768px) {
  .ys-fab { display: block; }
}

/* ============================================================
   4. GYROSCOPE 360 — overlay + permission prompt
   ============================================================ */
.ys-gyro-prompt {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  text-align: center;
  padding: 24px;
}
.ys-gyro-prompt.is-visible { display: flex; }
.ys-gyro-prompt-inner {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ys-gyro-prompt-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,255,136,0.25), rgba(1,228,228,0.1));
  border: 1px solid rgba(0,255,136,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ys-green, #00ff88);
  font-size: 1.5rem;
  animation: gyro-tilt 2s ease-in-out infinite;
}
@keyframes gyro-tilt {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
.ys-gyro-prompt h4 {
  font-size: 1.0625rem !important;
  margin: 0 !important;
  font-weight: 700 !important;
}
.ys-gyro-prompt p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin: 0 !important;
}
.ys-gyro-prompt button {
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00ff88, #2dffa6);
  color: #001a10;
  border: none;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ys-gyro-active-badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,255,136,0.18);
  border: 1px solid rgba(0,255,136,0.4);
  color: var(--ys-green, #00ff88);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: none;
  align-items: center;
  gap: 6px;
}
.ys-gyro-active-badge.is-visible { display: inline-flex; }
.ys-gyro-active-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ys-green, #00ff88);
  box-shadow: 0 0 8px rgba(0,255,136,0.8);
  animation: ds-pulse 1.5s ease-in-out infinite;
}

/* ============================================================
   5. MOBILE TYPOGRAPHY & SPACING TIGHTENING
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --fs-display: clamp(2.25rem, 9vw, 3.25rem);
    --fs-h1: clamp(1.875rem, 6.5vw, 2.5rem);
    --fs-h2: clamp(1.5rem, 5vw, 2rem);
    --fs-body: 1rem;
    --section-py: clamp(48px, 8vw, 80px);
    --section-py-lg: clamp(64px, 10vw, 96px);
  }
  h1, .h1, .heading, .hero-heading,
  .apple-heading, .hero-section h1, .about-hero h1, .portfolio-hero h1 {
    font-size: clamp(2rem, 8.5vw, 3rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
  }
  h2, .h2, .section-heading, .heading-2,
  .sexy-heading, .mission-title {
    font-size: clamp(1.625rem, 5.5vw, 2.25rem) !important;
    line-height: 1.1 !important;
  }
  h3, .h3, .bento-title, .service-title { font-size: 1.125rem !important; }

  .hero-section, section.hero-section {
    min-height: auto !important;
    padding: 100px 16px 40px !important;
  }
  .about-hero, .portfolio-hero {
    min-height: auto !important;
    padding: 100px 16px 40px !important;
  }

  /* Reduce extreme padding everywhere */
  .ds-section, .section, section, .ys-section { padding: 56px 0 !important; }
  .container, .w-container { padding-left: 16px !important; padding-right: 16px !important; }

  /* Cards smaller padding */
  .ds-card, .bento-card, .value-card, .ys-package,
  .ys-testimonial, .modern-service-card { padding: 24px !important; }

  /* Marquee smaller */
  .ys-marquee-item { font-size: clamp(1.5rem, 7vw, 2rem) !important; }

  /* Testimonials stack already done */
  /* Portfolio grid mobile */
  .ys-portfolio-grid { min-height: 0; grid-template-rows: none !important; }
  .ys-portfolio-grid > a:nth-child(1) { grid-row: auto !important; }

  /* Trust strip wraps tighter */
  .ys-trust-badges { gap: 8px !important; }
  .ys-trust-badge { padding: 8px 12px !important; font-size: 0.8125rem !important; }

  /* Hide nav-right items on mobile when collapsed (they appear inside open menu) */
  .navigation-bar .nav-right { display: none !important; }

  /* Footer CTA tighter */
  .ys-footer-v2 .ys-footer-cta h2 { font-size: 1.875rem !important; line-height: 1.1 !important; }

  /* Buttons grow tap target */
  .ds-btn, .btn-primary, .nav-cta { min-height: 48px; padding: 13px 22px !important; }

  /* The 360 hero on service pages — reduce height */
  .ys-360-hero { height: 360px !important; }

  /* Mobile bottom padding to clear sticky bar */
  body { padding-bottom: 80px; }
}

/* ============================================================
   6. SCROLL FATIGUE REDUCTION — collapse heavy sections
   ============================================================ */
@media (max-width: 768px) {
  /* Hide marquee on mobile — too much visual noise alongside everything else */
  .ys-marquee { display: none !important; }

  /* Hide the homepage social-proof-bar duplicate (it appears twice) */
  .social-proof-bar { padding: 24px 16px !important; }
}

/* ============================================================
   7. ENTRY ANIMATIONS — subtle for mobile
   ============================================================ */
@media (max-width: 768px) {
  [data-reveal] {
    transition: opacity .4s ease-out, transform .4s ease-out !important;
    transform: translateY(12px) !important;
  }
  [data-reveal].is-visible { transform: none !important; }
}

/* ============================================================
   9. HOW WE WORK — fix overflow on mobile
   ============================================================ */
@media (max-width: 768px) {
  .process-tabs { padding: 0 !important; }

  /* Tab buttons: horizontal scroll snap row (no overflow) */
  .process-tab-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 8px !important;
    padding: 4px 16px 16px !important;
    margin: 0 -16px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .process-tab-buttons::-webkit-scrollbar { display: none; }
  .process-tab-btn {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    padding: 10px 18px !important;
    font-size: 0.875rem !important;
    border-radius: 999px !important;
    white-space: nowrap;
    min-height: 40px;
  }

  /* Panel content — stack image + text, prevent horizontal overflow */
  .process-tab-panel { padding: 24px 16px !important; }
  .process-tab-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: flex-start !important;
  }
  .process-tab-text { width: 100% !important; max-width: 100% !important; }
  .process-tab-text h3,
  .process-tab-text .sexy-heading {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin: 8px 0 12px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .process-tab-text p,
  .process-tab-text .bento-description {
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
  }
  .process-tab-text .step-number {
    font-size: 0.75rem !important;
    letter-spacing: 0.2em !important;
  }
  .process-tab-visual {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 140px !important;
    font-size: 3rem !important;
  }
}

/* ============================================================
   10. SERVICES GRID — elegant horizontal swipe-card carousel on mobile
   ============================================================ */
@media (max-width: 768px) {
  .modern-services-slider-container {
    padding: 24px 0 !important;
    overflow: visible !important;
  }
  .modern-services-slider {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    padding: 4px 16px 28px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .modern-services-slider::-webkit-scrollbar { display: none; }
  .modern-slide {
    flex: 0 0 75% !important;
    max-width: 280px !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }
  .modern-service-card {
    height: 100% !important;
    padding: 24px 22px !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(0,255,136,0.06) 0%, rgba(255,255,255,0.015) 100%), #0f1219 !important;
    border: 1px solid rgba(0,255,136,0.15) !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    transition: transform .3s ease;
  }
  .modern-service-card:active {
    transform: scale(0.97);
  }
  .service-icon-circle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    font-size: 1rem !important;
  }
  .service-title {
    font-size: 1.0625rem !important;
    margin-bottom: 8px !important;
  }
  .service-description {
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.65) !important;
  }

  /* Visual hint that there's more to swipe — chevron right + first card peeks */
  .modern-services-slider-container::after {
    content: "";
    display: block;
    position: relative;
    margin: 4px auto 0;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,255,136,0.5), rgba(255,255,255,0.1));
    opacity: 0.7;
  }
}

/* ============================================================
   Z. HIDE DUPLICATES on mobile
   The bottom action bar already gives Call + WhatsApp + Quote.
   The old floating widgets are removed for the mobile breakpoint.
   ============================================================ */
@media (max-width: 768px) {
  /* Old standalone WhatsApp floater */
  .whatsapp-float,
  a.whatsapp-float,
  .whatsapp-floating-button { display: none !important; }
  /* Old "Book Your Tour Now" sticky CTA on home */
  .mobile-sticky-cta,
  a.mobile-sticky-cta { display: none !important; }
  /* Any leftover floating contact widgets */
  .floating-contact,
  .floating-cta:not(.ys-fab):not(.ys-mob-bar) { display: none !important; }
}

/* On desktop keep the original whatsapp floater visible only if user wants it */
@media (min-width: 769px) {
  .whatsapp-float { z-index: 9989; }
}

/* ============================================================
   8. SUPER-COOL TOUCH RIPPLE on .ripple-able buttons
   ============================================================ */
.ripple-able { position: relative; overflow: hidden; }
.ripple-able .ys-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  pointer-events: none;
  animation: ys-ripple .55s cubic-bezier(0.16,1,0.3,1);
}
@keyframes ys-ripple {
  to { transform: scale(3.5); opacity: 0; }
}
