/* ============================================================
   Kinetic Sports – Page-Specific Overrides
   Uses the same blue accent theme as Race-Insight
   ============================================================ */

/* Override CSS variables for the blue theme */
:root {
  --primary-color: #00d2ff;
  --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #0078ff 100%);
  --accent-color: #00d2ff;
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #0078ff 100%);
  --ks-glow: rgba(0, 210, 255, 0.15);
  --ks-glow-strong: rgba(0, 210, 255, 0.35);
}

/* Body background with blue radial glow */
body {
  background-color: #000000;
  background-image: radial-gradient(
    circle at 50% 50%,
    var(--ks-glow) 0%,
    rgba(0, 0, 0, 1) 70%
  );
}

/* Background animation override */
.background-animations {
  background: radial-gradient(
    circle at center,
    var(--ks-glow) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Button overrides */
.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #00d2ff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: #00d2ff;
  transform: translateY(-2px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#ks-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: transparent !important;
  position: relative;
  overflow: hidden;
}

#ks-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(0, 120, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(0, 210, 255, 0.06) 0%,
      transparent 50%
    );
  animation: ks-hero-glow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ks-hero-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, 2%) scale(1.05);
  }
}

#ks-hero .hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
}

/* ============================================================
   HERO VISUALS (3D Floating Cards)
   ============================================================ */
.hero-visuals {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.center-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--primary-gradient);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.8); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.6; }
}

.floating-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 50%;
  animation: spin-ring 20s linear infinite;
}

.floating-ring.ring-2 {
  width: 110%;
  height: 110%;
  border: 1px dashed rgba(0, 210, 255, 0.15);
  animation: spin-ring 30s linear infinite reverse;
}

@keyframes spin-ring {
  0% { transform: rotateX(60deg) rotateZ(0deg); }
  100% { transform: rotateX(60deg) rotateZ(360deg); }
}

.floating-card {
  position: absolute;
  width: 160px; /* Fixed width for stability during transition */
  height: 80px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
  animation: float-card 6s ease-in-out infinite;
  animation-delay: var(--anim-delay);
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  cursor: default;
  overflow: hidden;
}

.card-front {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-card i {
  font-size: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.floating-card span {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.card-1 {
  top: 15%;
  left: 10%;
}

.card-2 {
  top: 50%;
  right: 5%;
}

.card-3 {
  bottom: 15%;
  left: 20%;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) translateZ(0) rotateX(0) rotateY(0); }
  25% { transform: translateY(-15px) translateZ(20px) rotateX(5deg) rotateY(5deg); }
  50% { transform: translateY(0) translateZ(40px) rotateX(10deg) rotateY(10deg); }
  75% { transform: translateY(15px) translateZ(20px) rotateX(5deg) rotateY(5deg); }
}


.ks-hero__badge {
  background: rgba(0, 210, 255, 0.1);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  animation: ks-badge-pulse 3s ease-in-out infinite;
}

@keyframes ks-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(0, 210, 255, 0.15);
  }
}

.ks-hero__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #b0e0ff 50%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.02em;
}

.ks-hero__subtitle {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.35rem);
  color: var(--text-color-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin: 0;
}

.ks-hero__actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.ks-hero__actions .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 25px rgba(0, 210, 255, 0.4);
  animation: ks-cta-glow 2.5s ease-in-out infinite;
}

.ks-hero__actions .btn-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

@keyframes ks-cta-glow {
  0%, 100% { box-shadow: 0 6px 25px rgba(0, 210, 255, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(0, 210, 255, 0.6), 0 0 60px rgba(0, 210, 255, 0.15); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.ks-stats-bar {
  width: 100%;
  padding: 3rem 5%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 210, 255, 0.03) 50%,
    transparent 100%
  );
  border-top: 1px solid rgba(0, 210, 255, 0.08);
  border-bottom: 1px solid rgba(0, 210, 255, 0.08);
}

.ks-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.ks-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.ks-stat__value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.ks-stat__label {
  font-size: 0.85rem;
  color: var(--text-color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.ks-section {
  min-height: auto;
  padding: 6rem 5%;
}

.ks-section .section-content {
  padding: 0;
}

.ks-section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.ks-section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d2ff;
  margin-bottom: 0.75rem;
}

.ks-section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.ks-section__desc {
  font-size: 1.05rem;
  color: var(--text-color-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   FEATURE CARDS (What We Do / Offerings)
   ============================================================ */
.ks-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ks-feature-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ks-feature-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.ks-feature-card__hover-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ks-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 210, 255, 0.15);
}

.ks-feature-card:hover .ks-feature-card__content {
  opacity: 0.05; /* Keeps a very faint trace of context */
  filter: blur(4px);
}

.ks-feature-card:hover .ks-feature-card__hover-img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ks-feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.3);
  flex-shrink: 0;
}

.ks-feature-card__icon i {
  font-size: 1.4rem;
  color: #fff;
}

.ks-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.ks-feature-card p {
  color: var(--text-color-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================================
   WHY KINETIC (Advantage Cards)
   ============================================================ */
.ks-advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ks-advantage-card {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.ks-advantage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.3);
}

.ks-advantage-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ks-advantage-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ks-advantage-card p {
  color: var(--text-color-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   SPORTS DISCIPLINES (Icon Grid)
   ============================================================ */
.ks-disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.ks-discipline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.ks-discipline:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.05);
  transform: translateY(-3px);
}

.ks-discipline__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.1);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.ks-discipline__icon i {
  font-size: 1.6rem;
  color: #00d2ff;
}

.ks-discipline__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.ks-cta-section {
  text-align: center;
  padding: 6rem 5%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 210, 255, 0.06) 50%,
    transparent 100%
  );
}

.ks-cta-section .section-content {
  padding: 0;
}

.ks-cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ks-cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.ks-cta-box p {
  color: var(--text-color-secondary);
  max-width: 500px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   CONTACT FORM — blue focus styling
   ============================================================ */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

/* ============================================================
   CARD TAGLINE & SPORT TAGS
   ============================================================ */
.ks-card-tagline {
  font-weight: 700;
  font-style: italic;
  color: #00d2ff !important;
  font-size: 0.95rem !important;
}

.ks-card-sports {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.ks-sport-tag {
  background: rgba(0, 210, 255, 0.1);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============================================================
   WAITLIST FORM SECTION
   ============================================================ */
#ks-waitlist {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 210, 255, 0.04) 50%, transparent 100%);
}

#ks-waitlist .form-section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

#ks-waitlist .form-section-text h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(135deg, #fff 0%, #b0e0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1.5rem;
}

#ks-waitlist .form-section-text p {
  color: var(--text-color-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

#ks-waitlist .form-section-form {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
}

#ks-waitlist .form-group {
  margin-bottom: 1rem;
}

#ks-waitlist .form-group input,
#ks-waitlist .form-group select,
#ks-waitlist .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

#ks-waitlist .form-group select {
  cursor: pointer;
  appearance: auto;
}

#ks-waitlist .form-group select option {
  background: #1a1a1a;
  color: #fff;
}

#ks-waitlist .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

#ks-waitlist .btn-primary {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.privacy-statement {
  font-size: 0.78rem;
  color: var(--text-color-secondary);
  opacity: 0.7;
  margin: 0.5rem 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  #ks-waitlist .form-section-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #ks-waitlist .form-section-form {
    padding: 1.5rem;
  }
}

/* ============================================================
   FOOTER OVERRIDES
   ============================================================ */
.site-footer {
  border-top-color: rgba(0, 210, 255, 0.1);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.ks-animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.ks-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.ks-animate.delay-1 {
  transition-delay: 0.1s;
}
.ks-animate.delay-2 {
  transition-delay: 0.2s;
}
.ks-animate.delay-3 {
  transition-delay: 0.3s;
}
.ks-animate.delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #ks-hero .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .ks-hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .ks-features-grid,
  .ks-advantages-grid {
    grid-template-columns: 1fr;
  }

  .ks-disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ks-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .ks-stat__value {
    font-size: 2rem;
  }

  .ks-cta-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .ks-disciplines-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ks-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .ks-hero__actions .btn {
    width: 100%;
  }
}

/* ============================================================
   QUOTE BAR
   ============================================================ */
.ks-quote-bar {
  padding: 4rem 5%;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 210, 255, 0.03) 50%, transparent 100%);
}

.ks-quote {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.ks-quote p {
  font-size: 1.35rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.ks-quote cite {
  font-size: 0.95rem;
  color: #00d2ff;
  font-style: normal;
  font-weight: 500;
}

/* ============================================================
   NAVBAR CTA EMPHASIS
   ============================================================ */
.header .header-action-item .btn-primary {
  animation: ks-cta-glow 2.5s ease-in-out infinite;
}
