/* =========================================================
   IRONFIT GYM — Core Stylesheet
   Design tokens: deep space-violet background, magenta/cyan
   neon duo accent, electric-green + ember highlights.
   ========================================================= */

:root{
  --bg-deep:      #06040f;
  --bg-panel:     #0d0a1c;
  --bg-panel-2:   #120e26;
  --line:         rgba(255,255,255,0.08);

  --pink:         #ff2e9a;
  --pink-soft:    #ff6fc0;
  --blue:         #2ea6ff;
  --blue-soft:    #6fd0ff;
  --violet:       #8b3cf7;
  --green:        #22e29a;
  --ember:        #ff7a2e;

  --text-hi:      #f6f5ff;
  --text-mid:     #b7b3d0;
  --text-low:     #7c789a;

  --font-display: 'Rajdhani', 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  background: var(--bg-deep);
  color: var(--text-mid);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* ---------- ambient background ---------- */
.bg-noise{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(139,60,247,0.20), transparent 60%),
    radial-gradient(55% 40% at 88% 18%, rgba(255,46,154,0.16), transparent 60%),
    radial-gradient(50% 45% at 50% 95%, rgba(46,166,255,0.14), transparent 60%);
}

#particle-canvas{
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

main, header, footer{ position: relative; z-index: 1; }

/* ---------- typography helpers ---------- */
.font-display{ font-family: var(--font-display); }

.text-gradient{
  background: linear-gradient(90deg, var(--pink), var(--violet) 55%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--pink-soft);
}
.eyebrow::before{
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  display: inline-block;
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn-neon{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .03em;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(255,46,154,0.6);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-neon:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 34px -6px rgba(255,46,154,0.75);
}

.btn-outline{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-hi);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.btn-outline:hover{
  border-color: var(--blue-soft);
  background: rgba(46,166,255,0.08);
  transform: translateY(-2px);
}

.btn-outline .icon-circle, .btn-neon .icon-circle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ---------- nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6,4,15,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-link{
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-mid);
  font-size: .92rem;
  transition: color .2s ease;
}
.nav-link::after{
  content:"";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  transition: width .25s ease;
  border-radius: 2px;
}
.nav-link:hover{ color: var(--text-hi); }
.nav-link:hover::after{ width: 100%; }
.nav-link.active{ color: var(--text-hi); }
.nav-link.active::after{ width: 100%; }

.logo-mark{
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--pink), var(--violet), var(--blue));
  box-shadow: 0 0 22px -4px rgba(255,46,154,.7);
}

/* ---------- cards / panels ---------- */
.panel{
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line);
  border-radius: 20px;
}

.feature-card{
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.feature-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}

.icon-badge{
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-ring{
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* ---------- reveal-on-scroll ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"]{ transform: translateX(-40px); }
[data-reveal="left"].is-visible{ transform: translateX(0); }
[data-reveal="right"]{ transform: translateX(40px); }
[data-reveal="right"].is-visible{ transform: translateX(0); }
[data-reveal="zoom"]{ transform: scale(.9); }
[data-reveal="zoom"].is-visible{ transform: scale(1); }

/* stagger children */
[data-reveal-group] > *{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal-group].is-visible > *{
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group].is-visible > *:nth-child(1){ transition-delay: .05s; }
[data-reveal-group].is-visible > *:nth-child(2){ transition-delay: .15s; }
[data-reveal-group].is-visible > *:nth-child(3){ transition-delay: .25s; }
[data-reveal-group].is-visible > *:nth-child(4){ transition-delay: .35s; }
[data-reveal-group].is-visible > *:nth-child(5){ transition-delay: .45s; }
[data-reveal-group].is-visible > *:nth-child(6){ transition-delay: .55s; }

/* ---------- slider ---------- */
.swipe-track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1.5rem;
  padding-bottom: .5rem;
  cursor: grab;
}
.swipe-track.dragging{ cursor: grabbing; scroll-behavior: auto; }
.swipe-track::-webkit-scrollbar{ display: none; }
.swipe-track{ scrollbar-width: none; -ms-overflow-style: none; }

.swipe-item{
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.slider-arrow{
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items:center; justify-content:center;
  color: var(--text-hi);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.slider-arrow:hover{
  background: linear-gradient(90deg, var(--pink), var(--blue));
  border-color: transparent;
  transform: scale(1.06);
}

/* ---------- gym visual blocks (CSS-drawn, no external photos) ---------- */
.visual-block{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255,46,154,0.35), transparent 55%),
    radial-gradient(120% 100% at 90% 100%, rgba(46,166,255,0.35), transparent 55%),
    linear-gradient(160deg, #1a1330, #0b0818 70%);
}
.visual-block .grid-lines{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
}

.avatar-ring{
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

/* ---------- offer banner ---------- */
.offer-banner{
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(255,46,154,0.35);
  background:
    radial-gradient(70% 140% at 0% 50%, rgba(255,46,154,0.18), transparent 60%),
    radial-gradient(70% 140% at 100% 50%, rgba(46,166,255,0.18), transparent 60%),
    linear-gradient(180deg, #120e26, #0a0716);
  overflow: hidden;
}

/* ---------- form elements ---------- */
.field{
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1.1rem;
  color: var(--text-hi);
  transition: border-color .2s ease, background .2s ease;
}
.field:focus{
  outline: none;
  border-color: var(--pink-soft);
  background: rgba(255,255,255,0.06);
}
.field::placeholder{ color: var(--text-low); }

/* ---------- mobile nav ---------- */
#mobile-menu{
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
#mobile-menu.open{ max-height: 480px; }

/* ---------- misc ---------- */
.divider-fade{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
}

::selection{
  background: var(--pink);
  color: #fff;
}

/* scrollbar */
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--bg-deep); }
::-webkit-scrollbar-thumb{ background: linear-gradient(180deg, var(--pink), var(--violet)); border-radius: 10px; }

@media (prefers-reduced-motion: reduce){
  [data-reveal], [data-reveal-group] > *{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html{ scroll-behavior: auto; }
}

.blog-card img, .gallery-tile{ transition: transform .5s ease; }
.gallery-tile:hover{ transform: scale(1.04); }

.pill{
  display:inline-flex; align-items:center; gap:.4rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .72rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
