/* General Mobile Styles */
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #232629;
    line-height: 1.6;
  }

  /* Header and Navigation */
  header {
    position: relative;
    z-index: 1000;
    padding: 10px 0 !important;
  }

  header .container {
    padding: 0 15px;
  }

  .logo {
    width: 130px; /* Fixed width for logo container */
    height: 40px; /* Fixed height for logo container */
    display: flex;
    align-items: center;
  }

  .logo img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: none; /* Hide by default */
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    outline: none;
  }

  .mobile-menu-toggle span {
    display: block;
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    opacity: 1;
    left: 2.5px;
    transform: rotate(0deg);
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle span:nth-child(1) {
    top: 5px;
  }

  .mobile-menu-toggle span:nth-child(2),
  .mobile-menu-toggle span:nth-child(3) {
    top: 12px;
  }

  .mobile-menu-toggle span:nth-child(4) {
    top: 19px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    top: 12px;
    width: 0%;
    left: 50%;
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    transform: rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .mobile-menu-toggle.active span:nth-child(4) {
    top: 12px;
    width: 0%;
    left: 50%;
    opacity: 0;
  }

  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #0a1e44;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
  }

  .mobile-menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
    top: 102px;
    width: 100%;
    height: auto;
  }

  .mobile-menu-header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 60px;
  }

  .mobile-menu-close {
    cursor: pointer;
    color: white;
    font-size: 28px;
    line-height: 1;
    padding: 8px;
    margin: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: background-color 0.2s;
  }

  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
  }

  .mobile-menu-content {
    padding: 20px;
  }

  .mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu-list li {
    margin-bottom: 15px;
  }

  .mobile-menu-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
  }

  .mobile-menu-link:hover {
    color: #f8b400;
  }

  .mobile-menu-language {
    margin-top: 20px;
    padding: 15px 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-language .dropdown {
    width: 100%;
  }

  .mobile-menu-language .btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #212529;
    font-size: 14px;
    text-align: left;
  }

  .mobile-menu-language .btn:hover,
  .mobile-menu-language .btn:focus {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #0a1e44;
  }

  .mobile-menu-language .dropdown-menu {
    width: 100%;
    margin-top: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  }

  .mobile-menu-language .dropdown-item {
    padding: 8px 16px;
    color: #212529;
  }

  .mobile-menu-language .dropdown-item:hover,
  .mobile-menu-language .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0a1e44;
  }

  .mobile-menu-language .dropdown-item img {
    margin-right: 8px;
  }

  /* Make sure the dropdown is visible on mobile */
  .mobile-menu-language .show > .dropdown-menu {
    display: block;
  }

  /* Hide desktop navigation on mobile */
  header nav {
    display: none;
  }

  /* Language Selector */
  .language-selector {
    display: none;
  }

  /* Responsive adjustments */
  @media (min-width: 992px) {
    .mobile-menu-toggle {
      display: none;
    }

    header nav {
      display: block;
    }

    .language-selector {
      display: block;
    }

    .mobile-menu {
      display: none;
    }
  }

  /* Slider and Banner Responsive */
  .main-banner {
    padding: 60px 0;
  }

  .banner-content h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  .banner-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* Stats Section */
  .statistic-banner {
    padding: 30px 0;
  }

  .stat-item {
    margin-bottom: 30px;
    text-align: center;
  }

  /* About Page Styles */
  .about-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
  }

  .about-heading-custom {
    font-size: 36px !important;
    line-height: 1.2;
    margin-bottom: 20px !important;
  }

  .about-paragraph-custom {
    font-size: 18px !important;
    line-height: 1.6;
    margin-bottom: 20px !important;
  }

  .about-phone-footer-wrapper {
    margin-top: 40px;
    text-align: center;
  }

  .about-phone-footer-img img{
    width: 100%;
    max-width: 200px;
    max-height: 200px;
  }

  /* Polygon Backgrounds */
  .polygon-bg {
    display: none; /* Hide on mobile by default */
    position: absolute;
    z-index: 0;
  }

  /* Responsive adjustments */
  @media (max-width: 991.98px) {
    .about-section .container {
      padding: 0 20px;
    }

    .about-section .row > div {
      padding: 0 15px;
    }

    .about-heading-custom {
      font-size: 32px !important;
      text-align: center;
    }

    .about-paragraph-custom {
      font-size: 16px !important;
      text-align: left;
    }

    .about-phone-footer-wrapper {
      margin-top: 30px;
    }
  }

  @media (max-width: 767.98px) {
    .about-heading-custom {
      font-size: 28px !important;
    }

    .about-paragraph-custom {
      font-size: 15px !important;
    }

    .about-section img.img-fluid {
      margin-bottom: 20px;
    }
  }

  @media (min-width: 768px) {
    .polygon-bg {
      display: block;
    }

    .polygon-bg-1 { top: 10%; left: 5%; width: 100px; }
    .polygon-bg-2 { top: 20%; right: 5%; width: 80px; }
    .polygon-bg-3 { bottom: 20%; left: 8%; width: 70px; }
    .polygon-bg-4 { bottom: 15%; right: 10%; width: 90px; }
    .polygon-bg-5 { top: 50%; left: 15%; width: 60px; }
    .polygon-bg-6 { top: 30%; right: 20%; width: 50px; }
    .polygon-bg-7 { bottom: 30%; right: 15%; width: 40px; }
  }

  /* Features Section */
  .feature-section {
    padding: 40px 0;
  }

  /* About Page Styles */
  .about-page {
    overflow-x: hidden;
    background-color: #ffffff;
  }

  .about-section {
    position: relative;
    padding: 4rem 0;
  }

  .about-heading {
    color: #6c758a;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
  }

  .about-content {
    margin-bottom: 4rem;
  }

  .about-description {
    font-size: 1.25rem;
    color: #232629;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .about-image-container {
    margin: 2rem 0;
    text-align: center;
  }

  .about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .about-text {
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.8;
  }

  /* Features Section */
  .features-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    margin: 4rem 0;
    border-radius: 8px;
  }

  .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
  }

  .feature-item {
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
  }

  .feature-item:hover {
    transform: translateY(-5px);
  }

  .feature-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
  }

  .feature-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  /* CTA Section */
  .cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
  }

  .cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
  }

  .cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }

  .cta-section .btn-primary {
    background-color: white;
    color: #0066cc;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }

  .cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  /* Responsive Styles */
  @media (max-width: 991.98px) {
    .about-heading {
      font-size: 2rem;
    }

    .about-description, .about-text {
      font-size: 1.1rem;
    }

    .feature-item {
      margin-bottom: 2rem;
    }
  }

  @media (max-width: 767.98px) {
    .about-section {
      padding: 3rem 0;
    }

    .about-heading {
      font-size: 1.75rem;
      text-align: center;
    }

    .about-content {
      padding: 0 1rem;
    }

    .features-section {
      padding: 3rem 1rem;
      margin: 3rem -15px;
      border-radius: 0;
    }

    .feature-item {
      padding: 1.5rem 1rem;
    }

    .cta-section {
      padding: 3rem 1rem;
    }

    .cta-section h2 {
      font-size: 1.75rem;
    }

    .cta-section p {
      font-size: 1.1rem;
    }
  }

  @media (max-width: 575.98px) {
    .about-heading {
      font-size: 1.5rem;
    }

    .about-description, .about-text {
      font-size: 1rem;
    }

    .section-title {
      font-size: 1.5rem;
    }

    .feature-item h3 {
      font-size: 1.25rem;
    }

    .cta-section h2 {
      font-size: 1.5rem;
    }

    .cta-section p {
      font-size: 1rem;
    }
  }

  /* Polygon Backgrounds */
  .polygon-bg {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
  }

  .polygon-bg-1 { top: 5%; left: 5%; width: 150px; }
  .polygon-bg-2 { top: 15%; right: 10%; width: 100px; }
  .polygon-bg-3 { bottom: 20%; left: 8%; width: 120px; }
  .polygon-bg-4 { bottom: 10%; right: 5%; width: 90px; }

  /* Utility Classes */
  .mb-0 { margin-bottom: 0 !important; }
  .mt-0 { margin-top: 0 !important; }
  .text-center { text-align: center !important; }

  /* Ensure images don't exceed container width */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Smooth scrolling for anchor links */
  html {
    scroll-behavior: smooth;
  }

  /* Buttons */
  .btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  /* Forms */
  .form-control {
    height: 45px;
    font-size: 14px;
  }

  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hide scrollbar when menu is open */
  body.no-scroll {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
  }

  /* Tablet Styles */
  @media (min-width: 768px) {
    .banner-content h1 {
      font-size: 36px;
    }

    .banner-content p {
      font-size: 16px;
    }

    .feature-box {
      margin-bottom: 0;
    }
  }

  /* Desktop Styles */
  @media (min-width: 992px) {
    .banner-content h1 {
      font-size: 48px;
    }

    .banner-content p {
      font-size: 18px;
    }

    .stat-item {
      margin-bottom: 0;
    }
  }

  /* Animation for mobile menu */
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  @keyframes slideOutRight {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(100%);
    }
  }

  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
  }

  .modal-dialog {
    max-width: 90%;
    margin: 20px auto;
  }

  .modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-header .btn-close {
    margin: 0;
    padding: 0.5rem;
    background: none;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .modal-header .btn-close:hover {
    opacity: 1;
  }

  .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  /* Ensure proper spacing on small devices */
  @media (max-width: 991.98px) {
    /* General adjustments */
    .container {
      max-width: 100%;
      padding: 0 15px;
    }

    section {
      padding: 40px 0;
    }

    .btn {
      padding: 10px 20px;
      font-size: 14px;
    }
    .logo {
      width: 91px;
      height: 31px;
    }

    .mobile-menu-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    header nav {
      display: none;
    }

    .language-selector {
      display: none;
    }

    /* Main Banner */
    .main-banner {
      position: relative;
      height: 350px;
      display: flex
  ;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 0 20px;
      overflow: visible;
      animation: fadeIn 1.5s ease forwards;
  }

    .banner-content h1 {
      font-size: 28px;
      margin-bottom: 20px;
    }

    .banner-slider .slide {
      min-height: 500px;
    }

    /* Devices Banner */
    .devices-center {
      padding: 0;
    }

    .device-images {
      width: 100%;
      flex-direction: column;
      align-items: center;
    }

    .mobile-img,
    .mobile-img-first {
      position: absolute;
      width: 61px;
      height: 124px;
      top: 50px;
      left: 120px;
      z-index: 3;
      /* box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(36, 207, 221, 0.12); */
      border-radius: 16px;
      /* background: white; */
      /* padding: 8px 0 0 0; */
      object-fit: cover;
    }

    .desktop-img {
      max-width: 100%;
    }

    /* Statistics Section */
    .statistics-section {
      padding: 40px 0;
    }

    .stats-row {
      flex-direction: column;
      align-items: center;
    }

    .stat-card {
      margin-bottom: 20px;
      width: 100%;
      max-width: 300px;
    }

    /* Feature Sections */
    .custom-feature-section,
    .custom-feature-section-second {
      padding: 30px 0;
      position: relative;
    }

    .feature-title {
      font-size: 24px !important;
      margin-bottom: 20px;
      text-align: center !important;
      padding: 0 15px;
      left: 0 !important; /* Override desktop positioning */
      position: relative !important;
    }

    .feature-content {
      text-align: center !important;
      margin: 0 auto 25px;
      padding: 0 15px;
      order: 1; /* Move content to top */
      width: 100%;
      max-width: 100%;
      float: none;
      position: relative;
      left: 0;
      right: 0;
      align-items: center !important; /* Override desktop flex-start */
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
    }

    .feature-content h3 {
      font-size: 20px !important;
      margin-bottom: 15px;
      text-align: center !important; /* Force center alignment on mobile */
      line-height: 1.3 !important;
      font-weight: 600 !important;
    }

    .feature-content .description {
      font-size: 16px !important;
      line-height: 1.5;
      margin-bottom: 20px;
      text-align: center !important; /* Force center alignment on mobile */
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .feature-content p,
    .feature-content ul,
    .feature-content ul li {
      font-size: 16px !important;
      line-height: 1.5 !important;
      text-align: center !important; /* Force center alignment on mobile */
      margin-bottom: 10px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .feature-content ul {
      padding-left: 0 !important;
      margin: 0 auto 20px !important;
      text-align: center !important;
      list-style: none !important;
      display: flex !important;
      flex-direction: column !important;
    }

    .feature-content ul li {
      text-align: left !important;
      margin-bottom: 8px !important;
      padding-left: 0 !important;
      position: relative !important;
    }

    .feature-content ul li:before {
      display: none !important;
    }

    .feature-content .btn {
      margin: 10px auto 20px !important;
      display: inline-block;
      font-size: 14px !important;
      padding: 10px 20px !important;
      white-space: normal !important;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .fancybox-slider {
      margin: 0 -15px 20px;
      order: 2; /* Move slider to bottom */
      width: 100%;
      clear: both;
      touch-action: pan-y pinch-zoom;
      -webkit-overflow-scrolling: touch;
    }

    .fancybox-slide {
      padding: 0 15px;
      text-align: center;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 400px;
      justify-content: center;
    }

    /* Polygon container mobile optimization */
    .polygon-container {
      width: 100% !important;
      max-width: 300px !important;
      height: auto !important;
      margin: 0 auto 20px;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      touch-action: manipulation;
    }

    .polygon-container .laptop-img {
      max-width: 100% !important;
      height: auto !important;
      margin: 0 auto !important;
      position: relative;
      z-index: 2;
      touch-action: manipulation;
    }

    /* Hide polygon backgrounds on mobile for better performance */
    .polygon-bg {
      display: none !important;
    }

    .polygon-bg-front,
    .polygon-bg-2,
    .polygon-bg-3 {
      display: none !important;
    }

    /* Ensure proper layout for feature sections */
    .custom-feature-section .row,
    .custom-feature-section-second .row {
      flex-direction: column;
      display: flex;
      margin: 0;
    }

    .custom-feature-section .row > [class*="col-"],
    .custom-feature-section-second .row > [class*="col-"] {
      max-width: 100%;
      flex: 0 0 100%;
      padding: 0;
      margin: 0;
    }

    /* Fix any potential float issues */
    .custom-feature-section:after,
    .custom-feature-section-second:after {
      content: '';
      display: table;
      clear: both;
    }

    .custom-arrow {
      display: none; /* Hide arrows on mobile */
    }

    /* Fancybox indicators mobile optimization */
    .fancybox-indicators {
      display: flex !important;
      margin-top: 20px !important;
      justify-content: center;
      text-align: center;
      flex-wrap: wrap;
      touch-action: manipulation;
    }

    .fancybox-dot {
      width: 12px !important;
      height: 12px !important;
      margin: 0 6px !important;
      border-radius: 50%;
      background-color: #ccc;
      cursor: pointer;
      transition: background-color 0.3s ease;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .fancybox-dot.active {
      background-color: #24CFDD !important;
    }

    /* Touch-friendly slider improvements */
    .fancybox-slider {
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
    }

    .fancybox-slide {
      scroll-snap-align: start;
      flex-shrink: 0;
    }

    /* Improve touch targets */
    .fancybox-dot {
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Ensure text is readable on mobile */
    .feature-content h3,
    .feature-content .description,
    .feature-content p,
    .feature-content ul li {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    /* Hide desktop elements on mobile */
    .desktop-only {
      display: none !important;
    }

    /* Show mobile elements */
    .mobile-only {
      display: block !important;
    }
    .container {
      padding-left: 10px;
      padding-right: 10px;
    }

    .mobile-menu {
      width: 85%;
    }
    .device-item{
      z-index: 2;
      top: 50px;
      left: 0;
      width: 200px;
      height: 200px;
    }
    .overlap-mobile {
      position: absolute;
      width: 61px;
      height: 124px;
      top: 50px;
      left: 53px;
      z-index: 3;
      /* box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(36, 207, 221, 0.12); */
      border-radius: 16px;
      /* background: white; */
      /* padding: 8px 0 0 0; */
      object-fit: cover;
  }
  }
