/* =============================================
   MOBILE RESPONSIVE STYLES
   Dispr Website
   ============================================== */

/* =============================================
   HEADER MOBILE
   ============================================== */

/* Hide signup button on mobile */
@media (max-width: 991px) {
  .theme-main-menu .right-widget .signup-btn {
    display: none !important;
  }
  
  .theme-main-menu .right-widget {
    display: none !important;
  }
}

/* Burger Menu Icon - 3 bars */
.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.navbar-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Middle bar hidden when open */
.navbar-toggler.menu-open span:nth-child(2),
.navbar-toggler.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

/* Top bar rotates to form X */
.navbar-toggler.menu-open span:nth-child(1),
.navbar-toggler.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

/* Bottom bar rotates to form X */
.navbar-toggler.menu-open span:nth-child(3),
.navbar-toggler.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: flex;
  }
  
  /* Mobile menu overlay */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: rgba(6, 47, 43, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 24px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-collapse.show {
    right: 0;
  }
  
  /* Mobile menu backdrop */
  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .menu-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #EAF2EC;
  }
  
  .navbar-nav .nav-link:hover {
    color: #1FAF8A;
  }
  
  /* Dropdown on mobile */
  .navbar-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin: 0;
    display: none;
  }
  
  .navbar-nav .dropdown.show .dropdown-menu {
    display: block;
  }
  
  .navbar-nav .mega-menu {
    flex-direction: column;
    gap: 0;
  }
  
  .navbar-nav .dropdown-item {
    padding: 12px 0;
    font-size: 14px;
    color: rgba(234, 242, 236, 0.7);
  }
  
  .navbar-nav .dropdown-item img {
    display: none;
  }
}

/* =============================================
   HIDE HERO ANIMATION ON MOBILE
   ============================================== */
@media (max-width: 768px) {
  .hero-visual {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding-bottom: 80px;
  }
  
  .hero-content {
    margin-bottom: 0;
  }
}

/* =============================================
   BUTTONS - UNIFIED ROUNDED STYLE
   ============================================== */

/* Base button style - all rounded */
.btn-primary,
.btn-secondary,
.theme-btn-fifteen,
.signup-btn,
.btn-learn-more,
.btn-primary.rounded,
.btn-secondary.rounded {
  border-radius: 999px !important;
}

@media (max-width: 768px) {
  /* Center and reduce button size on mobile */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 15px;
    justify-content: center;
  }
  
  .positioning__cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .positioning__cta .btn-primary,
  .positioning__cta .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 15px;
    justify-content: center;
    text-align: center;
  }
  
  .features-stats__ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .features-stats__ctas .btn-primary,
  .features-stats__ctas .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .cta-actions .btn-primary {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* =============================================
   FIX BLURRY ANIMATIONS
   ============================================== */

/* Fix the blur transition on statement section */
.statement__inner.visible {
  filter: blur(0) !important;
  -webkit-filter: blur(0) !important;
}

/* Mobile: reduce backdrop-filter complexity for better performance */
@media (max-width: 768px) {
  .target-response,
  .response-card,
  .target-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .tr-bank,
  .tr-status,
  .tr-rate,
  .rc-bank,
  .rc-amount,
  .target-company,
  .target-type {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
}

/* =============================================
   HIDE SECTIONS ON MOBILE
   ============================================== */
@media (max-width: 768px) {
  /* Section 5 - Feature Card 1 */
  #feature-1 {
    display: none !important;
  }
  
  /* Section 6 - Feature Card 2 */
  #feature-2 {
    display: none !important;
  }
  
  /* Section 9 - Bannière IA */
  #ai-banner {
    display: none !important;
  }
  
  /* Section 11 - Secteurs d'activité */
  #sectors {
    display: none !important;
  }
}

/* =============================================
   GENERAL MOBILE IMPROVEMENTS
   ============================================== */
@media (max-width: 768px) {
  /* Reduce section padding */
  section {
    padding: 60px 0;
  }
  
  /* Better text readability */
  .hero-title {
    font-size: clamp(32px, 10vw, 48px) !important;
  }
  
  .hero-subtitle {
    font-size: 16px !important;
    padding: 0 10px;
  }
  
  .statement__title {
    font-size: clamp(24px, 6vw, 32px) !important;
  }
  
  .statement__lead {
    font-size: 15px !important;
    padding: 0 10px;
  }
  
  /* Partners grid on mobile */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .partner-logo {
    padding: 16px;
  }
  
  /* Stats section mobile */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  /* Vision section mobile */
  .vision-content {
    text-align: left;
  }
  
  /* Target tabs scroll on mobile */
  .targets-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .target-tab {
    flex-shrink: 0;
  }
}

/* =============================================
   SMALL MOBILE (< 480px)
   ============================================== */
@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }
  
  .hero-title {
    font-size: 32px !important;
  }
  
  .statement__title {
    font-size: 26px !important;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .partners-grid {
    gap: 8px;
  }
  
  .partner-logo {
    padding: 12px;
  }
  
  .partner-logo img {
    max-width: 60px;
    max-height: 30px;
  }
}
