:root {
  --bg1: #6366f1;
  --bg2: #4f46e5;
  --bg3: #3730a3;
  --bg4: #1e1b4b;
  --bg5: #8b5cf6;
}

html, body {
  height: 100%;
}

body {
  min-height: 100%;
  background: radial-gradient(ellipse at center, #1e1b4b 0%, #0f0c29 50%, #000000 100%);
  background-attachment: fixed;
  color: #fff;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: starwarsGlow 10s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  pointer-events: none;
  z-index: -1;
  animation: starwarsStars 20s linear infinite;
}

@keyframes starwarsGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes starwarsStars {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

header.navbar {
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.95) 0%, rgba(30, 27, 75, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

header.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
  animation: starwarsScan 2s linear infinite;
}

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

header.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.bg-primary {
  --bs-bg-opacity: 1;
  background-color: #1e1b4b !important;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #6366f1;
  --bs-btn-border-color: #6366f1;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #4f46e5;
  --bs-btn-hover-border-color: #4f46e5;
  --bs-btn-focus-shadow-rgb: 99, 102, 241;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #3730a3;
  --bs-btn-active-border-color: #3730a3;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #6366f1;
  --bs-btn-disabled-border-color: #6366f1;
}
.logo-img {
  width: 100px;
  height: auto;
  margin-right: .5rem;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .5));
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #111;
  transition: transform 0.3s ease;
}

.carousel-item:hover img {
  transform: scale(1.02);
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--bg1);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  color: #9ca3af;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: #0ea5e9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #38bdf8;
}

.breadcrumb-item.active {
  color: #ffffff;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6b7280;
  margin: 0 0.5rem;
}

/* Hero Section */
.navbar-nav .nav-link.active, 
.navbar-nav .nav-link.show {
  color: #ffc107 !important;
}

.navbar-nav .nav-link:hover {
  color: var(--bg1) !important;
  transform: translateY(-2px);
}

.game-card {
  background: #000000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--bg1);
}

.game-card:focus-within {
  outline: 3px solid var(--bg1);
  outline-offset: 2px;
}

.game-thumb {
  width: 100%;
  height: 200px;
  background: #222;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-thumb {
  transform: scale(1.05);
}

.blog-footer{
  padding: 1rem;
}
.providers-logos img {
  object-fit: contain;
  background: #444;
  border-radius: .5rem;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.providers-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

footer {
  background: linear-gradient(135deg, #000, #1a1a1a);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-login,
.btn-register {
  min-width: 120px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login:hover,
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

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

.btn-login:hover::before,
.btn-register:hover::before {
  left: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-card {
    margin-bottom: 1rem;
  }
  
  .carousel-item img {
    height: 250px;
  }
  
  .btn-login,
  .btn-register {
    min-width: 100px;
    font-size: 0.9rem;
  }
  
  .logo-img {
    width: 80px;
  }
}

@media (max-width: 576px) {
  .game-card {
    margin-bottom: 0.75rem;
  }
  
  .carousel-item img {
    height: 200px;
  }
  
  .btn-login,
  .btn-register {
    min-width: 45%;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Focus States untuk Accessibility */
.btn:focus,
.nav-link:focus,
.game-card:focus {
  outline: 3px solid var(--bg1);
  outline-offset: 2px;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Hover Effects untuk Interactive Elements */
.navbar-brand:hover {
  transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: var(--bg1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0ea5e9, #3b82f6, #8b5cf6, #ef4444);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -22px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #0ea5e9;
  backdrop-filter: blur(10px);
}

.timeline-content h4 {
  margin-bottom: 0.5rem;
  color: #fbbf24;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .carousel-controls {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
