.nav-item.has-mega > .nav-link::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-item.has-mega:hover > .nav-link::after {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: -130px;
  right: 0;
  background-color: #02020240;
  backdrop-filter: blur(30px);
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-width: max-content;
  width: 30vw;
  margin-left: calc(-17vw + 50%);
}
.menumega {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

.menumega img {
  width: 80px;
}
.nav-item.has-mega:hover .mega-menu {
  display: grid;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  width: 100%;
  background-color: #02020240;
  backdrop-filter: blur(99px);
  padding: 40px;
}

.mega-menu-column h4 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4a574;
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column li {
  margin-bottom: 12px;
}

.mega-menu-column a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.mega-menu-column a:hover {
  color: #d4a574;
  padding-left: 5px;
}

.mega-menu-column a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #d4a574;
  border-radius: 50%;
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-menu-column a:hover::before {
  opacity: 1;
}

@media (max-width: 1360px) {
  .mega-menu {
    padding: 30px;
  }

  .mega-menu-content {
    gap: 30px;
  }
}

/* Responsive - Laptop (1025px - 1024px) */
@media (max-width: 1024px) {
  .mega-menu-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .mega-menu {
    padding: 25px;
  }

  .mega-menu-column h4 {
    font-size: 13px;
    margin-bottom: 15px;
  }
}

/* Responsive - Tablet (600px - 768px) */
@media (max-width: 768px) {
  .nav-item.has-mega > .nav-link::after {
    float: right;
  }

  .mega-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    box-shadow: none;
    min-width: auto;
    margin-left: 0;
    width: 100%;
    background: #f9f9f9;
  }

  .mega-menu.active {
    display: grid;
  }

  .nav-item.has-mega:hover .mega-menu {
    display: none;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
  }

  .mega-menu-column {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
  }

  .mega-menu-column h4 {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .mega-menu-column li {
    margin-bottom: 8px;
  }

  .mega-menu-column a {
    font-size: 11px;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* Responsive - Mobile Extra (480px - 599px) */
@media (max-width: 599px) {
  .mega-menu-column h4 {
    font-size: 11px;
  }

  .mega-menu-column a {
    font-size: 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .mobile-toggle span {
    border-radius: 1px;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s ease-out;
}

.loader-container.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Animated background circles */
.bg-circles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circle {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: expand 3s ease-out infinite;
}

@keyframes expand {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.loader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
}

.logo-wrapper {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-border {
  position: absolute;
  width: 100%;
  height: 100%;

  border-radius: 50%;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.logo-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  animation:
    pulse-scale 2s ease-in-out infinite,
    float-logo 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.logo-img img {
  width: 450px;
  height: 450px;

  object-fit: contain;
}

.logo-wrapper:nth-child(2) .logo-img {
  animation-delay: 0.3s;
}

@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-25px);
  }
}

/* Connecting line animation */
.connector {
  position: absolute;
  height: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  background: #fff;
  box-shadow: 0 0 20px #fff;
  animation: flow 2s ease-in-out infinite;
}

@keyframes flow {
  0%,
  100% {
    width: 120px;
  }
  50% {
    width: 150px;
  }
}

/* Animated loading indicator */
.loading-indicator {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  animation: bounce 1.4s infinite ease-in-out;
  box-shadow: 0 0 10px #fff;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0) translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1) translateY(-20px);
    opacity: 1;
  }
}

.loading-text {
  color: #fff;
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 300;
  text-transform: uppercase;
  margin-top: 20px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 10px #fff;
  }
  50% {
    text-shadow: 0 0 30px 0 0 50px #fff;
  }
}

.progress-bar {
  width: 300px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #fff;
  background-size: 200% 100%;
  animation: progress 3s ease-in-out infinite;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

@media (max-width: 1204px) {
  .menu-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .toggle-submenu {
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.3s ease;
  }

  .content {
    opacity: 0;
    transition: opacity 0.8s ease-out 0.8s;
  }

  .content.visible {
    opacity: 1;
  }
  .sub-menu {
    display: none;
    overflow: hidden;
  }

  .menu-item-has-children.active > .sub-menu {
    display: block;
  }
  /* Hide mega by default */

  .mobile-navigation .menu {
    list-style: none;
    padding: 0;
  }

  .mobile-navigation .menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-navigation .menu a {
    display: flex;
    padding: 14px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    vertical-align: middle;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-navigation .sub-menu {
    display: none;
    padding-left: 15px;
  }

  .mobile-navigation .sub-menu li strong {
    display: block;
    padding: 10px 0 5px;
    font-size: 18px;
    color: #aaa;
  }
  .arrow1 {
    float: right;
    transition: transform 0.3s ease;
    color: white;
    vertical-align: middle;
    font-size: 16px;
  }
}
