/* =========================================================
   HOME PAGE styles
   ========================================================= */

/* HERO */
.hero {
  position: relative;
  min-height: max(100vh, 720px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: -80px; /* eat header offset */
  padding-top: 120px;
}
.hero-bg-photo {
  position: absolute; inset: 0;
  background: url('hero.jpeg') center/cover no-repeat;
  filter: saturate(0.9) brightness(0.75);
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: saturate(0.9) brightness(0.75);
}
@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12) translateY(-1%); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,2,46,0.5) 0%, rgba(2,2,46,0.1) 35%, rgba(2,2,46,0.8) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(0,0,102,0.55) 0%, transparent 50%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 80px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.live-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--crimson);
  background: rgba(197, 29, 52, 0.12);
  border: 1px solid rgba(197, 29, 52, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
}
.live-dot .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 0 var(--crimson);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(197,29,52,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(197,29,52,0); }
  100% { box-shadow: 0 0 0 0 rgba(197,29,52,0); }
}

.hero-line {
  display: block;
  animation: rise .9s cubic-bezier(.2,.7,.1,1) .2s both;
}
.hero-line.alt {
  animation-delay: .45s;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 86px);
  word-break: normal;
  hyphens: none;
  overflow-wrap: normal;
  max-width: calc(100% - 340px);
}
@media (max-width: 1100px) {
  .hero h1 { max-width: 100%; font-size: clamp(36px, 7vw, 80px); }
}
.hero h1 .alt { color: var(--lime); display: block; }
.hero p.lead {
  max-width: 560px;
  margin: 24px 0 36px;
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-dim);
  line-height: 1.55;
  animation: rise 1s cubic-bezier(.2,.7,.1,1) .9s both;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: rise 1s cubic-bezier(.2,.7,.1,1) 1.1s both;
}

/* Hero side stats */
@keyframes heroSideIn {
  from { opacity: 0; translate: 0 30px; }
  to { opacity: 1; translate: 0 0; }
}
.hero-side {
  position: absolute; z-index: 2;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  width: 280px;
  animation: heroSideIn 1s cubic-bezier(.2,.7,.1,1) 1.3s both;
}
.hero-side-card {
  background: rgba(10, 10, 61, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.hero-side-card .label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  color: var(--lime);
}
.hero-side-card .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  margin-top: 6px;
}
.hero-side-card .sub { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

@media (max-width: 1100px) { .hero-side { display: none; } }

.hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--lime), transparent);
}

/* MARQUEE */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--navy-900);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee-track {
  display: inline-flex; gap: 48px; padding-right: 48px;
  animation: marq 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee-track span::after {
  content: ""; width: 6px; height: 6px; background: var(--lime); border-radius: 50%;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* NEXT MATCH STRIP */
.next-match {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--navy-900) 100%);
  position: relative;
}
.next-match-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}
.match-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: "";
  position: absolute; inset: -1px;
  background: radial-gradient(circle at 50% -10%, rgba(173,201,47,0.18), transparent 60%);
  pointer-events: none;
}
.match-team {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  position: relative;
}
.team-shield {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--navy);
}
.team-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.team-league {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.match-center {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 260px;
}
.match-date {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--lime);
}
.match-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
}
.countdown {
  display: flex; gap: 10px; margin-top: 8px;
}
.countdown .cd {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 60px;
}
.countdown .cd .n {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1;
}
.countdown .cd .u {
  display: block; font-size: 9px; letter-spacing: 0.22em; color: var(--text-mute);
  text-transform: uppercase; margin-top: 4px;
}
.match-cta { margin-top: 16px; }

@media (max-width: 768px) {
  .match-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .match-time { font-size: 48px; }
}

/* EVENTS GRID PREVIEW */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap; gap: 16px;
}
.section-head .right { display: flex; gap: 10px; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.event-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.1,1), box-shadow .35s;
  background: var(--surface);
  transform-style: preserve-3d;
  will-change: transform;
}
.event-card[data-tilt]:hover {
  box-shadow: 0 30px 80px -30px rgba(173,201,47,0.4), 0 20px 40px -20px rgba(0,0,0,0.7);
}
.event-card[data-tilt]::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 320px at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.18), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.event-card[data-tilt]:hover::before { opacity: 1; }
.event-card-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s;
  transform: translateZ(0);
}
.event-card:hover .event-card-img { transform: scale(1.06) translateZ(20px); }
.event-card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,2,46,0.1) 0%, rgba(2,2,46,0.2) 40%, rgba(2,2,46,0.95) 100%);
}
.event-card-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
  color: var(--text);
}
.event-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.event-tag {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.18em;
  padding: 6px 10px; border-radius: 999px;
  background: var(--lime); color: var(--navy); font-weight: 600;
}
.event-tag.concert { background: var(--sky); }
.event-tag.official { background: var(--crimson); color: #fff; }
.event-date-chip {
  text-align: right;
  font-family: var(--font-display);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 8px 12px;
  line-height: 1;
}
.event-date-chip .d { font-size: 22px; font-weight: 700; }
.event-date-chip .m { font-size: 10px; letter-spacing: 0.2em; color: var(--lime); text-transform: uppercase; }
.event-card-bottom .title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 90%;
}
.event-card-bottom .sub {
  color: var(--text-dim);
  margin-top: 8px; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.event-card-bottom .sub .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }

@media (max-width: 1024px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } }

/* STATS / ABOUT BLOCK */
.about-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,102,0.4) 100%),
    url('https://images.unsplash.com/photo-1577223625816-7546f13df25d?w=1400&q=85') center/cover no-repeat;
}
.about-img .badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--lime);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}
.stat-card .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--accent, var(--lime));
  line-height: 1;
}
.stat-card .l {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .about-block { grid-template-columns: 1fr; gap: 40px; }
}

/* NEWS STRIP */
.news-strip {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at top right, rgba(173,201,47,0.08), transparent 60%),
    var(--bg);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color .3s, transform .35s cubic-bezier(.2,.7,.1,1), box-shadow .35s;
  cursor: pointer;
  transform-style: preserve-3d;
  position: relative;
  will-change: transform;
}
.news-card[data-tilt]::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 280px at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.12), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.news-card[data-tilt]:hover::before { opacity: 1; }
.news-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(173,201,47,0.3);
}
.news-card .img {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
}
.news-card .body {
  padding: 24px;
}
.news-card .meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); font-family: var(--font-display);
}
.news-card .meta .cat { color: var(--lime); }
.news-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  margin: 14px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* CTA BAND */
.cta-band {
  padding: 80px var(--gutter);
  background: var(--lime);
  color: var(--navy);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "DUSHANBE";
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(180px, 30vw, 480px);
  line-height: 0.8;
  left: -3%;
  bottom: -20%;
  color: rgba(0,0,102,0.08);
  pointer-events: none;
  white-space: nowrap;
}
.cta-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  max-width: 900px;
}
.cta-inner .btn {
  background: var(--navy); color: var(--lime);
}
.cta-inner .btn:hover { background: #000; }

/* =============== SECTION VARIANTS =============== */
.section--navy { background: var(--navy-900); }

/* =============== HERO TITLE 3D (moved from inline) =============== */
.hero-title {
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.7,.1,1);
}
/* accent-colored line in hero title uses CSS variable */
.hero h1 .alt { color: var(--accent, var(--lime)); }

/* =============== PARTICLES =============== */
.particle--0 { background: var(--accent, var(--lime)); }
.particle--1 { background: var(--sky); }
.particle--2 { background: #fff; }

/* =============== SECTION LEAD / SUBTITLE =============== */
.section-lead { color: var(--text-dim); margin-top: 8px; }

/* =============== EVENT CARDS STAGGER =============== */
.events-grid .event-card:nth-child(2) { transition-delay: 60ms; }
.events-grid .event-card:nth-child(3) { transition-delay: 120ms; }
.events-grid .event-card:nth-child(4) { transition-delay: 180ms; }
.events-grid .event-card:nth-child(5) { transition-delay: 240ms; }
.events-grid .event-card:nth-child(6) { transition-delay: 300ms; }

/* =============== TEAM SHIELDS (semantic variants) =============== */
.team-shield--home { background: var(--accent, var(--lime)); }
.team-shield--away { background: #fff; }

/* =============== ABOUT BLOCK PROSE =============== */
.about-block p {
  color: var(--text-dim);
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
}
.about-block p + p { margin-top: 12px; }

/* CTA button spacing in about block */
.about-cta { margin-top: 28px; }

/* NEWS STRIP STAGGER */
.news-grid .news-card:nth-child(2) { transition-delay: 60ms; }
.news-grid .news-card:nth-child(3) { transition-delay: 120ms; }

/* ==== Mobile tweaks for home page ==== */

/* Tablet / large mobile — 900px */
@media (max-width: 900px) {
  .hero { min-height: 92vh; }
  .hero-content { padding: 0 var(--gutter) 80px; }
  .hero h1 { font-size: clamp(32px, 8vw, 64px); }
  .hero p.lead { font-size: 16px; margin: 20px 0 28px; max-width: 100%; }
  .hero-scroll { display: none; }
  .next-match { padding: 80px 0; }
  .section-head { align-items: flex-start; }
  .match-card { padding: 24px 20px; }
  .team-shield { width: 72px; height: 72px; }
  .team-name { font-size: 18px; }
  .match-time { font-size: 40px; }
  .countdown .cd { padding: 8px 10px; min-width: 52px; }
  .countdown .cd .n { font-size: 18px; }
}

/* Small mobile — 560px */
@media (max-width: 560px) {
  .hero { min-height: 88svh; }
  .hero-content { padding: 0 var(--gutter) 100px; }
  .hero h1 { font-size: clamp(26px, 8.5vw, 44px); }
  .hero-top { margin-bottom: 16px; }
  .hero p.lead { font-size: 15px; margin: 16px 0 24px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding: 12px 16px; font-size: 11px; }
  .marquee-track span { font-size: 16px; gap: 32px; }
  .marquee-track { gap: 32px; }
  .event-card { aspect-ratio: 4/3; }
  .event-card-body { padding: 18px; }
  .event-card-bottom .title { font-size: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-card .n { font-size: 36px; }
  .cta-inner h2 { font-size: 26px; }
}

/* XS — 380px */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(20px, 7vw, 30px); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
