  /* Fix for header scroll issue on mobile */
@media (max-width: 991px) {
  /* Hide mobile menu by default */
  .th-menu-wrapper {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
  }
  
  /* Show mobile menu when active */
  .th-menu-wrapper.active {
    left: 0;
    visibility: visible;
    opacity: 1;
  }
  
  /* Ensure body scrolls when menu is closed */
  body {
    overflow-x: hidden;
    position: relative;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }
  
  /* Fix header positioning */
  .header-layout3 {
    position: relative !important;
  }
  
  .sticky-wrapper {
    position: static !important;
  }
  
  .menu-area {
    position: relative !important;
  }
  
  /* Make sure main content is visible */
  .th-menu-area {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
  }
  
  .th-mobile-menu {
    height: auto;
    overflow-y: visible;
  }
  
  /* Mobile menu toggle button */
  .th-menu-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10000;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
}

/* Additional global fixes */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure all content is visible */
.main-content {
  position: relative;
  z-index: 1;
}

/* EMERGENCY FIX - Force scrolling */
@media (max-width: 991px) {
  body, html {
    overflow: auto !important;
    position: relative !important;
    height: auto !important;
  }
  
  .th-menu-wrapper {
    display: none !important;
  }
  
  .th-menu-wrapper.active {
    display: block !important;
    position: fixed !important;
    z-index: 9999 !important;
  }
}



/* Mobile Header Styles */
        .mobile-header {
            display: none;
            background-color: #f8f9fa;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .mobile-header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
        }
        
        .mobile-logo img {
            height: 40px;
            width: auto;
        }
        
        .mobile-menu-toggle {
            background: none;
            border: none;
            font-size: 24px;
            color: #333;
            cursor: pointer;
            padding: 5px;
        }
        
        /* Off-Canvas Menu Styles */
        .off-canvas-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 85%;
            max-width: 400px;
            height: 100vh;
            background-color: #fff;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            transition: right 0.3s ease;
            z-index: 1001;
            overflow-y: auto;
            padding: 20px;
        }
        
        .off-canvas-menu.active {
            right: 0;
        }
        
        .off-canvas-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
            margin-bottom: 15px;
        }
        
        .off-canvas-logo img {
            height: 35px;
            width: auto;
        }
        
        .off-canvas-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #333;
            cursor: pointer;
        }
        
        .off-canvas-content {
            padding-bottom: 30px;
        }
        
        .mobile-nav {
            list-style: none;
        }
        
        .mobile-nav li {
            border-bottom: 1px solid #eee;
        }
        
        .mobile-nav li:last-child {
            border-bottom: none;
        }
        
        .mobile-nav a {
            display: block;
            padding: 12px 0;
            color: #333;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }
        
        .mobile-nav a:hover {
            color: #007bff;
        }
        
        .mobile-nav a.active {
            color: #007bff;
        }
        
        .mobile-nav .th-badge {
            background-color: #ff6b6b;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 5px;
        }
        
        .mobile-nav .menu-item-has-children > a {
            position: relative;
        }
        
        .mobile-nav .menu-item-has-children > a:after {
            content: '\f107';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            position: absolute;
            right: 0;
            transition: transform 0.3s;
        }
        
        .mobile-nav .menu-item-has-children.active > a:after {
            transform: rotate(180deg);
        }
        
        .mobile-submenu {
            display: none;
            list-style: none;
            padding-left: 15px;
            background-color: #f9f9f9;
            margin: 10px 0;
            border-radius: 5px;
        }
        
        .mobile-submenu.active {
            display: block;
        }
        
        .mobile-submenu li {
            border-bottom: 1px solid #e9e9e9;
        }
        
        .mobile-submenu li:last-child {
            border-bottom: none;
        }
        
        .mobile-submenu a {
            padding: 10px 0;
            font-size: 14px;
        }
        
        .mobile-mega-menu {
            display: none;
            background-color: #f9f9f9;
            margin: 10px 0;
            border-radius: 5px;
            padding: 15px;
        }
        
        .mobile-mega-menu.active {
            display: block;
        }
        
        .mobile-mega-menu-box {
            margin-bottom: 15px;
        }
        
        .mobile-mega-menu-title {
            font-size: 16px;
            margin-bottom: 10px;
            color: #333;
            font-weight: 600;
        }
        
        .mobile-mega-menu-links {
            list-style: none;
        }
        
        .mobile-mega-menu-links a {
            padding: 8px 0;
            font-size: 14px;
            border-bottom: none;
        }
        
        .mobile-mega-menu-links a:last-child {
            border-bottom: none;
        }
        
        .mobile-cta-button {
            margin-top: 20px;
            text-align: center;
        }
        
        .mobile-demo-btn {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: background-color 0.3s;
        }
        
        .mobile-demo-btn:hover {
            background-color: #0056b3;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: none;
        }
        
        .overlay.active {
            display: block;
        }
        
        /* Hide desktop header on mobile */
        @media (max-width: 1199px) {
            .th-header {
                display: none;
            }
            
            .mobile-header {
                display: block;
            }
        }
        
        /* Demo content */
        .demo-content {
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .demo-content h1 {
            margin-bottom: 20px;
            color: #333;
        }
        
        .demo-content p {
            margin-bottom: 15px;
        }

        

        /* mobile view */
  
    /* Overlay background */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  /* Popup box */
  .popup-box {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    height: 500px; /* fixed height */
    display: flex;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease;
    position: relative;
  }

  /* Left image */
  .popup-image {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  }

  /* Right form area */
  .popup-content {
    flex: 1;
    padding: 28px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* No scroll inside form */
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    z-index: 10;
  }

  .popup-content h2 {
    text-align: center;
    margin-bottom: 0px;
    font-size: 24px;
    font-weight: 700;
    color: #2b3a67;
  }

  form label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    display: block;
  }

  form input,
  form select {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  form input:focus,
  form select:focus {
    border-color: #4770c2;
    box-shadow: 0 0 5px rgba(71,112,194,0.4);
    outline: none;
  }

  .popup-content button {
    background: linear-gradient(90deg, #4770c2, #007bff);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
  }

  .popup-content button:hover {
    background: linear-gradient(90deg, #007bff, #4770c2);
    transform: translateY(-2px);
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .popup-box {
      flex-direction: column;
      width: 95%;
      height: auto;
      max-width: 400px;
    }
    .popup-image {
      display: none;
    }
    .popup-content {
      padding: 25px 20px;
    }
  }

  /* Demo Button (for design consistency) */
  .th-demo-btn {
    background: linear-gradient(90deg, #4770c2, #007bff);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .th-demo-btn:hover {
    background: linear-gradient(90deg, #007bff, #4770c2);
    transform: translateY(-2px);
  }

  span{
    font-weight: 900;
  }






  .tech-expertise-advanced {
  background: linear-gradient(135deg, #070707, #0b0b14);
  position: relative;
  overflow: hidden;
}

.gradient-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,255,255,0.1), transparent 70%),
              radial-gradient(circle at 80% 40%, rgba(255,0,150,0.1), transparent 70%);
  z-index: 0;
  animation: floatBG 10s ease-in-out infinite alternate;
}

@keyframes floatBG {
  0% {transform: translateY(0px);}
  100% {transform: translateY(40px);}
}

.section-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-gradient {
  background: linear-gradient(90deg, #00e5ff, #a100ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tech-cube {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  padding: 2rem 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  z-index: 1;
}

.tech-cube:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

/* ✅ Image uniform size fix */
.tech-cube img {
  width: 70px;               /* Fixed width for all icons */
  height: 70px;              /* Fixed height for all icons */
  object-fit: contain;       /* Keeps proportions */
  object-position: center;   /* Centers logos */
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ✅ Hover effect same for all */
.tech-cube:hover img {
  transform: scale(1.15) rotate(5deg);
}

.tech-cube span {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: block;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ✅ Mobile view consistency */
@media (max-width: 576px) {
  .tech-cube {
    padding: 1.2rem 0.6rem;
  }
  .tech-cube img {
    width: 55px;
    height: 55px;
  }
}


