.desktop {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 25%, #1a2332 50%, #0f1419 75%, #0a0e27 100%);
  will-change: transform;
}

.backgroundLayer {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 25%, #1a2332 50%, #0f1419 75%, #0a0e27 100%);
  z-index: 0;
  will-change: transform;
}

.backgroundLayer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 75%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 153, 204, 0.06) 0%, transparent 50%);
  animation: neonGradientShift 25s ease-in-out infinite;
}

@keyframes neonGradientShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(45deg, #00d4ff, #00ffff);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 212, 255, 0.6), 0 0 8px rgba(0, 255, 255, 0.4);
  will-change: transform, opacity;
}

.desktopContent {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 2;
  padding: 25px;
  gap: 25px;
}

.topSection {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 15px 0;
}

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

.mainIconsGrid {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  padding: 25px 50px;
  background: rgba(0, 212, 255, 0.04);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.12), inset 0 1px 0 rgba(0, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.mainIconsGrid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.06) 0%,
    rgba(0, 255, 255, 0.03) 50%,
    rgba(0, 212, 255, 0.06) 100%
  );
  z-index: -1;
  border-radius: 30px;
}

.mainIconsGrid:hover {
  box-shadow: 0 16px 60px rgba(0, 212, 255, 0.18), 0 0 40px rgba(0, 255, 255, 0.12), inset 0 1px 0
    rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.35);
  transform: translateY(-2px);
}

.bottomSection {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

/* Performance optimizations */
.desktop * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Mobile responsive design with performance considerations */
@media (max-width: 1024px) {
  .desktopContent {
    padding: 20px;
    gap: 20px;
  }

  .mainIconsGrid {
    gap: 35px;
    padding: 20px 35px;
  }

  .particles {
    display: none; /* Hide particles on tablets for better performance */
  }
}

@media (max-width: 768px) {
  .desktopContent {
    padding: 15px;
    gap: 15px;
  }

  .topSection {
    padding: 10px 0;
  }

  .mainIconsGrid {
    gap: 25px;
    padding: 18px 25px;
    border-radius: 25px;
  }

  .backgroundLayer {
    animation: none; /* Disable background animation on mobile */
  }
}

@media (max-width: 480px) {
  .mainIconsGrid {
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 20px;
    justify-content: center;
    max-width: 100%;
  }

  .desktopContent {
    padding: 10px;
  }

  .particle {
    display: none; /* Hide all particles on mobile */
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .backgroundLayer::before {
    animation: none;
  }

  .particle {
    display: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
