/* ── RESET & VARIABLES ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #22c55e;
  --green-bright: #34d399;
  --green-glow: rgba(34, 197, 94, 0.4);
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-lighter: #111111;
  --text: #ffffff;
  --text-dim: #aaaaaa;
  --text-muted: #666666;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

html {
  scroll-behavior: smooth;
}

html {
  background: #000000;
}

body {
  font-family: "Roboto", sans-serif;
  background: #000000;
  color: var(--text);
  /* max-width: 1440px; */
  margin: 0 auto;
  overflow-x: hidden;
}

/* ── TOP HEADER BAR ── */
.top-header {
  background: #000000;
  padding: 30px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.5px solid #222;
}

.top-header-title {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* ── HERO SECTION ── */
.hero-section {
  padding: 80px 24px 60px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-section.has-bg {
  background: url("../images/Desktop.svg") no-repeat center center / cover;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -20px;
  /* Shift up a bit */
}

/* Pseudo Overlay */
.hero-section.has-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-section.has-bg > * {
  position: relative;
  z-index: 1;
  /* Content above overlay */
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-bright);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
  }

  to {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.4);
  }
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-bright);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }

  70% {
    transform: scale(1.1);
    opacity: 0.8;
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.hero-title .highlight {
  color: var(--green-bright);
}

.hero-subtitle {
  font-size: 14px;
  color: #b9ccb5;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  justify-content: center;
}

.btn-gradient {
  background: linear-gradient(180deg, #59f6bb 0%, #34d399 100%);
  color: white;
  padding: 15px 35px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 1;
  /* 3D Effect */
  box-shadow:
    0 4px 0 #28a779,
    0 8px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-gradient-botttom {
  background: linear-gradient(180deg, #59f6bb 0%, #34d399 100%);
  color: white;
  padding: 15px 35px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 1;
  /* 3D Effect */
  box-shadow:
    0 4px 0 #28a779,
    0 8px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* Waves Animation (Duller & Behind) */
.btn-gradient::before,
.btn-gradient::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgb(89 246 187);
  border-radius: 22px;
  transform: translate(-50%, -50%);
  z-index: -2;
  /* Deep behind */
  opacity: 0.15;
  /* Much duller */
  pointer-events: none;
}

.btn-gradient::before {
  animation: btn-waves 2.5s infinite ease-out;
}

.btn-gradient::after {
  animation: btn-waves 2.5s infinite ease-out 1.25s;
}

@keyframes btn-waves {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.6, 2.2);
    opacity: 0;
  }
}

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 13px 26px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ── STATS ROW ── */
.stats-row {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: #0a0a0a;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--green-bright);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── SECTION HEADER ── */
.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.section-header p {
  font-size: 13px;
  color: #b9ccb5;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* ── MATCH CARDS ── */
.match-card {
  background: var(--bg-card);
  border: 0.76px solid #ffffff0d;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  position: relative;   /* add */
  z-index: 1;           /* add */
}

.match-card:hover {
  border: 0.76px solid #00ff6666;
  /* transform: translateY(-2px); */
  box-shadow: 0px 0px 11.46px 0px #00ff6666;
  z-index: 10;          /* add — no backdrop-filter */
}
.match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.league-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.league-icon {
  font-size: 14px;
}

.league-name {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}

.match-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
  padding: 2px 7px;
}

.match-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.team-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.team-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-name {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.score-center {
  text-align: center;
  flex: 0 0 auto;
}

.score-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--text);
}

.score-sep {
  color: var(--text3);
  font-size: 28px;
  margin: 0 2px;
}

.match-bottom {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.see-more-wrap {
  text-align: center;
  padding: 12px 0 24px;
}

.see-more-link {
  font-size: 13px;
  color: #b9ccb5;
  text-decoration: underline;
  font-weight: 400;
  cursor: pointer;
}

/* ── FEATURES ── */
.features-section {
  background: #000000;
  padding: 28px 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.feature-item {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.feature-item:hover {
  border-color: rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.feature-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
}

/* =========================
   SLIDER
========================= */

.reviews-slider {
  width: 100%;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 16px;

  overflow-x: auto;

  scroll-snap-type: x mandatory;

  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

/* =========================
   REVIEW CARD WIDTH
========================= */

.review-card {
  flex: 0 0 100%;

  scroll-snap-align: start;

  margin-bottom: 0;
}

/* =========================
   MOBILE 390PX
========================= */

@media (max-width: 390px) {
  .review-card {
    flex: 0 0 100%;
  }
}

/* =========================
   DOTS
========================= */

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;

  margin-top: 20px;
}

.dot {
  width: 6px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  width: 6px;
  /* Distinct active size */
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* ── TRUSTED ── */
.trusted-section {
  padding: 80px 20px;
}

.trusted-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 30px;
}

.trusted-heading span {
  color: var(--green);
}

.trusted-sub {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 20px;
}

.stars {
  color: var(--green);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-align: center;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.review-stars {
  color: var(--green-bright);
  font-size: 12px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-bright);
}

.reviewer-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.reviewer-role {
  font-size: 10px;
  color: var(--text3);
}

/* ── CTA WRAP ── */
.cta-section-wrap {
  padding: 40px 24px;
}

.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(52, 211, 153, 0.1) 0%,
    transparent 70%
  );
}

.cta-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.cta-desc {
  font-size: 14px;
  color: #b9ccb5;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 100px 0 100px 0;
  font-size: 16px;
  color: #b9ccb5;
  font-weight: 400;
}

footer a {
  color: #b9ccb5;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--green);
}

.footer-links {
  margin-bottom: 8px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.hero-title.reveal {
  transition-delay: 0.1s;
}

.hero-subtitle.reveal {
  transition-delay: 0.2s;
}

.hero-cta.reveal {
  transition-delay: 0.3s;
}

/* Bottom CTA staggered delays */
.cta-title.reveal {
  transition-delay: 0.1s;
}

.cta-desc.reveal {
  transition-delay: 0.2s;
}

.cta-section .hero-cta.reveal {
  transition-delay: 0.3s;
}

/* Premium button effect */
.btn-gradient {
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
  box-shadow:
    0 6px 0 #28a779,
    0 12px 20px rgba(0, 0, 0, 0.25);
}

.btn-gradient:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 2px 0 #28a779,
    0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero {
  animation: fadeUp 0.5s ease both;
}

.stats-row {
  animation: fadeUp 0.5s ease 0.1s both;
}

.match-card {
  animation: fadeUp 0.5s ease both;
}

.review-card {
  animation: fadeUp 0.5s ease both;
}

.feature-item {
  animation: fadeUp 0.5s ease both;
}

.match-card:nth-child(2) {
  animation-delay: 0.08s;
}

.match-card:nth-child(3) {
  animation-delay: 0.16s;
}

.match-card:nth-child(4) {
  animation-delay: 0.24s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.06s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.12s;
}

.feature-item:nth-child(4) {
  animation-delay: 0.18s;
}

.review-card:nth-child(2) {
  animation-delay: 0.08s;
}

/* =========================
   DESKTOP WEB VIEW (MIN 1024PX)
========================= */

@media (min-width: 1024px) {
  /* CENTER CONTENT ALIGNMENT */
  /* .hero-section, */
  .section,
  .trusted-section,
  .cta-section-wrap {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .top-header-title {
    font-size: 28px;
  }

  /* 3 CARDS PER ROW FOR MATCHES */
  #matches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 90%;
  }

  .section-header {
    grid-column: 1 / -1;
    /* Header stays full width */
  }

  .match-card {
    margin-bottom: 0;
  }

  /* 3 CARDS IN REVIEWS (SIDE BY SIDE) */
  .reviews-track {
    overflow: visible;
    /* Disable slider on desktop */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    scroll-snap-type: none;
  }

  .review-card {
    flex: none;
    width: 100%;
    scroll-snap-align: none;
  }

  .slider-dots {
    display: none;
    /* Dots not needed on desktop grid view */
  }

  /* HERO ADJUSTMENTS */
  .hero-section.has-bg {
    /* max-width: 1440px; */
    margin-left: auto;
    margin-right: auto;
    min-height: 600px;
    /* Taller on desktop */
  }

  .hero-title {
    font-size: 64px;
    /* Larger title for desktop */
  }

  .hero-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }
}

.review-card:nth-child(3) {
  animation-delay: 0.16s;
}


/* ── SWIPER MATCH SLIDER ── */
.matchSwiper {
  width: 100%;
  padding: 0 10px 40px;
  overflow: hidden; /* back to default */
}

/* But pagination/buttons still need to show, so clip only horizontally */
.matchSwiper .swiper-wrapper {
  overflow: visible;
}

.matchSwiper .swiper-slide {
  height: auto;           /* let card define its own height */
}

.section {
  overflow: visible;  /* ensure no parent is clipping */
}

.matchSwiper .match-card {
  height: 100%;
  margin-bottom: 0;       /* override the 12px bottom margin */
  animation: none;        /* disable conflicting fadeUp on slides */
}

/* Swiper nav button colors to match your theme */
.matchSwiper .swiper-button-next,
.matchSwiper .swiper-button-prev {
  color: var(--green);
}

.matchSwiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.2);
}

.matchSwiper .swiper-pagination-bullet-active {
  background: var(--green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}