/* SEO & UX enhancements – layered on top of original Betsgate theme */

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-two,
.section-one,
.parallax-section,
.section-three {
  scroll-margin-top: 80px;
}

.main-header.sticky {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  animation: slideDown 0.35s ease;
}

/* Home hero: show one slide before Owl Carousel JS loads */
.main-banner .owl-carousel:not(.owl-loaded) {
  overflow: hidden;
  position: relative;
}

.main-banner .owl-carousel:not(.owl-loaded) > div:not(:first-child) {
  display: none;
}

.main-banner .owl-carousel:not(.owl-loaded) > div:first-child {
  width: 100%;
}

/* Home hero: keep slider copy clear of the header logo */
@media (min-width: 993px) {
  .main-banner .owl-carousel .carousel-caption {
    top: auto;
    bottom: 22%;
    left: max(260px, 20%);
    max-width: min(520px, 42%);
    transform: none;
    z-index: 2;
  }

  .main-banner .owl-carousel .carousel-caption .slider_title {
    font-size: clamp(42px, 4.2vw, 60px);
  }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.solution-col,
.usage-content,
.info-col,
.price-list {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-col:hover {
  transform: translateY(-4px);
}

.form-alert {
  display: none;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
}

.form-alert.success {
  display: block;
  background: #e8f8e8;
  color: #1b6b1b;
  border: 1px solid #8fd48f;
}

.form-alert.error {
  display: block;
  background: #fdeaea;
  color: #8b1a1a;
  border: 1px solid #f5a8a8;
}

.form-alert.loading {
  display: block;
  background: #fff8e6;
  color: #664d00;
  border: 1px solid #fccc04;
}

.contact-form button[type="submit"]:disabled,
.demo-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#cookie-box[hidden] {
  display: none !important;
}

.soft-article {
  padding: 40px 0 80px;
  background: #fff;
}

.soft-article .container {
  max-width: 960px;
}

.soft-article h1,
.soft-article h2,
.soft-article h3 {
  font-family: 'Acme', sans-serif;
  margin: 24px 0 12px;
}

.soft-article p,
.soft-article li {
  line-height: 1.75;
  color: #333;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.betsgate-logo {
  display: block;
  width: 180px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.betsgate-logo--footer {
  margin-bottom: 12px;
}

.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;
}

.top-footer .footer-social li a::before {
  display: inline-block;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 38px;
}

.footer-lang {
  margin: 0 0 18px;
}

.footer-lang-label {
  display: block;
  margin-bottom: 10px;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lang-switcher--footer {
  display: inline-flex;
  justify-content: center;
}

.top-footer .footer-title--sub {
  display: block;
  margin-top: 22px;
}

.main-header .main-logo .betsgate-logo {
  max-height: 52px;
}

.main-header .navbar-header .main-logo {
  width: 180px;
}

@media only screen and (max-width: 992px) {
  .main-header .navbar-header .main-logo {
    width: 155px;
  }
}

@media only screen and (max-width: 992px) {
  .betsgate-logo {
    width: 155px;
    max-height: 44px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  float: right;
  margin-top: 8px;
  margin-right: 10px;
}

.header-actions--mobile {
  display: none;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(252, 204, 4, 0.65);
  box-shadow: 0 2px 12px rgba(252, 204, 4, 0.25);
}

.lang-switcher .lang-link {
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  padding: 0 5px !important;
  opacity: 0.75;
  text-decoration: none !important;
  line-height: 1;
}

.lang-switcher .lang-link.active,
.lang-switcher .lang-link:hover {
  color: #fccc04 !important;
  opacity: 1;
}

.lang-switcher .lang-sep {
  color: #666;
  font-size: 13px;
  user-select: none;
}

@media only screen and (max-width: 992px) {
  .header-actions--mobile {
    display: flex;
    margin-top: 4px;
    margin-right: 0;
  }

  .main-header .navbar-header .navbar-toggle {
    margin-left: 0;
  }
}

.page-404 .main-header {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.92);
}

.error-page {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.error-page__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
}

.error-page__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(252, 204, 4, 0.12), transparent 45%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.9) 100%);
}

.error-page__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-page__code {
  margin: 0 0 12px;
  font-family: 'Acme', 'Fira Sans', sans-serif;
  font-size: clamp(88px, 18vw, 160px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(to right, #fccc04, #ff9100);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 32px rgba(252, 204, 4, 0.15);
}

.error-page__title {
  margin: 0 0 16px;
  color: #fff;
  font-family: 'Acme', 'Fira Sans', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.error-page__text {
  margin: 0 auto 28px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
}

.error-page__btn-outline {
  background: transparent !important;
  color: #fccc04 !important;
  border: 2px solid rgba(252, 204, 4, 0.75);
  box-shadow: none !important;
}

.error-page__btn-outline:hover {
  background: rgba(252, 204, 4, 0.12) !important;
  color: #fff !important;
}

.error-page__links-label {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.error-page__links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-page__links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.error-page__links a:hover {
  background: rgba(252, 204, 4, 0.14);
  border-color: rgba(252, 204, 4, 0.45);
  color: #fccc04;
}

@media only screen and (max-width: 992px) {
  .error-page {
    min-height: auto;
    padding: 100px 0 64px;
  }

  .error-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-page__actions .section-btn-one {
    width: 100%;
    text-align: center;
  }
}

/* ── Home page visual polish ── */

.main-banner .owl-carousel .owl-item > div {
  position: relative;
  overflow: hidden;
}

.main-banner .owl-carousel .owl-item > div::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.15) 100%),
    radial-gradient(circle at 18% 40%, rgba(252, 204, 4, 0.14), transparent 52%);
  pointer-events: none;
}

.main-banner .owl-carousel .carousel-caption {
  z-index: 2;
}

.main-banner .owl-carousel .owl-item.active img {
  animation: heroKenBurns 9s ease-out forwards;
  transform-origin: center center;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.main-banner .owl-carousel .owl-item.active .slider_title {
  animation: heroCaptionIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.main-banner .owl-carousel .owl-item.active .slider_text {
  animation: heroCaptionIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.main-banner .owl-carousel .owl-item.active .slider_button {
  animation: heroCaptionIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

@keyframes heroCaptionIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-banner::after {
  display: block !important;
  top: auto;
  bottom: -1px;
  height: 110px;
  opacity: 0.85;
  background-image: url(/static/themes/nano_lite/images/betsgate/banner-border.png);
}

.main-banner .owl-carousel .carousel-caption .slider_title {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.main-banner .owl-carousel .carousel-caption .slider_text {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.main-banner .owl-carousel .carousel-caption .slider_button {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.main-banner .owl-carousel .carousel-caption .slider_button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: btnShimmer 3.5s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 70% { left: -120%; }
  100% { left: 180%; }
}

@media (min-width: 993px) {
  .main-banner .owl-carousel .owl-nav,
  .main-banner .owl-carousel .owl-buttons {
    display: block !important;
    z-index: 3;
  }

  .main-banner .owl-carousel .owl-nav .owl-prev,
  .main-banner .owl-carousel .owl-nav .owl-next,
  .main-banner .owl-carousel .owl-buttons .owl-prev,
  .main-banner .owl-carousel .owl-buttons .owl-next {
    width: 54px;
    height: 54px;
    line-height: 54px;
    border-radius: 50%;
    background: rgba(252, 204, 4, 0.92) !important;
    color: #111 !important;
    opacity: 0.85;
    box-shadow: 0 4px 20px rgba(252, 204, 4, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .main-banner .owl-carousel .owl-nav .owl-prev:hover,
  .main-banner .owl-carousel .owl-nav .owl-next:hover,
  .main-banner .owl-carousel .owl-buttons .owl-prev:hover,
  .main-banner .owl-carousel .owl-buttons .owl-next:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(252, 204, 4, 0.55);
  }
}

.main-banner .owl-carousel .owl-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
}

.main-banner .owl-carousel .owl-page span {
  width: 11px;
  height: 11px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(252, 204, 4, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.main-banner .owl-carousel .owl-page.active span,
.main-banner .owl-carousel .owl-page:hover span {
  background: #fccc04;
  transform: scale(1.15);
}

.section-one {
  position: relative;
}

.section-one::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(252, 204, 4, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

.section-one > .nn_container {
  position: relative;
  z-index: 1;
}

.section-one .special-head::after {
  background-image: url(/static/themes/nano_lite/images/betsgate/title-border.png);
  filter: drop-shadow(0 0 8px rgba(252, 204, 4, 0.35));
}

.section-one .solution-list .solution-col {
  padding: 22px 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(252, 204, 4, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.section-one .solution-list .solution-col:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(252, 204, 4, 0.55);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(252, 204, 4, 0.18);
}

.section-one .solution-list .solution-col .solution-icon {
  box-shadow:
    0 0 0 3px rgba(252, 204, 4, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.section-two .solution-img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: solutionFloat 6s ease-in-out infinite;
}

.section-two .solution-img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 8px 12px 36px rgba(0, 0, 0, 0.18), 0 0 24px rgba(252, 204, 4, 0.12);
}

@keyframes solutionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section-two .solution-title::after {
  background-image: url(/static/themes/nano_lite/images/betsgate/title-border.png);
}

.section-two .usage-content {
  box-shadow: inset 0 0 0 1px rgba(252, 204, 4, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section-two .usage-content:hover {
  box-shadow:
    inset 0 0 0 1px rgba(252, 204, 4, 0.45),
    0 8px 24px rgba(252, 204, 4, 0.12);
  transform: translateY(-2px);
}

.section-two .usage-btn,
.parallax-section .section-btn-one,
.section-three .section-btn-one {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-two .usage-btn:hover,
.parallax-section .section-btn-one:hover,
.section-three .section-btn-one:hover {
  transform: translateY(-2px);
  box-shadow:
    -2px 4px 20px rgba(252, 204, 4, 0.55),
    2px 4px 20px rgba(255, 145, 0, 0.45);
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(252, 204, 4, 0.1), transparent 45%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
}

.parallax-section > .nn_container {
  position: relative;
  z-index: 1;
}

.parallax-section .section-head {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.parallax-section .section-text-lg {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.section-three {
  position: relative;
}

.section-three::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 204, 4, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.section-three > .nn_container {
  position: relative;
  z-index: 1;
}

.section-three .section-head,
.section-three .section-text-lg {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-36px);
}

.reveal--right {
  transform: translateX(36px);
}

.reveal--left.is-visible,
.reveal--right.is-visible {
  transform: translateX(0);
}

@media only screen and (max-width: 992px) {
  .main-banner::after {
    height: 56px;
  }

  .section-one .solution-list .solution-col {
    margin-bottom: 8px;
  }

  .section-two .solution-img {
    animation: none;
  }
}
