:root {
  --bg1: #050814;
  --bg2: #0a1630;
  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.1);
  --text: #e6edf3;

  --blue: #00c6ff;
  --purple: #7c4dff;
}

/* 🌌 ANIMATED GRADIENT BACKGROUND & INITIALIZATION */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Copperplate, Papyrus, fantasy;
  color: var(--text);
  background: linear-gradient(-45deg, #050814, #0a1630, #0b1b3a, #050814);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite, pageFade 0.6s ease;
}

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

@keyframes pageFade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* 🚆 HEADER WITH TRAIN EFFECT */
.header {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* moving train line */
.header::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  bottom: 40px;
  animation: trainLine 3s linear infinite;
}

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

/* train emoji animation */
.header::after {
  content: "🚆";
  position: absolute;
  bottom: 25px;
  left: -50px;
  font-size: 28px;
  animation: trainMove 4s linear infinite;
}

@keyframes trainMove {
  0% { left: -50px; }
  100% { left: 110%; }
}

.header h1 {
  font-size: 42px;
  margin: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 📱 GRID (mobile app style cards) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  padding: 20px;
}

/* ✨ GLASS BUTTONS */
.card-btn {
  display: block;
  padding: 14px;
  text-align: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  transition: 0.3s;
  box-shadow: 0 0 0 transparent;
}

/* glowing launcher effect */
.card-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.6);
  background: linear-gradient(135deg, rgba(0,198,255,0.2), rgba(124,77,255,0.2));
}

/* disabled button */
.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* 🌐 SOCIAL */
.social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px;
}

.social img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.social img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(0,198,255,0.5);
}

/* 🧊 GLASS CONTENT PANEL */
.content-box {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(15px);
}

h2 {
  color: var(--blue);
}

/* 🔄 COMBINED SIDEBAR */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 250px;
  overflow-x: hidden;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 60px;
  transform: translateX(-100%);
  transition: 0.3s ease;
  z-index: 999;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar a {
  display: block;
  padding: 15px;
  color: #aaa;
  text-decoration: none;
}

.sidebar a:hover {
  color: white;
  background: rgba(0,198,255,0.15);
}

/* MENU BUTTON */
.openbtn {
  position: fixed;
  top: 15px;
  left: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  z-index: 1001;
}

/* ================= LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #050814, #000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.logoGlow {
  font-size: 40px;
  font-weight: bold;
  background: linear-gradient(90deg, #00c6ff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseGlow 1.5s infinite;
}

.loaderBar {
  width: 180px;
  height: 4px;
  margin-top: 20px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  border-radius: 10px;
}

.loaderBar::before {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #00c6ff, #7c4dff);
  animation: loadMove 1s infinite;
}

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

/* ================= SIDEBAR FIX ================= */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 998;
}

.parallax {
  position: fixed;
  inset: 0;
  background: url('logo.gif');
  background-size: cover;
  opacity: 0.3;
  z-index: -1;
  transform: translateZ(0);
}

/* CARDS */
.card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h2 {
  font-size: 18px;
  margin: 8px 0;
}

.card p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.download-btn {
  display: block;
  text-align: center;
  padding: 10px;
  margin: 5px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(135deg, #00c6ff, #7c4dff);
  color: black;
  transition: 0.3s;
}

.download-btn:hover {
  transform: scale(1.05);
}

/* 📦 COMBINED CONTAINER */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto !important;
  padding: 20px;
}

/* SEARCH FIELD */
.search-container {
  max-width: 220px;
  margin: 20px;
}

#searchInput {
  width: 100%;
  padding: 12px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease;
}

#searchInput::placeholder {
  color: #aaa;
}

#searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 150, 0.4);
}

.card-title {
  font-size: 1.2rem;
  color: white;
}

.card-content {
  padding: 15px;
}

.card-desc {
  font-size: 0.9rem;
  color: #bbb;
}

/* SLIDER COMPONENTS */
.simple-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px;
  scrollbar-width: none;
}

.simple-slider::-webkit-scrollbar {
  display: none;
}

.slide-item {
  flex: 0 0 80%;
  scroll-snap-align: center;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: 0.3s;
  animation: zoomIn 0.6s ease;
}

.slide-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.nav-btn {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: black;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0,255,150,0.6);
}

/* BADGES & TAGS */
.recommend-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: orange;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/*.addon-tag {
  position: absolute; /* Fixed broken property syntax here */
/*  top: 4%;
  right: 4%;
  padding: 2% 5%;
  font-size: 75%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  z-index: 3;
  background: rgba(255, 226, 89, 0.15);
  color: #ffe259;
  border: 1px solid rgba(255, 226, 89, 0.3);
}

.addon-tag.exclusive {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}