/* ==========================================================================
   JJ Kickbox landing — global styles
   Sections: variables → base → navbar → hero → features → schedule →
   pricing → trainers → testimonials → footer → language switcher → responsive
   Auth/legal styles: public/auth.css, public/legal.css
   ========================================================================== */

:root {
  --bg-dark: #0c0c0c;
  --bg-darker: #050505;
  --bg-card: #161616;
  --primary: #ff0055;
  --primary-glow: rgba(255, 0, 85, 0.6);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --font-main: "Inter", sans-serif;
  --font-display: "Poppins", sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
  background-color: #ff3377;
  box-shadow: 0 0 25px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: inset 0 0 10px rgba(255, 0, 85, 0.1);
}

.btn-outline:hover {
  background: rgba(255, 0, 85, 0.1);
  box-shadow: inset 0 0 20px rgba(255, 0, 85, 0.3);
  text-shadow: 0 0 5px var(--primary);
}

.glow-effect {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 15px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 25px var(--primary-glow), 0 0 5px white;
  }
  100% {
    box-shadow: 0 0 15px var(--primary-glow);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  transition: var(--transition);
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-lang-slot {
  display: flex;
  align-items: center;
}

.nav-cta {
  white-space: nowrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  min-width: 36px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px var(--primary-glow);
}

.logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.logo img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom-in 20s infinite alternate;
}

@keyframes zoom-in {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(12, 12, 12, 0.4) 0%,
    rgba(12, 12, 12, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.glitch-text {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  position: relative;
  text-shadow: 2px 2px var(--primary);
  margin-bottom: 10px;
}

.sub-headline {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--primary-glow);
}

.hero-text {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Features Section */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.accent-slash {
  color: var(--primary);
  font-weight: 900;
  margin-left: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.icon-box {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Schedule Section */
.schedule-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.day-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  transition: var(--transition);
  clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
}

.day-btn.active,
.day-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.schedule-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
}

.schedule-day {
  display: none;
  animation: fadeIn 0.5s ease;
}

.schedule-day.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.class-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.class-row:last-child {
  border-bottom: none;
}

.class-row:hover {
  background: rgba(255, 0, 85, 0.05);
  padding-left: 30px;
  border-left: 3px solid var(--primary);
}

.class-row .time {
  font-weight: 700;
  color: var(--primary);
  width: 150px;
}

.class-row .class-name {
  font-weight: 600;
  font-size: 1.1rem;
  flex: 1;
  min-width: 0;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.pricing-card {
  background: var(--bg-card);
  padding: 40px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: var(--transition);
  clip-path: polygon(0 0, 100% 0, 100% 95%, 90% 100%, 0 100%);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 0, 85, 0.1);
}

.pricing-card.popular {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
  z-index: 10;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.price {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  margin-bottom: 30px;
  font-family: var(--font-display);
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.features-list {
  margin-bottom: 30px;
  text-align: left;
}

.features-list li {
  margin-bottom: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li i {
  color: var(--primary);
}

/* Trainers Section */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.trainer-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.trainer-img {
  height: 400px;
  overflow: hidden;
  position: relative;
}

.trainer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.trainer-card:hover .trainer-img img {
  transform: scale(1.1);
}

.trainer-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.trainer-info {
  padding: 20px;
  position: relative;
  z-index: 1;
  margin-top: -50px;
}

.trainer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  text-shadow: 2px 2px 0 #000;
}

.trainer-info .role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.divider {
  height: 2px;
  width: 50px;
  background: var(--primary);
  margin-bottom: 15px;
  box-shadow: 0 0 10px var(--primary);
}

.trainer-info .bio {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonial-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  min-width: 300px;
  background: var(--bg-card);
  padding: 30px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: serif;
}

.stars {
  color: #ffcc00;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  color: #ddd;
  margin-bottom: 20px;
}

.author {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("assets/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.cta-section p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #ddd;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 48px 0 20px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.2rem;
}

.footer-logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--primary-glow);
}

.footer-bottom {
  text-align: center;
  color: #555;
  font-size: 0.8rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .glitch-text {
    font-size: 2.5rem;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 0;
  }

  .logo {
    grid-column: auto;
  }

  .nav-links {
    grid-column: auto;
    display: none;
  }

  .nav-right {
    grid-column: auto;
    margin-left: auto;
    gap: 12px;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
  }

  .class-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .class-row .time {
    width: auto;
  }

  .class-row .class-name {
    width: 100%;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
}
