/* Common Styles - Shared across all pages */

/* Fix hero animations - ensure they appear immediately on desktop */
@media (min-width: 992px) {
  /* Hero sections themselves should be visible immediately */
  .hero-section,
  .hero-combo-section,
  .about-hero-section,
  .feature-hero-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  /* Hero section elements should be visible immediately */
  .hero-section [data-w-id],
  .hero-combo-section [data-w-id],
  .about-hero-section [data-w-id],
  .feature-hero-section [data-w-id] {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  /* Specific hero elements */
  .hero-title,
  .hero-title-wrap,
  .hero-button-wrap,
  .about-hero-wrap,
  .about-hero-title,
  .about-hero-description,
  .about-hero-image-wrap,
  .feature-hero-title-wrap,
  .feature-hero-image-wrap,
  .bold-text-2 {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Prevent horizontal scroll on mobile */
html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure all containers stay within viewport on mobile */
@media (max-width: 991px) {
  .container, .w-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .w-layout-blockcontainer {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .w-layout-grid {
    max-width: 100% !important;
  }
  
  /* Prevent Why sections from causing horizontal scroll */
  .dark-about-section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  /* Ensure sections can scroll on mobile */
  .hero-combo-section,
  .simple-feature-section,
  .feature-hero-section,
  .our-value-section,
  .feature-section,
  .testimonial-section,
  .pricing-section,
  .cta-section,
  .download-section,
  .gallery-section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
}

/* Fix dropdown cursor */
.dropdown-toggle-2,
.nav-dropdown {
  cursor: pointer !important;
}

.dropdown-title-2 {
  cursor: pointer !important;
}

/* Smoother dropdown animations */
.nav-dropdown .w-dropdown-list,
.nav-dropdown .dropdown-list-2 {
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  transform-origin: top center;
}

.nav-dropdown:hover .w-dropdown-list,
.nav-dropdown.w--open .w-dropdown-list,
.nav-dropdown:hover .dropdown-list-2,
.nav-dropdown.w--open .dropdown-list-2 {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Make dropdown toggle more responsive */
.dropdown-toggle-2 {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  padding: 10px 0 !important;
  user-select: none;
}

/* Improve mega menu appearance */
.mega-menu-wrap {
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* Dropdown arrow rotation on open */
.nav-dropdown .dropdown-icon-2 {
  transition: transform 0.2s ease !important;
}

.nav-dropdown:hover .dropdown-icon-2,
.nav-dropdown.w--open .dropdown-icon-2 {
  transform: rotate(180deg) !important;
}

/* Better click area for dropdowns */
.nav-dropdown .dropdown-toggle-2 {
  min-height: 44px;
}

/* Navbar styling for light theme */
.nav-wrap.popup {
  background: transparent;
}

.navbar-2.popup {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.nav-link-2,
.dropdown-title-2,
.logo-text {
  color: #000000 !important;
}

.link-under-line-filled {
  background-color: #000000;
}

.button-black.mobile-hide {
  background-color: #000000;
  color: #ffffff;
}

.button-black.mobile-hide:hover {
  background-color: var(--color--primary-1);
  color: #000000;
}

.icon-menu svg,
.icon-close svg {
  color: #000000;
}

.menu-open svg path,
.menu-close svg path {
  fill: #000000;
}

/* Dropdown menu adjustments */
.dropdown-list-2 {
  background-color: rgba(0, 0, 0, 0.95);
}

.link-multi-layout {
  color: #ffffff !important;
}

/* Why Sections Styling */
.why-sections-container {
  margin-top: 50px;
  margin-bottom: 50px;
  padding: 35px 30px;
  border-radius: 20px;
  background: #042025;
  transition: background-color 0.8s ease;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.why-sections-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1a3a3a 0%, #042025 100%);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.why-sections-container.active-problem::before {
  background: linear-gradient(135deg, #1a3a3a 0%, #042025 100%);
  opacity: 1;
}

.why-sections-container.active-whynow::before {
  background: linear-gradient(135deg, #2a1a3a 0%, #042025 100%);
  opacity: 1;
}

.why-sections-container.active-solution::before {
  background: linear-gradient(135deg, #1a2a3a 0%, #042025 100%);
  opacity: 1;
}

.why-sections-container > * {
  position: relative;
  z-index: 1;
}

/* Tab Navigation (Desktop) */
.why-tabs-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.why-tab-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: white;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family--body);
}

.why-tab-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.why-tab-button.active {
  background: var(--color--primary-1);
  border-color: var(--color--primary-1);
  color: var(--color--black);
}

/* Section Content */
.why-section-content {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.why-section-content.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.why-section-inner {
  opacity: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.why-section-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: white !important;
  overflow: hidden;
  justify-content: space-between;
}

/* Force all text elements in Why sections to be white */
.why-section-body * {
  color: white !important;
}

.why-section-body p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.why-section-title {
  color: white !important;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  flex-shrink: 0;
}

.why-section-mobile-toggle {
  display: none;
}

/* Hide mobile slider elements on desktop */
.why-mobile-slider {
  display: contents;
}

.why-slider-dots {
  display: none;
}

.why-section-image-wrap {
  width: 100%;
  max-width: 140px;
  height: 140px;
  margin: 0 auto 15px auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.why-section-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
}

.why-intro-text {
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.95) !important;
  flex-shrink: 0;
}

.why-stats-grid,
.why-features-grid,
.why-vision-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
  flex-shrink: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.why-stat-item,
.why-feature-item {
  text-align: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.why-stat-item:hover,
.why-feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.why-stat-item h4 {
  font-size: 32px;
  margin-bottom: 8px;
  color: white !important;
  line-height: 1.1;
  margin-top: 0;
}

.why-stat-item p,
.why-feature-item p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.why-feature-item h4 {
  color: white !important;
  font-size: 16px;
  margin-bottom: 10px;
  margin-top: 0;
  font-weight: 600;
  line-height: 1.3;
}

.why-vision-block {
  margin: 30px 0;
}

.why-vision-intro {
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
  color: white !important;
  font-weight: 500;
}

.why-vision-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.why-vision-item {
  text-align: center;
  padding: 15px 12px;
  background: rgba(151, 216, 196, 0.1);
  border-radius: 10px;
}

.why-vision-item p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 14px;
  margin: 0;
}

.why-vision-item strong {
  color: var(--color--primary-1) !important;
}

.why-closing-text {
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-top: 15px;
  flex-shrink: 0;
}

.why-closing-text strong {
  color: white !important;
  font-weight: 600;
}

/* Tablet Responsive (768px - 991px) - Why Sections */
@media (max-width: 991px) {
  .why-sections-container {
    margin-top: 40px;
    margin-bottom: 60px;
    padding: 0;
    background: transparent;
    position: relative;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: auto;
  }

  .why-sections-container::before {
    display: none;
  }

  .why-tabs-nav {
    display: none;
  }

  /* Mobile Slider Wrapper */
  .why-mobile-slider {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 30px;
    padding: 0 30px 20px 0;
    scrollbar-width: none;
    margin-bottom: 25px;
    scroll-padding: 0;
    max-width: 100vw;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
  }

  .why-mobile-slider::-webkit-scrollbar {
    display: none;
  }
  
  /* Improve touch scrolling performance */
  .why-mobile-slider {
    transform: translateZ(0);
    will-change: scroll-position;
  }

  /* Slider Dots */
  .why-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px 20px 20px;
  }

  .why-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
  }

  .why-dot.active {
    background: var(--color--primary-1);
    width: 36px;
    border-radius: 6px;
    border-color: rgba(151, 216, 196, 0.3);
  }
  
  .why-dot:active {
    transform: scale(0.9);
  }

  .why-section-content {
    flex: 0 0 calc(100vw - 60px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    opacity: 1 !important;
    transform: none !important;
    padding: 24px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Ensure all text inside is white */
  .why-section-content,
  .why-section-content * {
    color: white !important;
  }

  .why-section-content[data-content="problem"] {
    background: #1a5858 !important;
    border-color: #2a7878 !important;
  }

  .why-section-content[data-content="whynow"] {
    background: #3a1a58 !important;
    border-color: #5a2a88 !important;
  }

  .why-section-content[data-content="solution"] {
    background: #1a3a58 !important;
    border-color: #2a5a88 !important;
  }

  .why-section-inner {
    opacity: 1 !important;
    min-height: auto;
  }

  .why-section-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
  }

  .why-section-mobile-toggle {
    display: none;
  }

  .why-section-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    opacity: 1;
    height: 100%;
    justify-content: space-between;
  }

  .why-section-image-wrap {
    max-width: 90px;
    height: 90px;
    margin-bottom: 10px;
  }

  .why-intro-text {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .why-stats-grid,
  .why-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
  }

  .why-vision-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .why-stat-item,
  .why-feature-item {
    padding: 14px 10px;
    min-height: 70px;
  }

  .why-stat-item h4 {
    font-size: 24px;
    margin-bottom: 6px;
    margin-top: 0;
    color: white !important;
    line-height: 1.1;
  }

  .why-stat-item p,
  .why-feature-item p {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .why-feature-item h4 {
    font-size: 13px;
    margin-bottom: 8px;
    margin-top: 0;
    color: white !important;
    line-height: 1.3;
  }

  .why-vision-block {
    margin: 8px 0;
  }

  .why-vision-intro {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .why-vision-item {
    padding: 8px 6px;
  }

  .why-vision-item p {
    font-size: 11px;
  }

  .why-closing-text {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.95) !important;
  }
}

/* Mobile Responsive (up to 767px) - Why Sections */
@media (max-width: 767px) {
  .why-sections-container {
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: auto;
  }
  
  .why-mobile-slider {
    gap: 25px;
    padding: 0 25px 20px 0;
    scroll-padding: 0;
    min-height: auto;
  }

  .why-section-content {
    flex: 0 0 calc(100vw - 50px);
    padding: 20px 18px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .why-section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .why-intro-text {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .why-stats-grid,
  .why-features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
  }

  .why-stat-item,
  .why-feature-item {
    padding: 14px 10px;
    border-radius: 8px;
    min-height: 75px;
  }

  .why-stat-item h4 {
    font-size: 26px;
    margin-bottom: 6px;
    margin-top: 0;
    color: white !important;
    line-height: 1.1;
  }

  .why-stat-item p,
  .why-feature-item p {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .why-feature-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 0;
    color: white !important;
    line-height: 1.3;
  }

  .why-vision-block {
    margin: 10px 0;
  }

  .why-vision-intro {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .why-vision-grid {
    gap: 6px;
  }

  .why-vision-item {
    padding: 8px 6px;
    border-radius: 6px;
  }

  .why-vision-item p {
    font-size: 11px;
  }

  .why-closing-text {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .why-section-image-wrap {
    max-width: 85px;
    height: 85px;
    margin-bottom: 10px;
  }

  .why-section-image {
    border-radius: 10px;
  }

  .why-slider-dots {
    padding: 10px 20px 15px 20px;
    gap: 10px;
  }

  .why-dot {
    width: 10px;
    height: 10px;
  }

  .why-dot.active {
    width: 28px;
  }
}

/* Extra small mobile devices (up to 480px) - Why Sections */
@media (max-width: 480px) {
  .why-mobile-slider {
    gap: 20px;
    padding: 0 20px 20px 0;
    scroll-padding: 0;
    min-height: auto;
  }
  
  .why-section-content {
    flex: 0 0 calc(100vw - 40px);
    padding: 18px 16px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .why-section-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .why-intro-text {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .why-stat-item,
  .why-feature-item {
    padding: 12px 8px;
    min-height: 70px;
  }

  .why-stat-item h4 {
    font-size: 24px;
    margin-bottom: 6px;
    margin-top: 0;
    color: white !important;
    line-height: 1.1;
  }

  .why-stat-item p,
  .why-feature-item p {
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .why-feature-item h4 {
    font-size: 13px;
    margin-bottom: 8px;
    margin-top: 0;
    color: white !important;
    line-height: 1.3;
  }

  .why-vision-intro {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .why-vision-item {
    padding: 8px 6px;
  }

  .why-vision-item p {
    font-size: 10px;
  }
  
  .why-vision-grid {
    gap: 6px;
  }
  
  .why-vision-block {
    margin: 8px 0;
  }

  .why-closing-text {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .why-section-image-wrap {
    max-width: 75px;
    height: 75px;
    margin-bottom: 8px;
  }
}

/* Hide desktop hamburger menu on mobile */
@media (max-width: 991px) {
  .menu-button-2 {
    display: none !important;
  }
  
  /* Force hide desktop navbar completely on mobile */
  .nav-wrap.popup,
  .navbar-2.popup {
    display: none !important;
  }
  
  /* Ensure mobile nav shows */
  .mobile-nav-wrap {
    display: block !important;
  }
  
  /* Fixed navbar at top - stays visible */
  .mobile-navbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 1000 !important;
  }
  
  /* Center mobile navigation vertically */
  .mobile-nav-menu {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: stretch !important;
  }
  
  .mobile-nav-links {
    padding: 16px 0 24px !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  
  .mobile-nav-link {
    padding: 11px 24px !important;
    font-size: 16px !important;
  }
  
  .mobile-nav-link.indent {
    padding: 9px 24px 9px 40px !important;
    font-size: 15px !important;
  }
  
  .mobile-section-title {
    padding: 10px 24px 5px !important;
    font-size: 12px !important;
  }
  
  .mobile-nav-cta {
    padding: 14px 24px 0 !important;
    margin-top: 10px !important;
    flex-shrink: 0 !important;
  }
  
  .mobile-cta-button {
    padding: 13px 24px !important;
    font-size: 16px !important;
  }
}

/* Extra compact for smaller screens */
@media (max-width: 767px) {
  .mobile-nav-menu {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  .mobile-nav-links {
    padding: 12px 0 20px !important;
    min-height: auto !important;
  }
  
  .mobile-nav-link {
    padding: 10px 20px !important;
    font-size: 15px !important;
  }
  
  .mobile-nav-link.indent {
    padding: 8px 20px 8px 36px !important;
    font-size: 14px !important;
  }
  
  .mobile-section-title {
    padding: 8px 20px 4px !important;
    font-size: 11px !important;
  }
  
  .mobile-nav-cta {
    padding: 12px 20px 0 !important;
  }
  
  .mobile-cta-button {
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
}
