/* ============================================
   Rohitech Solutions – Shared Design System
   ============================================ */

/* ---- CSS RESET & VARIABLES ---- */
:root {
  --gold: #FFD700;
  --gold-soft: #FFF3C4;
  --gold-dark: #B8860B;
  --gold-glow: rgba(255, 215, 0, .3);
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, .04);
  --border-subtle: rgba(255, 215, 0, .12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, .6);
  --text-muted: rgba(255, 255, 255, .35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .4);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

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

/* ---- BODY ---- */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- BACKGROUND AMBIENT ANIMATION ---- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Soft glowing orbs that drift slowly */
.bg-ambient .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbFloat ease-in-out infinite;
}

.bg-ambient .orb:nth-child(1) {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,215,0,.18), transparent 70%);
  left: -5%; top: 20%;
  animation-duration: 15s; animation-delay: 0s;
}
.bg-ambient .orb:nth-child(2) {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,165,0,.12), transparent 70%);
  right: -5%; top: 60%;
  animation-duration: 18s; animation-delay: 3s;
}
.bg-ambient .orb:nth-child(3) {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,215,0,.1), transparent 70%);
  left: 40%; bottom: 10%;
  animation-duration: 20s; animation-delay: 6s;
}

/* Small rising particles */
.bg-ambient .spark {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: sparkRise linear infinite;
}

.bg-ambient .spark:nth-child(4)  { left:  8%; animation-duration: 12s; animation-delay: 0s;   }
.bg-ambient .spark:nth-child(5)  { left: 18%; animation-duration: 15s; animation-delay: 2s;   width: 3px; height: 3px; }
.bg-ambient .spark:nth-child(6)  { left: 32%; animation-duration: 14s; animation-delay: 1s;   }
.bg-ambient .spark:nth-child(7)  { left: 48%; animation-duration: 16s; animation-delay: 4s;   width: 3px; height: 3px; }
.bg-ambient .spark:nth-child(8)  { left: 58%; animation-duration: 13s; animation-delay: 3s;   }
.bg-ambient .spark:nth-child(9)  { left: 72%; animation-duration: 17s; animation-delay: 5s;   width: 3px; height: 3px; }
.bg-ambient .spark:nth-child(10) { left: 85%; animation-duration: 14s; animation-delay: 2.5s; }
.bg-ambient .spark:nth-child(11) { left: 92%; animation-duration: 18s; animation-delay: 6s;   width: 3px; height: 3px; }
.bg-ambient .spark:nth-child(12) { left: 25%; animation-duration: 15s; animation-delay: 7s;   }
.bg-ambient .spark:nth-child(13) { left: 65%; animation-duration: 13s; animation-delay: 1.5s; width: 3px; height: 3px; }

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  15%  { opacity: .6; }
  50%  { transform: translate(60px, -40px) scale(1.15); opacity: .4; }
  85%  { opacity: .6; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}

@keyframes sparkRise {
  0%   { transform: translateY(100vh); opacity: 0; }
  10%  { opacity: .35; }
  50%  { opacity: .2; transform: translateY(50vh) translateX(15px); }
  90%  { opacity: .3; }
  100% { transform: translateY(-5vh) translateX(-10px); opacity: 0; }
}

/* ---- GLASSMORPHISM CARD ---- */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 215, 0, .08);
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- NAVIGATION BAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 10, 15, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar .brand img {
  height: 36px;
  width: auto;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: var(--gold);
  background: rgba(255, 215, 0, .08);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: #000;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, .4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 215, 0, .08);
  border-color: var(--gold);
}

.btn-back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 10px 18px;
  font-size: .85rem;
}

/* ---- GAME CARD ---- */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,215,0,.06), transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, .3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 215, 0, .08);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.game-card .card-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px var(--gold-glow); }
  50%      { box-shadow: 0 0 25px var(--gold-glow); }
}

.animate-in {
  animation: fadeInUp .6s ease both;
}

.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }
.animate-delay-5 { animation-delay: .5s; }
.animate-delay-6 { animation-delay: .6s; }
.animate-delay-7 { animation-delay: .7s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
  }
  .navbar .nav-links a {
    padding: 6px 10px;
    font-size: .8rem;
  }
  .btn-back {
    top: auto;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .navbar .nav-links {
    display: none;
  }
}
