/* Mega Dropdown Styles */
.mega-dropdown {
  display: block;
  position: absolute;
  top: 101%; /* Position relative to navbar instead of fixed pixels */
  left: 50%;
  transform: translateX(-50%) translateY(-20px); /* Slide up effect starting position */
  width: 100%;
  max-width: 80vw;
  background: rgba(255, 255, 255, 1);
  z-index: 1000;
  padding: 0rem 0 !important;
  border-radius: 0 0 10px 10px;
  overflow: hidden !important;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transition: 
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform, opacity, background-color;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin !important; /* For Firefox */
  scrollbar-color: rgba(155, 69, 197, 0.6) transparent !important; /* For Firefox */
}

.mega-dropdown::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 20px 20px;
  transition: backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.mega-dropdown.show {
  position: absolute; /* Keep consistent with base state */
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Slide down to normal position */
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.mega-dropdown.show::before {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mega-dropdown.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-20px); /* Slide back up when hiding */
  background: rgba(255, 255, 255, 0.01);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0);
  transition: 
    transform 0.2s ease,
    opacity 0.2s ease,
    visibility 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mega-dropdown.hide::before {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.dark-mode .mega-dropdown {
  background: rgba(0, 0, 0, 0.01);
}

body.dark-mode .mega-dropdown.show {
  background: rgba(0, 0, 0, 0.05);
}

.mega-dropdown-inner {
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 1001;
  height: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-dropdown.show .mega-dropdown-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

body.dark-mode .mega-dropdown-inner {
  background-color: rgba(18, 18, 18, 0.97);
  box-shadow: 0 5px 8px rgba(255, 255, 255, 0.12);
}

.dropdown-content {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: visible;
  z-index: 1002;
  align-items: stretch;
}

.product-categories {
  width: calc(20% - 1px);
  padding: 0px 0;
  background-color: rgb(255, 255, 255);
  border-right: 1px solid rgba(224, 224, 224, 0.6);
  margin-left: 0;
  border-bottom-left-radius: 20px ;
  border-top-left-radius: 0;
  display: flex;
  flex-direction: column;
  height: auto;
}

.product-categories a {
  color: #333;
}

body.dark-mode .product-categories {
  background-color: rgba(255, 255, 255, 0.07);
  border-right-color: rgba(255, 255, 255, 0.15);
}

.product-category {
  padding: 6px 18px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid transparent;
}

.product-category:hover {
  background-color: rgba(133, 22, 188, 0.07);
}

.product-category::after {
  content: '›';
  margin-left: 12px;
  transition: transform 0.3s;
}

.product-category:hover::after,
.product-category.active::after {
  transform: translateX(7px);
}

.product-category.active {
  background-color: rgba(133, 22, 188, 0.15);
  color: #63329b;
  /* border-left-color: rgba(133, 22, 188, 1); */
}

body.dark-mode .product-category {
  color: #e5e5e5;
}

body.dark-mode .product-category:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

body.dark-mode .product-category.active {
  background-color: rgba(133, 22, 188, 0.25);
  color: #ffffff;
  border-left-color: rgba(133, 22, 188, 0.9);
}
.product-details {
  width: calc(100% - 10px);
  padding: 15px 25px 15px 15px;
  background-color: rgb(255, 255, 255);
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1003;
  border-bottom-right-radius: 20px;
  border-top-right-radius: 0;
  height: auto;
  overflow-y: auto;
  /* Prevent horizontal overflow */
  overflow-x: hidden;
  padding-right: 25px; /* Increase right padding to accommodate scrollbar */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: rgba(155, 69, 197, 0.6) transparent; /* For Firefox */
}

.product-details::-webkit-scrollbar {
  width: 3px !important; /* Thinner scrollbar */
  z-index: 1009;
}

.product-details::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
  border-radius: 3px;
}

.product-details::-webkit-scrollbar-thumb {
  background-color: rgba(155, 69, 197, 0.6) !important;
  border-radius: 3px;
  border: none; /* Remove border for a cleaner look */
}

.product-details {
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

@media screen and (max-width: 768px) {
  .product-details {
      width: 100%;
      padding: 15px;
      min-height: auto;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .product-details {
      width: 98%;
      padding: 20px;
  }
}

body.dark-mode .product-details {
  background-color: rgba(61, 60, 60, 0.25);
}

.product-banner {
  height: 180px;
  width: 95%;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 10px;
  overflow: hidden !important;
  transition: transform 0.3s ease;
}

.product-banner:hover {
  transform: scale(1.03);
}

.product-banner:hover::before {
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
}

.product-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(1.1px);
  -webkit-backdrop-filter: blur(1.1px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

body.dark-mode .product-banner::before {
  background: rgba(0, 0, 0, 0.15);
}

body.dark-mode .product-banner:hover::before {
  background: rgba(0, 0, 0, 0.35);
}

.product-banner .glare {
  position: absolute;
  top: -220%;
  left: -55%;
  right: -55%;
  bottom: -220%;
  transform: rotate(35deg);
  pointer-events: none;
}

.product-banner .glare::before,
.product-banner .glare::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.04) 50%,
          rgba(255, 255, 255, 0) 100%);
  animation: glareAnimation 7s infinite linear;
}

.product-banner .glare::after {
  animation-duration: 11s;
  animation-delay: -3.5s;
  opacity: 0.6;
}

@keyframes glareAnimation {
  0% {
      transform: translateY(-110%);
  }

  100% {
      transform: translateY(110%);
  }
}
.product-banner-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 28px;
  height: 99%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(92, 92, 92, 0.151); /* Added slight dark overlay */
}

.product-title {
  font-size: 34px;
  font-weight: bold;
  margin: 0 0 18px 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
}

.product-banner-description {
  font-size: 19px;
  line-height: 23px;
  margin: 0px 0px 8px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 85%;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1.25);
}

.product-banner:hover .product-banner-icon {
  transform: rotate(0deg) scale(1.15);
}

body.dark-mode .modules-title {
  color: rgba(133, 22, 188, 0.7);
  border-bottom-color: rgba(133, 22, 188, 0.7);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 95%;
  margin: 0 auto;
}

body.dark-mode .module {
  background-color: rgba(98, 98, 98, 0.22);
}

.module h4 {
  font-size: 19px;
  margin: 0 0 12px 0;
  /* color: #333; */
  position: relative;
  z-index: 1;
 

}

.module p {
  color: #666;
  margin: 0;
  position: relative;
  z-index: 1;
}

.module-icon {
  position: absolute;
  top: -18px;
  right: -18px;
  font-size: 85px;
  color: rgba(24, 78, 227, 0.12);
  transform: rotate(15deg);
  transition: transform 0.3s;
}

.module:hover .module-icon {
  transform: rotate(0deg) scale(1.15);
}

/* Media query for responsiveness */
@media (max-width: 992px) {
  .dropdown-content {
      flex-direction: column;
  }

  .product-categories,
  .product-details {
      width: 100%;
  }

  .product-categories {
      border-right: none;
      border-bottom: 1px solid rgba(224, 224, 224, 0.6);
  }

  .product-category.active {
      margin-right: 0;
  }

  .product-banner-content {
      flex-direction: column;
      align-items: flex-start;
  }

  .discover-link {
      margin-top: 12px; /* Increased margin */
  }
}

.dropdown-arrow {
  position: absolute;
  bottom: -22px !important; /* Adjusted position */
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  height: 0px;
  border-left: 14px solid transparent; /* Increased size */
  border-right: 14px solid transparent;
  border-bottom: 14px solid rgb(245, 245, 245);
  z-index: 5001;
}

body.dark-mode .dropdown-arrow {
  border-bottom-color: #ffffff;
}

.nav-item {
  position: relative;
  height: 100%; /* Ensure full height */
}

/* BUTTON */

#darkModeToggleSidebar,
#darkModeToggleNav {
  background-color: transparent;
  border: none;
  padding: 6px 11px;
  min-width: auto;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

#darkModeToggleSidebar i,
#darkModeToggleNav i {
  transition: color 0.3s ease;
}

body:not(.dark-mode) #darkModeToggleSidebar i,
body:not(.dark-mode) #darkModeToggleNav i {
  color: #000000;
}

body.dark-mode #darkModeToggleSidebar i,
body.dark-mode #darkModeToggleNav i {
  color: #ffffff;
}

/* Language Switch Button Styles */
#languageSwitch {
  background-color: transparent;
  border: none;
  padding: 6px 11px;
  min-width: auto;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

#languageSwitch i {
  transition: color 0.3s ease;
}

body:not(.dark-mode) #languageSwitch i {
  color: #000000;
}

body.dark-mode #languageSwitch i {
  color: #ffffff;
}

/* Fade-in animation keyframes */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* DROP DROP */
.glass-dropdown {
  background: rgba(207, 207, 207, 0.049);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.164);
  border-radius: 10px;
  padding: 0.5rem 0;
  min-width: auto;
  width: auto;
}

.glass-dropdown .dropdown-item {
  color: #333;
  padding: 0.25rem 1rem;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.glass-dropdown .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .glass-dropdown {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .glass-dropdown .dropdown-item {
  color: #fff;
}

body.dark-mode .glass-dropdown .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ADDITIONAL */
/* Improved Navbar Styles */
:root {
  --transition-speed: 0.3s;
  --primary-color: #007bff;
  --text-color: #333;
  --background-color: #fff;
  font-family: 'Poppins' !important;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-shrink {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-logo {
  flex: 0 0 auto;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
}

.nav-item {
  padding: 0 1rem;
}

.navbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-actions > * {
  margin-left: 0.5rem;
}

.navbar-mobile-actions {
  display: none;
}

.dropdown-menu .dropdown-item {
  font-size: 0.875rem !important;
}

.nav-toggle {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  display: none;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all var(--transition-speed) ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2), .nav-toggle span:nth-child(3) { top: 10px; }
.nav-toggle span:nth-child(4) { top: 20px; }

.nav-toggle.open span:nth-child(1) { top: 10px; width: 0%; left: 50%; }

.full-screen-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  width: 100%;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.sidebar-nav li {
  font-weight: 800;
  padding: 0 0rem;
}

.navbar-mobile-actions {
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .full-screen-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .full-screen-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem;
    flex-grow: 0;
  }

  .sidebar-nav li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .dropdown-menu {
    position: static !important;
    width: 85%;
    background-color: #f8f9fa;
    border: none;
    box-shadow: none;
    margin-left: 0px;
    margin-right: 0px;
  }
  
  .dropdown-item {
    padding: 0.5rem 1rem;
    text-align: center;
  }

  .navbar-mobile-actions {
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .full-screen-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
  }

  .full-screen-sidebar.open {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-nav {
    flex-direction: column;
    text-align: center;
  }

  .sidebar-nav li {
    margin: 1rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
  }

  .full-screen-sidebar.open .sidebar-nav li {
    transform: translateY(0);
    opacity: 1;
  }

  .sidebar-nav li:nth-child(1) { transition-delay: 0.1s; }
  .sidebar-nav li:nth-child(2) { transition-delay: 0.2s; }
  .sidebar-nav li:nth-child(3) { transition-delay: 0.3s; }
  .sidebar-nav li:nth-child(4) { transition-delay: 0.4s; }
  .sidebar-nav li:nth-child(5) { transition-delay: 0.5s; }
  .sidebar-nav li:nth-child(6) { transition-delay: 0.6s; }
  .sidebar-nav li:nth-child(7) { transition-delay: 0.7s; }

  body.dark-mode .full-screen-sidebar {
    background-color: var(--dark-background);
  }

  body.dark-mode .nav-link {
    color: var(--dark-text);
  }
}

.nav-link {
  color: var(--text-color);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding: 0.5rem 0.5rem;
  border-radius: 15px;
}

.tab-hospitality::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: 0px !important;
  left: 0;
  background-color: #99358d;
  transition: width var(--transition-speed) ease;
}

.tab-manufacturing::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: 0px !important;
  left: 0;
  background-color: #b8417c;
  transition: width var(--transition-speed) ease;
}

.tab-property::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: 0px !important;
  left: 0;
  background-color: #00008b;
  transition: width var(--transition-speed) ease;
}

.tab-fsi::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: 0px !important;
  left: 0;
  background-color: #FF0000;
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Additional styles for dropdown-toggle consistency */
.nav-link.dropdown-toggle.show::after,
.nav-link.dropdown-toggle.active::after {
  width: 100%;
}

/* Ensure consistent hover color for all nav-links including dropdown */
.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle.active,
.nav-link.dropdown-toggle.show {
  color: #8454d0 !important;
  text-shadow: 0 0 1px rgba(132, 84, 208, 0.5) !important;
}

/* Hide dropdown toggle arrows */
.dropdown-toggle::before,
.dropdown-toggle::after {
    display: none !important;
}

/* Dropdown menu dark mode styles */
body.dark-mode .dropdown-menu {
  background-color: #2c3e50;
  border-color: #34495e;
}

body.dark-mode .dropdown-item {
  color: #ecf0f1;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
  background-color: #34495e;
  color: #3498db;
}

body.dark-mode .dropdown-toggle::after {
  border-top-color: #ecf0f1;
}

/* Smooth transition for dropdown items */
.dropdown-menu,
.dropdown-item {
  transition: background-color 0.3s, color 0.3s;
}

.full-screen-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  width: 100%;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.sidebar-nav li {
  font-weight: 800;
  padding: 0 0rem;
}

.nav-link {
  color: var(--text-color);
  font-size: 0.9rem ;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding: 0.5rem 0.25rem;
  border-radius: 15px;
}

@media (max-width: 991.98px) {
  .full-screen-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .full-screen-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem;
    flex-grow: 0;
  }

  .sidebar-nav li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-link {
    font-size: 1.3rem; /* Increased from 1.2rem for mobile view */
  }

  .full-screen-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
  }

  .full-screen-sidebar.open {
    opacity: 1;
    visibility: visible;
  }

  .sidebar-nav {
    flex-direction: column;
    text-align: center;
  }

  .sidebar-nav li {
    margin: 1rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
  }

  .full-screen-sidebar.open .sidebar-nav li {
    transform: translateY(0);
    opacity: 1;
  }

  .sidebar-nav li:nth-child(1) { transition-delay: 0.1s; }
  .sidebar-nav li:nth-child(2) { transition-delay: 0.2s; }
  .sidebar-nav li:nth-child(3) { transition-delay: 0.3s; }
  .sidebar-nav li:nth-child(4) { transition-delay: 0.4s; }
  .sidebar-nav li:nth-child(5) { transition-delay: 0.5s; }
  .sidebar-nav li:nth-child(6) { transition-delay: 0.6s; }
  .sidebar-nav li:nth-child(7) { transition-delay: 0.7s; }

  body.dark-mode .full-screen-sidebar {
    background-color: var(--dark-background);
  }

  body.dark-mode .nav-link {
    color: var(--dark-text);
  }
}

/* Navbar styles */
.navbar {
  transition: all 0.3s ease;
}

.navbar-shrink {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-logo img {
  max-width: 150px; /* Prevents it from becoming too large */
  height: auto;
  padding: 0.1rem;
}

/* Navbar toggle button */
.nav-toggle {
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.nav-toggle span:nth-child(1) { top: 0px; }
.nav-toggle span:nth-child(2), .nav-toggle span:nth-child(3) { top: 10px; }
.nav-toggle span:nth-child(4) { top: 20px; }

/* Navbar links */
.nav-link {
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #8454d0 !important;
  text-shadow: 0 0 1px rgba(132, 84, 208, 0.5) !important;
}

.dropdown-toggle::after {
  display: none;
}

.fa-chevron-down {
  font-size: 0.75em;
  margin-left: 5px;
}

#darkModeToggleSidebar {
  padding: 0.3rem 0.5rem;
  min-width: auto;
}

/* Dark mode toggle button */
#darkModeToggleNav, #darkModeToggleSidebar {
  background: none;
  border: none;
  cursor: pointer;
}

/* Language switch dropdown */
#languageSwitch {
  background: none;
  border: none;
  cursor: pointer;
}

.btn-custom {
  --bg: #8454d0;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  padding: 0.4em 1em;
  background: var(--bg);
  transition: 0.2s;
  text-decoration: none;
  white-space: nowrap;
  min-width: 100px;
  border: none;
  
  /* Add these lines for the fade-in animation */
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.5s; /* Adjust this value to change when the animation starts */
}

/* Add this keyframe animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.btn-custom:active {
  background-color: rgb(56, 53, 217); /* Slightly darker shade for active state */
}

/* Keyframes for the slide-down animation */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* NAVLINK ANIMATION */

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

.full-screen-sidebar .sidebar-nav li {
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
}

.full-screen-sidebar .sidebar-nav li:nth-child(1) { animation-delay: 0.1s; }
.full-screen-sidebar .sidebar-nav li:nth-child(2) { animation-delay: 0.2s; }
.full-screen-sidebar .sidebar-nav li:nth-child(3) { animation-delay: 0.3s; }
.full-screen-sidebar .sidebar-nav li:nth-child(4) { animation-delay: 0.4s; }
.full-screen-sidebar .sidebar-nav li:nth-child(5) { animation-delay: 0.5s; }







/* Add or update these styles */

.navbar {
width: 100%;
padding: 0.5rem 0;
}

.container-fluid {
width: 100%;
margin-left: auto;
margin-right: auto;
}

@media (min-width: 992px) {
.container-fluid {
  padding-left: 10%; /* Add consistent padding */
  padding-right: 10%; /* Add consistent padding */
}

.full-screen-sidebar {
  margin-right: -35px; /* Matches the index.html sidebar positioning */
}
}

@media (max-width: 991px) {
.container-fluid {
  width: 100%;
  padding-left: 3.5%; /* Add consistent padding */
  padding-right: 3.5%; /* Add consistent padding */
}
}

/* Add or update these styles for subnav */
.sub-nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: #f8f9fa;
  height: 50px;
  display: flex;
  align-items: center;
  padding-top: 5px;
}

.sub-nav .container {
  width: 95%;
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

@media (min-width: 992px) {
  .sub-nav .container {
      padding-left: 30px;
      padding-right: 30px;
  }
}

@media (max-width: 991px) {
  .sub-nav .container {
      width: 100%;
      padding-left: 15px;
      padding-right: 15px;
  }
}

.nav-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.horizontal-nav {
  display: flex;
  justify-content: right;
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-master-item {
  margin: 0 5px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 400;
}

.icon {
  font-size: 10px;
  margin-left: 3px;
}


/* Update media query */
@media (max-width: 1368px) and (max-height: 768px) {
  .mega-dropdown {
    height: auto !important;
    padding: 0rem 0 !important;
  }

  .mega-dropdown-inner {
    height: auto; /* Remove fixed height */
  }

  .dropdown-content {
    height: auto; /* Remove fixed height */
  }

  .product-categories,
  .product-details {
    height: auto; /* Remove fixed height */
    min-height: auto;
  }

  .product-details {
    max-height: calc(100vh - 100px);
    padding: 12px 0px;
  }

 
  .product-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .product-banner-description {
    font-size: 16px;
    max-width: 90%;
  }

  .modules-grid {
    gap: 15px !important;
    width: 95% !important;
  }

  .module h4 {
    font-size: 16px !important;
    margin-bottom: 8px;
  }


  .module-icon {
    font-size: 65px;
    top: -15px;
    right: -15px;
  }

  .product-category {
    padding: 5px 15px;
    font-size: 14px;
  }

  .modules-title {
    font-size: 15px;
    margin-bottom: 0px;
    padding-bottom: 5px;
  }
}

/* Update the module styles */
.module {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    height: 100%;
    width: 100%;
    position: relative;
}

.module h4 {
    font-size: 19px;
    margin: 0 0 12px 0;
    text-align: left !important;
    width: 100%;
    position: relative;
    z-index: 2;
}

.module p {
    font-size: 13px !important;
    color: #666;
    margin: 0;
    text-align: left !important;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Media queries for responsive h4 */
@media (max-width: 1368px) and (max-height: 768px) {
    .module h4 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }
}

@media (max-width: 1336px) and (max-height: 768px) {
    .module h4 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }
}

/* Update the feature list styles */
.feature-list {
    padding: 0;
    margin: 15px auto 0; /* Changed back to auto for horizontal centering */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the list items container */
    width: 90%; /* Slightly reduced width to create visual balance */
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 15px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    width: 100%;
    text-align: left;
    

}


/* Ensure hardware acceleration */
.feature-list {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
}

.logo-container {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    margin-top: 5px;
    width: 100%;
}

.menu-logo {
    width: 120px;
    height: auto;
    opacity: 0;
    transform: translateY(20px) blur(5px);
    animation: logoAppear 0.6s ease-out forwards;
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Dark mode support */
body.dark-mode .menu-logo {
    filter: brightness(1.2);
}

/* Add smooth scroll behavior to html */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust this value to match your header height */
}

/* Optional: Add highlight effect when section is in view */
section:target {
    animation: highlight 1s ease-out;
}

@keyframes highlight {
    0% { background-color: rgba(144, 84, 208, 0.1); }
    100% { background-color: transparent; }
}

/* Hide ONLY Bootstrap's default dropdown arrows */
.dropdown-toggle.nav-link:not(:after) {
    display: none !important;
}

/* Override the hiding for our custom underline */
.nav-link.dropdown-toggle::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    height: 2px !important; /* MAKE IT THICC LIKE THE OTHERS */
    bottom: 0px !important;
    left: 0 !important;
    border-right: 0 solid transparent !important;
    border-left: 0 solid transparent !important;
    border-top: .15em solid;
    background-color: #9054d0 !important;
    transition: width var(--transition-speed) ease !important;
}

.nav-link.dropdown-toggle:hover::after,
.nav-link.dropdown-toggle.active::after,
.nav-link.dropdown-toggle.show::after {
    width: 85% !important;
}

/* Ensure consistent hover color for all nav-links including dropdown */
.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle.active,
.nav-link.dropdown-toggle.show {
    color: #8454d0 !important;
    text-shadow: 0 0 1px rgba(132, 84, 208, 0.5) !important;
}

/* Add new media query for smaller resolutions */
@media screen and (max-width: 1280px) and (max-height: 768px) {
  .product-details {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0px 20px 12px 15px; /* Adjust padding for smaller screens */
  }

  .product-details::-webkit-scrollbar {
    width: 4px;
  }



  .product-details::-webkit-scrollbar-thumb {
    border-radius: 15px;
    border: none; /* Remove border for cleaner look on small screens */
  }

  .mega-dropdown {
    height: auto !important;
    max-height: calc(100vh - 80px);
  }

  .mega-dropdown-inner {
    height: auto;
    max-height: calc(100vh - 90px);
  }

  .dropdown-content {
    height: auto;
    max-height: calc(100vh - 100px);
  }

  .product-categories {
    height: auto;
    max-height: calc(100vh - 100px);
  }
}

/* Add comprehensive responsive styles for product-banner-description */
@media (max-width: 1500px) {
  .product-banner-description {
    font-size: 18px;
  }
}

@media (max-width: 1200px) {
  .product-banner-description {
    font-size: 16px;
    max-width: 90%;
  }
}

@media (max-width: 992px) {
  .product-banner-description {
    font-size: 15px;
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .product-banner-description {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.4;
  }
}

@media (max-width: 576px) {
  .product-banner-description {
    font-size: 13px;
    line-height: 1.3;
  }
}

/* Existing responsive style */
@media (max-width: 1368px) and (max-height: 768px) {
  .product-banner-description {
    font-size: 16px;
    max-width: 90%;
  }
}

/* Add scrolling to menu container */
.mega-dropdown .dropdown-content {
    max-height: 75vh; /* Limit height to 75% of viewport height */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(155, 69, 197, 0.6) transparent; /* For Firefox */
}

/* Scrollbar styling for Webkit browsers */
.mega-dropdown .dropdown-content::-webkit-scrollbar {
    width: 3px !important; /* Added !important to ensure this takes precedence */
}

.mega-dropdown .dropdown-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.mega-dropdown .dropdown-content::-webkit-scrollbar-thumb {
    background-color: rgba(155, 69, 197, 0.6) !important;
    border-radius: 6px !important;
    border: none !important; /* Remove border for a cleaner look */
}

.mega-dropdown::-webkit-scrollbar {
    width: 3px !important; /* Thinner scrollbar */
}

.mega-dropdown::-webkit-scrollbar-track {
    background: transparent !important;
}

.mega-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(155, 69, 197, 0.6) !important;
    border-radius: 6px !important;
    border: none !important; /* Remove border for a cleaner look */
}

/* 
