/* --- Global Variables & Resets --- */
:root {
  --bg-black: #0a0a0a;
  --bg-dark: #151515;
  --accent-color: #ff4500; /* Energetic Orange/Red */
  --accent-hover: #e03c00;
  --text-main: #f4f4f4;
  --text-muted: #a0a0a0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Oswald", sans-serif;
}

/* Typography & Utility Classes */
.text-accent {
  color: var(--accent-color) !important;
}

.bg-black {
  background-color: var(--bg-black) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.border-accent {
  border: 2px solid var(--accent-color) !important;
}

/* --- Buttons --- */
.btn-accent {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.btn-outline-light {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: var(--bg-black);
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  transition: all 0.4s ease;
  padding: 1.5rem 0;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 10px;
  transition: 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&q=80&w=1920")
      center/cover no-repeat;
  position: relative;
}

/* --- Features Section --- */
.feature-box i {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.feature-box:hover i {
  transform: scale(1.2);
}

/* --- Pricing Section --- */
.pricing-card {
  border: 1px solid #333;
  transition: all 0.3s ease;
}

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

.transform-scale {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .transform-scale {
    transform: scale(1);
  }
}

/* --- Trainers Section --- */
.trainer-card {
  border-radius: 8px;
  cursor: pointer;
}

.trainer-card img {
  transition: transform 0.5s ease;
}

.trainer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  opacity: 0.8;
  transition: all 0.3s ease;
}

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

.trainer-card:hover .trainer-overlay {
  opacity: 1;
  background: linear-gradient(
    to top,
    rgba(255, 69, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 60%
  );
}

/* --- Testimonials --- */
.max-w-800 {
  max-width: 800px;
}

/* --- Forms --- */
.form-control:focus {
  background-color: #111;
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 69, 0, 0.25);
}

/* --- Footer --- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #222;
  color: var(--text-main);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
}

.hover-accent:hover {
  color: var(--accent-color) !important;
}
/* --- Contrast & Readability Fixes --- */

/* Override Bootstrap's default muted text with a lighter, more legible gray */
.text-muted {
  color: #c4c4c4 !important;
}

/* Soften the footer and form background slightly so the contrast isn't as harsh */
footer.bg-dark,
#contactForm.bg-dark {
  background-color: #1a1a1a !important;
}

/* Ensure the links in the footer are clearly visible and brighten on hover */
footer .text-muted.hover-accent:hover {
  color: var(--accent-color) !important;
}
/* --- Carousel Arrow Spacing Fix --- */

/* Add horizontal padding to the testimonial area to push text away from arrows */
#testimonialCarousel .carousel-inner {
  padding: 0 60px;
}

/* Optional: Make arrows more subtle until hover for a cleaner look */
.carousel-control-prev,
.carousel-control-next {
  width: 5%; /* Narrower hit area so they don't block text clicks */
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Adjust for mobile: reduce padding so text doesn't get too squashed */
@media (max-width: 768px) {
  #testimonialCarousel .carousel-inner {
    padding: 0 40px;
  }
}
