/* ============================================================
   GLOBAL SPORTS CLUB — Custom CSS
   Dark industrial-luxury aesthetic
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --red:        #e52020;
  --red-dim:    rgba(229, 32, 32, 0.35);
  --red-faint:  rgba(229, 32, 32, 0.08);
  --dark:       #0a0a0a;
  --dark2:      #111111;
  --card:       #161616;
  --card2:      #1c1c1c;
  --border:     rgba(255,255,255,0.07);
  --border-red: rgba(229, 32, 32, 0.35);
  --text:       #f0f0f0;
  --muted:      #888888;
}

/* ─── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ─── Custom Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: #0a0a0a; }
::-webkit-scrollbar-thumb  { background: var(--red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ff3333; }

/* ─── Typography ─────────────────────────────────────────── */
.font-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ─── Noise / Grain Texture ──────────────────────────────── */
.noise-texture {
  position: relative;
}
.noise-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
}

/* ─── Section Diagonal Dividers ─────────────────────────── */
.clip-slant-down   { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.clip-slant-up     { clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%); }
.clip-slant-both   { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }
.clip-slant-hero   { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }

/* ─── Grid Background ────────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(229,32,32,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,32,32,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── Navbar ─────────────────────────────────────────────── */
#navbar {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
#navbar.scrolled {
  background-color: rgba(10,10,10,0.96) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(229,32,32,0.25), 0 4px 20px rgba(0,0,0,0.5);
}
.nav-link {
  position: relative;
  color: #aaa;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}
#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(229,32,32,0.12) 0%, transparent 50%),
    linear-gradient(225deg, rgba(229,32,32,0.06) 0%, transparent 40%),
    #0a0a0a;
}
.hero-red-line {
  position: absolute;
  top: 0;
  left: 15%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(229,32,32,0.3) 30%, rgba(229,32,32,0.1) 70%, transparent);
}

/* Animated headline underline */
.headline-accent {
  display: inline-block;
  position: relative;
}
.headline-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--red);
  opacity: 0.8;
  z-index: -1;
}

/* Stats ticker */
.stats-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 25s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.stats-ticker-track:hover { animation-play-state: paused; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 20px rgba(229,32,32,0.35), 0 0 40px rgba(229,32,32,0.12);
}
.btn-primary:hover {
  background: #ff2929;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(229,32,32,0.55), 0 0 60px rgba(229,32,32,0.2);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
  display: inline-block;
  transition: border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(229,32,32,0.15);
}
.btn-red-sm {
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 3px;
  display: inline-block;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 0 15px rgba(229,32,32,0.25);
}
.btn-red-sm:hover {
  background: #ff2929;
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(229,32,32,0.45);
}

/* ─── Cards ─────────────────────────────────────────────── */
.gym-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.gym-card:hover {
  border-color: var(--border-red);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(229,32,32,0.08);
}

/* Feature card icon wrapper */
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--red-faint);
  border: 1px solid rgba(229,32,32,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}
.gym-card:hover .feature-icon-wrap {
  background: rgba(229,32,32,0.15);
  border-color: rgba(229,32,32,0.4);
}

/* ─── Champion Cards (Why Choose Us) ─────────────────────── */
.champion-card {
  background: linear-gradient(160deg, rgba(229,32,32,0.22) 0%, rgba(12,12,12,0.98) 52%, #0a0a0a 100%);
  border: 1px solid rgba(229,32,32,0.2);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Glowing top edge */
.champion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
  opacity: 0.55;
  transition: opacity 0.35s ease;
}
/* Subtle corner glow blob */
.champion-card::after {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,32,32,0.18) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.champion-card:hover {
  transform: translateY(-7px);
  border-color: rgba(229,32,32,0.55);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 0 50px rgba(229,32,32,0.14);
}
.champion-card:hover::before { opacity: 1; }
.champion-card:hover::after  { opacity: 1.5; }

/* Icon circle inside champion cards */
.champion-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(229,32,32,0.14);
  border: 1px solid rgba(229,32,32,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.champion-card:hover .champion-icon {
  background: rgba(229,32,32,0.28);
  border-color: rgba(229,32,32,0.65);
  box-shadow: 0 0 24px rgba(229,32,32,0.35);
}

/* ─── Section Title ──────────────────────────────────────── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
}
.section-title .accent-word {
  color: var(--red);
}

/* ─── Opening Hours ──────────────────────────────────────── */
.hours-row {
  transition: background 0.2s;
}
.hours-row.today {
  background: rgba(229,32,32,0.08);
  border-left: 3px solid var(--red);
}

/* ─── Trainer Cards ──────────────────────────────────────── */
.trainer-card {
  position: relative;
  overflow: hidden;
}
.trainer-social {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.trainer-card:hover .trainer-social { opacity: 1; transform: translateY(0); }
.trainer-card .trainer-overlay {
  background: linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
}

/* Trainer avatar placeholder */
.trainer-avatar {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
}

/* ─── Testimonial Carousel ───────────────────────────────── */
.testimonial-wrapper {
  overflow: hidden;
  position: relative;
}
.testimonial-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonial-slide {
  flex-shrink: 0;
}
.star-icon { color: #e52020; }

/* Dot indicator */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  transition: background 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active {
  background: var(--red);
  transform: scale(1.4);
}

/* ─── Step Process ───────────────────────────────────────── */
.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: rgba(229,32,32,0.1);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.step-item:hover .step-number {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 30px rgba(229,32,32,0.4);
}
.step-connector {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(229,32,32,0.15));
  z-index: 1;
}

/* ─── Gallery ────────────────────────────────────────────── */
.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.gallery-thumb {
  transition: transform 0.5s ease;
  display: block;
  width: 100%;
}
.gallery-item:hover .gallery-thumb { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Filter buttons */
.filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  transition: all 0.25s;
  cursor: pointer;
}
.filter-btn:hover { border-color: rgba(229,32,32,0.4); color: #fff; }
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 20px rgba(229,32,32,0.3);
}

/* Gallery masonry placeholder */
.gallery-placeholder {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.5s ease;
}

/* ─── Contact Form ───────────────────────────────────────── */
.form-field {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #f0f0f0;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field::placeholder { color: #555; }
.form-field:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,32,32,0.15);
}
.form-field.field-error {
  border-color: #e52020;
  box-shadow: 0 0 0 3px rgba(229,32,32,0.2);
}
.error-msg {
  color: var(--red);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}
.form-field.field-error + .error-msg,
.error-msg.visible { display: block; }

/* ─── Membership Cards ───────────────────────────────────── */
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  border-color: var(--border-red);
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(229,32,32,0.08);
}
.plan-card.popular {
  border-color: rgba(229,32,32,0.45);
  box-shadow: 0 0 40px rgba(229,32,32,0.12);
}
.plan-card.popular:hover {
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 50px rgba(229,32,32,0.2);
}
.popular-tag {
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  position: absolute;
  top: 0;
  right: 0;
  border-bottom-left-radius: 8px;
}
.plan-check {
  color: var(--red);
  font-size: 1rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ─── Success Modal ──────────────────────────────────────── */
#success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}
#success-modal.show { display: flex; }
.modal-box {
  background: var(--card);
  border: 1px solid rgba(229,32,32,0.3);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  animation: modalIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(229,32,32,0.12);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

/* ─── Scroll Reveal Animations ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ─── Countdown Timer ────────────────────────────────────── */
.countdown-box {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(229,32,32,0.2);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  min-width: 64px;
  text-align: center;
}

/* ─── Gradient Placeholders ──────────────────────────────── */
.img-ph-1  { background: linear-gradient(135deg, #1a1a1a 0%, #2a1010 50%, #1a1a1a 100%); }
.img-ph-2  { background: linear-gradient(135deg, #0f1a1a 0%, #1a2a1a 100%); }
.img-ph-3  { background: linear-gradient(135deg, #1a1010 0%, #2d1515 100%); }
.img-ph-4  { background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%); }
.img-ph-5  { background: linear-gradient(135deg, #1a0a0a 0%, #2a1212 100%); }
.img-ph-6  { background: linear-gradient(135deg, #0a0a1a 0%, #15152a 100%); }
.img-ph-7  { background: linear-gradient(135deg, #0a1a0a 0%, #152515 100%); }
.img-ph-8  { background: linear-gradient(135deg, #1a1500 0%, #2a2000 100%); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer-link {
  color: #666;
  transition: color 0.25s;
}
.footer-link:hover { color: #fff; }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.social-icon:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
}

/* ─── Red Accent Left-border ─────────────────────────────── */
.red-left-border {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

/* ─── About section stat counter ────────────────────────── */
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

/* ─── Membership charges table ───────────────────────────── */
.charges-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.charges-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.charges-table tr:hover td { background: rgba(229,32,32,0.04); }
.charges-table tr:last-child td { border-bottom: none; }

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Misc Utilities ─────────────────────────────────────── */
.text-red  { color: var(--red); }
.bg-red    { background: var(--red); }
.border-red { border-color: var(--red); }

.red-dot::before {
  content: '●';
  color: var(--red);
  margin-right: 0.5rem;
  font-size: 0.5em;
  vertical-align: middle;
}

/* Scroll indicator arrow bounce */
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
.bounce { animation: bounce-y 1.8s ease infinite; }

/* Red glow pulse on active nav */
@keyframes red-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(229,32,32,0); }
  50%       { box-shadow: 0 0 20px rgba(229,32,32,0.4); }
}

/* Shimmer loader */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.shimmer {
  background: linear-gradient(90deg, #1a1a1a 25%, #242424 50%, #1a1a1a 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}
