/* ==========================================================================
   SUPPORT SOFT - HEADER & FOOTER STYLESHEET (header-footer.css)
   Exact match to official reference designs (Desktop Mega Menu & Dark Navy Footer)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL HEADER BAR
   -------------------------------------------------------------------------- */
.ms-navbar-section {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.3s ease;
}

.ms-navbar-section .navbar-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ms-navbar-section .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  position: relative;
}

/* Brand Logo (Left) */
.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   2. DESKTOP NAVIGATION & MEGA MENUS (Center)
   -------------------------------------------------------------------------- */
.desktop-nav-center {
  margin: 0 auto;
}

.desktop-nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav-item {
  position: relative;
  padding: 1.5rem 0.25rem;
}

.desktop-nav-link {
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.desktop-nav-link:hover,
.desktop-nav-item:hover > .desktop-nav-link,
.desktop-nav-item.is-active > .desktop-nav-link {
  color: #0062d2;
}

.nav-arrow {
  font-size: 0.7rem;
  color: #64748b;
  transition: transform 0.25s ease, color 0.2s ease;
}

.desktop-nav-item:hover > .desktop-nav-link .nav-arrow,
.desktop-nav-item.is-active > .desktop-nav-link .nav-arrow {
  transform: rotate(180deg);
  color: #0062d2;
}

/* Mega Menu Container */
.mega-menu-wrapper {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 1120px;
  max-width: 94vw;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1055;
}

.desktop-nav-item:hover > .mega-menu-wrapper,
.desktop-nav-item:focus-within > .mega-menu-wrapper,
.desktop-nav-item.is-active > .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Simple Dropdown Menus (Industries, Our Work, About) */
.simple-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1055;
  transform: translateY(12px);
}

.desktop-nav-item:hover > .simple-dropdown-menu,
.desktop-nav-item:focus-within > .simple-dropdown-menu,
.desktop-nav-item.is-active > .simple-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.simple-dropdown-link {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.18s ease;
}

.simple-dropdown-link:hover {
  background-color: #f1f5f9;
  color: #0062d2;
  padding-left: 20px;
}

/* Mega Menu Cards */
.menu-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.menu-card:hover {
  border-color: #0062d2 !important;
  box-shadow: 0 10px 25px rgba(0, 98, 210, 0.08);
  transform: translateY(-3px);
}

.menu-card h6 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   3. DESKTOP RIGHT ACTIONS (Phone + Consultation Pill)
   -------------------------------------------------------------------------- */
.desktop-right-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.header-phone-link:hover {
  color: #0062d2;
}

.header-phone-icon {
  flex-shrink: 0;
  stroke: #0062d2;
}

.btn-consultation-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0062d2;
  color: #ffffff !important;
  padding: 11px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 98, 210, 0.28);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-consultation-pill:hover {
  background-color: #0051b0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 98, 210, 0.38);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   4. MOBILE QUICK ACTIONS (WhatsApp, Call, Hamburger)
   -------------------------------------------------------------------------- */
.mobile-right-group {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (max-width: 991.98px) {
  .desktop-nav-center,
  .desktop-right-group {
    display: none !important;
  }
  .mobile-right-group {
    display: flex !important;
  }
}

.mobile-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-action-icon:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: scale(1.05);
}

.mobile-hamburger-btn {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-hamburger-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   5. MOBILE OFFCANVAS DRAWER (LIGHT THEME)
   -------------------------------------------------------------------------- */
.offcanvas#supportsoftMobileMenu {
  max-width: 360px;
  border-left: 1px solid #e2e8f0;
}

.offcanvas#supportsoftMobileMenu .accordion-button {
  font-size: 0.95rem;
}

.offcanvas#supportsoftMobileMenu .hover-bg-light:hover {
  background-color: #f1f5f9;
}

/* --------------------------------------------------------------------------
   6. OFFICIAL FOOTER STYLES (MATCHED TO SCREENSHOT 1)
   -------------------------------------------------------------------------- */
.ms-footer-sec {
  background-color: #04091a !important;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ms-footer-sec h3 {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

/* Underline on Column Headings (SOLUTIONS, SERVICES, COMPANY, CONTACT) */
.ms-heading-border {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid #0062d2;
}

.ms-footer-link {
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.ms-footer-link:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

.ms-footer-link i {
  color: #0062d2 !important;
  font-size: 0.65rem;
}

/* Social Icon Rounded Dark Squares/Circles */
.ms-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ms-social-icon:hover {
  background-color: #0062d2;
  border-color: #0062d2;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Mobile Accordion in Footer */
.ms-mobile-accordion .accordion-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ms-mobile-accordion .accordion-button {
  color: #ffffff !important;
  background-color: transparent !important;
  font-size: 0.9rem;
}

.ms-mobile-accordion .accordion-button:not(.collapsed) {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

.ms-mobile-accordion .accordion-button::after {
  filter: invert(1);
}

.bg-dark-card {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

.btn-primary-custom {
  background-color: #0062d2 !important;
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-custom:hover {
  background-color: #0051b0 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.intrinsic-width-image {
  height: auto;
}

.intrinsic-height-image {
  width: auto;
}

/* ==========================================================================
   FUTURISTIC HERO SECTION (MATCHED EXACTLY TO REFERENCE DESIGN)
   ========================================================================== */
.iot-hero-section {
  position: relative;
  background: 
    radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #050814 0%, #0A0F1D 50%, #0D1527 100%);
  padding: 5rem 0 4rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.iot-hero-grid {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 1.12fr 0.88fr !important;
  gap: 3.5rem !important;
  align-items: center !important;
}

/* Left Hero Content Column */
.iot-hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

/* 1. Top Translucent Pill Badge */
.iot-hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  padding: 0.45rem 1.15rem;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.iot-pill-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981, 0 0 4px #34D399;
  animation: iot-pulse-green 2s infinite;
}

@keyframes iot-pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.iot-pill-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 2. Main Title & Dynamic Gradient */
.iot-hero-main-title {
  font-size: clamp(2.35rem, 4.2vw, 3.8rem) !important;
  line-height: 1.14 !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 0 1.25rem 0 !important;
  letter-spacing: -0.025em !important;
  text-align: left !important;
}

.iot-hero-title-gradient {
  background: linear-gradient(90deg, #38BDF8 0%, #3B82F6 45%, #6366F1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
}

/* 3. Subtitle Paragraph */
.iot-hero-lead-desc {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  color: #94A3B8 !important;
  margin: 0 0 2rem 0 !important;
  max-width: 590px !important;
  text-align: left !important;
}

/* 4. Three Feature Cards Row */
.iot-hero-feature-row {
  display: flex !important;
  gap: 0.85rem !important;
  margin-bottom: 2.25rem !important;
  width: 100% !important;
}

.iot-feature-chip {
  flex: 1 1 0;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.iot-feature-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.iot-chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.chip-icon-green {
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.chip-icon-indigo {
  background: rgba(99, 102, 241, 0.18);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.chip-icon-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.iot-chip-text {
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* 5. Call To Action Buttons */
.iot-hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1.15rem !important;
  flex-wrap: wrap !important;
  margin-bottom: 1rem !important;
}

.iot-btn-primary-glow {
  background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 50%, #4F46E5 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 0.95rem 2.1rem !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45), 0 0 18px rgba(14, 165, 233, 0.3) !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  text-decoration: none !important;
}

.iot-btn-primary-glow:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.65), 0 0 25px rgba(14, 165, 233, 0.5) !important;
  color: #FFFFFF !important;
}

.iot-btn-ghost-dark {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #F1F5F9 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.95rem 2.1rem !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  cursor: pointer;
}

.iot-btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
}

/* 6. Bottom Trust Stats (3 Metrics Row) */
.iot-hero-metrics-bar {
  display: flex !important;
  align-items: center !important;
  gap: 2.25rem !important;
  margin-top: 2rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.iot-metric-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.9rem !important;
}

.iot-metric-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(30, 58, 138, 0.35) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  color: #38BDF8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
  flex-shrink: 0 !important;
}

.iot-metric-data {
  display: flex !important;
  flex-direction: column !important;
}

.iot-metric-value {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.1 !important;
}

.iot-metric-label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #94A3B8 !important;
  line-height: 1.25 !important;
}

/* Right Hero Column & 3D Visual Frame */
.iot-hero-visual-col {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iot-hero-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iot-hero-visual-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0.15) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.iot-hero-visual-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.iot-hero-ecosystem-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}

.iot-hero-ecosystem-img:hover {
  transform: translateY(-4px) scale(1.01);
}

.iot-img-fallback {
  object-fit: cover !important;
  object-position: 85% center !important;
  height: 520px !important;
}

/* Responsive Media Queries */
@media (max-width: 1199px) {
  .iot-hero-grid {
    grid-template-columns: 1.05fr 0.95fr !important;
    gap: 2.25rem !important;
  }
  .iot-hero-main-title {
    font-size: 2.85rem !important;
  }
}

@media (max-width: 991px) {
  .iot-hero-section {
    padding: 3.5rem 0 3rem 0;
  }
  .iot-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.75rem !important;
  }
  .iot-hero-feature-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .iot-feature-chip {
    min-width: 100% !important;
  }
  .iot-hero-metrics-bar {
    gap: 1.5rem 2rem !important;
  }
}

@media (max-width: 576px) {
  .iot-hero-main-title {
    font-size: 2.15rem !important;
  }
  .iot-hero-actions {
    flex-direction: column !important;
    width: 100% !important;
  }
  .iot-btn-primary-glow,
  .iot-btn-ghost-dark {
    width: 100% !important;
    justify-content: center !important;
  }
  .iot-hero-metrics-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.1rem !important;
  }
}

