/* Fix carousel height jump */
#games .carousel-inner {
  transition: min-height 0.3s;
}
nav#topNav {
  border-bottom: none !important;
  background-color: #fff !important;
  box-shadow: none !important;
  transition: border-bottom 0.25s, background-color 0.25s, box-shadow 0.25s;
}
nav#topNav.scrolled {
  background-color: #fff !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; /* Bootstrap shadow-sm */
}
/* Warbyte custom theme overrides (Bootstrap based) */
body {
  font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
}

/* Hero */
header#hero {
  background-color: #fff !important;
}
header#hero .container {
  background: none !important;
}
.hero-logo {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  animation: fadeIn 0.9s ease both;
}

/* Hero wordmark */
.hero-wordmark {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18));
  background: none !important;
}
@media (max-width: 768px) {
  .hero-wordmark {
    width: 100%;
    height: auto;
  }
}

/* Hero slogan */
.hero-slogan {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.4, 1.4, 0.6, 1),
    transform 1.2s cubic-bezier(0.4, 1.4, 0.6, 1);
}
.hero-slogan.visible {
  opacity: 1;
  transform: none;
}
@media (min-width: 768px) {
  .hero-slogan {
    font-size: 2.7rem;
  }
}

/* Carousel */
#gamesCarousel .carousel-item {
  padding: 1.5rem 0.5rem 2.5rem;
}
#gamesCarousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
#gamesCarousel .carousel-indicators {
  gap: 0.6rem;
}
#gamesCarousel .carousel-indicators [data-bs-target] {
  background-color: #6c757d; /* muted gray for visibility */
  opacity: 0.55;
  border: 0;
  transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
}
#gamesCarousel .carousel-indicators [data-bs-target]:hover {
  opacity: 0.85;
  transform: scale(1.15);
}
#gamesCarousel .carousel-indicators [data-bs-target]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35);
}
#gamesCarousel .carousel-indicators .active {
  background-color: #0d6efd;
  opacity: 1;
  box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px #0d6efd;
}
#gamesCarousel .carousel-control-prev-icon,
#gamesCarousel .carousel-control-next-icon {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
}
.game-thumb-wrap {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}
.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
  background: #f8f9fa;
}
@media (min-width: 768px) {
  .game-thumb-wrap {
    width: 320px;
    height: 320px;
  }
}

/* Navbar underline effect */
#topNav .nav-link {
  position: relative;
  font-weight: 500;
}
#topNav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #0d6efd;
  transition: width 0.3s;
}
#topNav .nav-link:hover::after,
#topNav .nav-link:focus::after,
#topNav .nav-link.active::after {
  width: 100%;
}

/* Footer links */
.hover-opacity {
  opacity: 0.75;
  transition: opacity 0.25s, transform 0.25s;
}
.hover-opacity:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
}

footer .fa {
  font-size: 1.4rem;
  line-height: 1;
  display: inline-block;
}

/* Forms */
form .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility tweaks */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Store icons */
.store-icons .store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background: #fff;
  transition: all 0.35s;
  position: relative;
}
.store-icons .store-icon i {
  font-size: 1.55rem;
  color: #495057;
  transition: color 0.35s, transform 0.35s;
}
.store-icons .store-icon:hover {
  background: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 6px 18px -4px rgba(13, 110, 253, 0.35);
  transform: translateY(-4px);
}
.store-icons .store-icon:hover i {
  color: #fff;
  transform: scale(1.15);
}

/* Careers section */
.careers-bg-section {
  position: relative;
  min-height: 420px;
  background: #fff;
  background-image: url("images/careers-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.careers-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(1.5px);
  z-index: 1;
  pointer-events: none;
}
.careers-bg-section .container {
  position: relative;
  z-index: 2;
}
.careers-bg-section .lead,
.careers-bg-section .text-secondary,
.careers-bg-section .h1,
.careers-bg-section h2,
.careers-bg-section a.btn {
  color: #222 !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.55);
}
.careers-bg-section .lead {
  font-weight: 500;
}
@media (min-width: 992px) {
  header#hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .careers-bg-section {
    min-height: 520px;
  }
}
.hero-cta-group {
  margin-top: 3.5rem !important;
}
