* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Play", sans-serif;
  background: linear-gradient(
    135deg,
    #0a0e27 0%,
    #1a1438 25%,
    #2d1b3d 50%,
    #1a1438 75%,
    #0a0e27 100%
  );
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(138, 43, 226, 0.03) 2px,
      rgba(138, 43, 226, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 255, 0.03) 2px,
      rgba(0, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

header {
  position: relative;
  height: 35vh;
  overflow: hidden;
  z-index: 2;
}

header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.2) saturate(1.3);
}

header::after {
  content: "NEXUS GAMING";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: transparent;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(255, 0, 255, 0.3);
  animation: gradientShift 3s ease infinite;
  z-index: 3;
  letter-spacing: 0.3em;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

nav {
  position: relative;
  background: rgba(15, 15, 35, 0.85);
  backdrop-filter: blur(20px);
  margin: -50px auto 0;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(138, 43, 226, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.2);
  z-index: 100;
}


.navbar-brand:focus, .navbar-brand:hover{
  color: transparent;
}

@media screen and (min-width: 992px) {
  nav {
    width: 85%;
  }
}
@media screen and (max-width: 992px) {
  .navbar-nav {
    text-align: center;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  max-width: 45px;
  filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.6));
}

.navbar-brand {
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.navbar-toggler {
  border: 1px solid rgba(138, 43, 226, 0.5);
  background: rgba(138, 43, 226, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-item {
  margin: 0 5px;
}

.nav-link {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #b8b8ff !important;
  padding: 10px 20px !important;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #00ffff !important;
  background: rgba(0, 255, 255, 0.05);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  width: 70%;
}

.nav-link.active {
  color: #00ffff !important;
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.nav-link.active::before {
  width: 70%;
}

.games {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.card {
  margin-top: 40px;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 50, 0.7),
    rgba(40, 20, 60, 0.7)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
  background-size: 300% 300%;
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 60px rgba(138, 43, 226, 0.4),
    0 0 40px rgba(0, 255, 255, 0.2);
}

.card-img-top {
  padding: 15px;
  border-radius: 25px;
  transition: transform 0.4s ease;
  position: relative;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  color: #fff;
  flex: none;
}

.cart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cart-title h5 {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.badge {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.text-bg-primary {
  background: linear-gradient(135deg, #00ffff, #0080ff) !important;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.card-text {
  text-align: center;
  color: #b8b8ff;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

hr {
  border-color: rgba(138, 43, 226, 0.3) !important;
  opacity: 0.5;
  margin: 15px 0;
}

.badge-color {
  background: rgba(138, 43, 226, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: #d8b3ff;
  padding: 6px 12px;
  font-size: 12px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

.games-descripe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1438 50%, #2d1b3d 100%);
  z-index: 999;
  color: white;
  overflow-y: auto;
}

.games-descripe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(138, 43, 226, 0.05) 2px,
      rgba(138, 43, 226, 0.05) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 255, 0.05) 2px,
      rgba(0, 255, 255, 0.05) 4px
    );
  pointer-events: none;
}

.my-desc {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.my-desc header {
  height: auto;
  background: rgba(15, 15, 35, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.my-desc h1 {
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}


.my-desc .row {
  background: rgba(15, 15, 35, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.my-desc img {
  border-radius: 15px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.my-desc h4 {
  font-family: "Orbitron", sans-serif;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  margin-bottom: 20px;
}

.my-desc p {
  color: #b8b8ff;
  line-height: 1.8;
  margin-bottom: 15px;
}

.text-bg-info {
  background: linear-gradient(135deg, #8a2be2, #ff00ff) !important;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.btn-outline-warning {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  color: #00ffff;
  border: 2px solid #00ffff !important;
  background: transparent;
  padding: 12px 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.btn-outline-warning:hover {
  background: #00ffff;
  color: #0a0e27;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
  border: 2px solid #00ffff;
}

.loading {
  background: rgba(10, 14, 39, 0.95) !important;
  backdrop-filter: blur(10px);
}

.loader {
  width: 60px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: #00ffff;
  border-bottom-color: #ff00ff;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  header::after {
    font-size: 2rem;
    letter-spacing: 0.15em;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .nav-link {
    padding: 8px 15px !important;
  }

  .card {
    margin-top: 30px;
  }
}


::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 15, 35, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff, #8a2be2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00ffff, #ff00ff);
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body:first-of-type {
  flex-grow: 1;
}
