/* Consolidated animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.2); }
  50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes iconShine {
  0% { transform: rotate(45deg) translateY(-100%); }
  100% { transform: rotate(45deg) translateY(100%); }
}

@keyframes activeButtonPulse {
  0%, 100% {
    box-shadow: 
      0 0 15px rgba(255, 0, 0, 0.5),
      0 0 30px rgba(255, 0, 0, 0.3),
      inset 0 0 15px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(255, 0, 0, 0.7),
      0 0 40px rgba(255, 0, 0, 0.4),
      inset 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  background: #000;
  color: white;
  position: relative;
  overflow-x: hidden;
}

.background-overlay {
  position: fixed;
  inset: 0; 
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.05) 0%, transparent 70%),
    linear-gradient(45deg, #000000, #1a0000, #000000);
  background-size: 200% 200%;
  z-index: -1;
  animation: gradientMove 15s ease infinite;
  filter: contrast(1.2);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  position: relative;
}

.container::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.1), transparent);
  pointer-events: none;
}

header {
  display: flex;
  position: sticky;
  top: 0;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo h1 {
  font-size: 36px;
  background: linear-gradient(90deg,white,hsl(0, 100%, 63%), hsl(0, 100%, 50%), hsl(0, 100%, 30%), hsl(0, 100%, 50%), hsl(0, 100%, 63%), hsl(0, 0%, 100%));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: shimmer 10s linear infinite;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
  position: relative;
  padding: 0 10px;
}

.logo h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.5;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

nav li {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 12px 24px;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.05), transparent);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

nav li.active {
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.3));
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2), inset 0 0 10px rgba(255, 0, 0, 0.1);
}

nav li:hover {
  transform: translateY(-2px);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2), inset 0 0 10px rgba(255, 0, 0, 0.1);
}

nav li.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
  animation: navGlow 2s infinite;
}

@keyframes navGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.equipped-suit {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 0, 0, 0.05));
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1), inset 0 0 10px rgba(255, 0, 0, 0.05);
  animation: glow 4s ease-in-out infinite;
}

.equipped-suit:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.15), inset 0 0 15px rgba(255, 0, 0, 0.1);
}

.equipped-suit-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.equipped-suit-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.05), transparent);
  pointer-events: none;
}

.section.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.4s ease-out;
}

.section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  z-index: -1;
}

.suits-grid, .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  padding: 16px;
}

.gadgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 16px;
}

.suit-card, .skill-card, .gadget-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 0 32px rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  animation: fadeIn 0.6s ease-out;
  transition: all 0.3s ease;
}

.suit-card {
  overflow: hidden;
}

.suit-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2), 0 0 50px rgba(255, 0, 0, 0.1);
}

.suit-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.suit-image img {
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.suit-card:hover .suit-image img {
  transform: scale(1.05);
}

.skill-card {
  padding: 24px;
  display: flex;
  gap: 24px;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.15);
}

.skill-icon {
  font-size: 40px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.2));
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2), inset 0 0 15px rgba(255, 0, 0, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 0, 0, 0.3);
  animation: glow 2s infinite;
  padding: 15px;
}

.skill-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: iconShine 3s ease-in-out infinite;
}

.skill-icon .icon {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gadget-card {
  overflow: hidden;
}

.gadget-card:hover {
  transform: translateY(-5px);
}

.gadget-image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.gadget-icon {
  font-size: 48px;
  animation: float 3s ease-in-out infinite;
}

.suit-details, .skill-details, .gadget-details {
  padding: 24px;
}

.suit-details h3, .skill-details h3, .gadget-details h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.suit-stats, .gadget-stats {
  margin-bottom: 24px;
}

.stat {
  margin-bottom: 12px;
}

.stat .label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.stat-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4444, #ff0000, #ff4444);
  background-size: 200% auto;
  animation: gradientMove 3s linear infinite;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: width 1s ease-out;
  position: relative;
  overflow: hidden;
}

.stat-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 2s infinite;
}

.skill-level {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.level-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.dot.active {
  background: linear-gradient(45deg, #ff4444, #ff0000);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.level-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.skill-details p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.equip-btn, .upgrade-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.2));
  border: 1px solid rgba(255, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  color: #ff0000;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.equip-btn:hover, .upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3), 0 0 30px rgba(255, 0, 0, 0.2);
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.1));
  border-color: rgba(255, 0, 0, 0.8);
  color: #fff;
}

.equip-btn.active {
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.6));
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.2);
  animation: activeButtonPulse 2s infinite;
}

.upgrade-btn:disabled {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.equip-btn::before, .upgrade-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.equip-btn:hover::before, .upgrade-btn:hover::before {
  left: 100%;
}

.equip-btn:hover:not(.active) {
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.3));
  border-color: rgba(255, 0, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.equip-btn.active:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.equip-btn.active::after {
  content: '✓';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.8;
}

.suit-card:has(.equip-btn.active) {
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), 0 0 40px rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .logo {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    padding: 5px 10px;
    gap: 10px;
  }

  nav li {
    padding: 8px 16px;
    font-size: 16px;
  }

  .suits-grid, .skills-grid, .gadgets-grid {
    grid-template-columns: 1fr;
  }

  .suit-image {
    height: 250px;
  }

  .skill-card {
    flex-direction: column;
    text-align: center;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .skill-icon .icon {
    font-size: 28px;
  }
}