:root {
  --bs-primary: #ff7b21;
  --bs-primary-rgb: 255, 123, 33;
  --bs-secondary: #6d4c35;
  --bs-secondary-rgb: 109, 76, 53;
  --bs-body-font-family: "Poppins", sans-serif;
  --bs-body-color: #343a40;
  --bs-body-bg: #f8f9fa;
}

.hero-gradient {
  background: linear-gradient(
      135deg,
      rgba(202, 108, 20, 0.8),
      rgba(49, 20, 0, 0.9)
    ),
    url("/asset/bgjumbo.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
}

.hero-footer-gradient {
  background: linear-gradient(
      135deg,
      rgba(202, 108, 20, 0.8),
      rgba(49, 20, 0, 0.9)
    ),
    url("/asset/footer.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
}

.navbar {
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.navbar-brand {
  font-weight: 700;
  color: var(--bs-primary) !important;
}

.nav-link {
  font-weight: 600;
  color: #555;
}

.nav-link.active,
.nav-link:hover {
  color: var(--bs-primary);
}

.brand-logo {
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -2px;
  display: inline-flex;
  align-items: center;
}

.logo-text-brebes {
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 2px;
  margin-left: 10px;
  text-transform: uppercase;
}

.tagline {
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-cta {
  background-color: var(--bs-secondary);
  border: none;
  border-bottom: 5px solid #4a3424;
  transition: all 0.2s ease-in-out;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.8rem 2.5rem;
}

.btn-cta:hover {
  transform: translateY(-3px);
  border-bottom-width: 8px;
  color: white;
}

.btn-cta:active {
  transform: translateY(1px) !important;
  border-bottom-width: 4px !important;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 2rem;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--bs-primary);
}

.event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.event-card .card-header {
  font-weight: 700;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.social-icon {
  transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
  transform: scale(1.2);
  color: white !important;
}

/* Animation for scroll */
.reveal {
  position: relative;
  transform: translateY(100px);
  opacity: 0;
  transition: 1s all cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Preloader/Loading Screen Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 165, 80, 0.95),
    rgba(255, 123, 33, 0.98)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: white;
}

.brand-logo-loader {
  font-family: "Poppins", sans-serif;
  text-align: center;
}

.brand-logo-loader .logo-text-playon {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -2px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-logo-loader .logo-text-brebes {
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.8rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-top: -10px;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.runner-spinner {
  font-size: 3rem;
  color: white;
  animation: runnerBounce 1.5s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes runnerBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.1);
  }
}

.loading-text {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: white;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.loading-progress {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 20px auto 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: white;
  border-radius: 2px;
  animation: progressAnimation 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

  50% {
    width: 100%;
    transform: translateX(0%);
  }

  100% {
    width: 100%;
    transform: translateX(100%);
  }
}

/* Main content fade-in animation */
#mainContent {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#mainContent.fade-in {
  opacity: 1;
}
