/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

/* Variables */
/* Variables */
:root {
  /* Colors */
  --primary-color: #111111;
  --secondary-color: #ff4d00;
  --secondary-hover: #e04400;
  --text-color: #ffffff;
  --text-muted: #b3b3b3;
  --card-bg: #1a1a1a;
  --darker-bg: #0a0a0a;
  --gradient-primary: linear-gradient(135deg, #ff4d00, #ff7a00);
  --gradient-overlay: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.3),
    rgba(17, 17, 17, 0.95)
  );

  /* Shadows & Effects */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 77, 0, 0.4);
  --border-radius: 12px;
  --transition: all 0.3s ease;

  /* Spacing System */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 72px;
  --section-gap-desktop: 80px;
  --section-gap-mobile: 56px;

  /* Typography Scale (Fluid) */
  --font-h1: clamp(28px, 5vw, 48px);
  --font-h2: clamp(24px, 4vw, 36px);
  --font-h3: clamp(20px, 3vw, 28px);
  --font-body: clamp(15px, 2vw, 18px);
  --font-small: clamp(13px, 1.5vw, 14px);

  /* Layout */
  --container-width: 1200px;
  --header-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(-45deg, #050505, #1a1a1a, #000000, #111111);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--font-body);
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

h1,
.h1 {
  font-size: var(--font-h1);
  margin-bottom: var(--spacing-md);
}

h2,
.h2 {
  font-size: var(--font-h2);
  margin-bottom: var(--spacing-md);
}

h3,
.h3 {
  font-size: var(--font-h3);
  margin-bottom: var(--spacing-sm);
}

h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: #fff;
  font-size: 1.25rem; /* Fallback/Base */
}

p {
  color: var(--text-muted);
  font-size: var(--font-body);
  margin-bottom: var(--spacing-md);
  max-width: 70ch; /* Readability */
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px; /* Mobile safe padding */
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px; /* Tablet padding */
  }
}

.section-padding {
  padding: var(--section-gap-mobile) 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: var(--section-gap-desktop) 0;
  }
}

.text-center {
  text-align: center;
}

.highlight {
  color: var(--secondary-color);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px; /* Mobile touch friendly */
  border-radius: 8px; /* Modern rounded */
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: var(--font-small);
  min-height: 44px; /* Touch target size */
}

@media (min-width: 1024px) {
  .btn {
    padding: 14px 32px;
    font-size: 1rem;
    min-height: 48px;
  }
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 77, 0, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.glow-effect:hover {
  box-shadow: var(--shadow-glow);
}

.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled,
.navbar.solid-bg {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: white;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-nav {
  background: var(--gradient-primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 30px;
}

.btn-nav::after {
  display: none;
}

.btn-nav:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Page Header (For sub-pages) */
.page-header {
  height: 50vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
  margin-bottom: 50px;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 1.1rem;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: backwards;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: #ddd;
}

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

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--secondary-color);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    top: 10px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

.arrow-down {
  animation: bounce 2s infinite;
}

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

/* Floating Shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--secondary-color), transparent);
  filter: blur(80px);
  z-index: 2; /* behind content but above bg */
  opacity: 0.2;
  animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  background: linear-gradient(
    45deg,
    #001f3f,
    transparent
  ); /* mix blue for depth */
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 50px);
  }
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px); /* Subtle lift */
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-soft);
}

.feature-card .icon-box {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
  align-self: flex-start;
}

.feature-card:hover .icon-box {
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: var(--spacing-sm);
}

/* About Section */
.about-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
  .about-container {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xxl);
  }
}

.about-img-col {
  width: 100%;
  position: relative;
}

@media (min-width: 1024px) {
  .about-img-col {
    flex: 1;
  }
}

.img-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 10px;
  background: linear-gradient(135deg, var(--secondary-color), transparent);
}

.img-wrapper img {
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.badge {
  position: absolute;
  bottom: 20px;
  right: -10px;
  background: var(--card-bg);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .badge {
    bottom: 30px;
    right: -20px;
    padding: 20px;
  }
}

.badge .count {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary-color);
  line-height: 1;
}

@media (min-width: 768px) {
  .badge .count {
    font-size: 2.5rem;
  }
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: white;
}

@media (min-width: 768px) {
  .badge-text {
    font-size: 0.9rem;
  }
}

.about-text-col {
  width: 100%;
}

@media (min-width: 1024px) {
  .about-text-col {
    flex: 1;
  }
}

.sub-heading {
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.about-features {
  margin-top: 30px;
}

.af-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.af-item i {
  color: var(--secondary-color);
}

/* Programs Section */
.title-underline {
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 20px auto 40px;
  border-radius: 2px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
}

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

.program-card {
  height: 400px;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}

.program-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.program-card:hover .program-bg {
  transform: scale(1.1);
}

.program-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  z-index: 2;
  transform: translateY(20px);
  transition: var(--transition);
}

.program-card:hover .program-content {
  transform: translateY(0);
}

.program-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.program-card:hover .program-icon {
  opacity: 1;
  transform: translateY(0);
}

.details-btn {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 15px;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.program-card:hover .details-btn {
  opacity: 1;
  transform: translateX(0);
}

/* Trainers Section */
.bg-texture {
  background-image: radial-gradient(#222 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--darker-bg);
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.trainer-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  border-bottom: 3px solid transparent;
}

.trainer-card:hover {
  border-bottom-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.trainer-img-wrapper {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #252525;
}

.trainer-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.social-hover {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  gap: 20px;
  transition: bottom 0.3s ease;
}

.trainer-card:hover .social-hover {
  bottom: 0;
}

.social-hover a {
  color: white;
  font-size: 1.2rem;
}

.social-hover a:hover {
  color: var(--secondary-color);
}

.trainer-info {
  padding: 25px;
}

.speciality {
  color: var(--secondary-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Plans */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.pricing-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
}

.pricing-card.popular {
  background: linear-gradient(145deg, #1a1a1a, #202020);
  border: 1px solid var(--secondary-color);
  transform: scale(1.05);
  z-index: 2;
}

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

.popular-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: white;
  padding: 5px 20px;
  border-radius: 0 0 10px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin: 20px 0;
  font-family: "Montserrat", sans-serif;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
}

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

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

.features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.features-list .disabled {
  color: #555;
  text-decoration: line-through;
}

.features-list .disabled i {
  color: #555;
}

/* Testimonials */
.testimonial-slider-container {
  position: relative;
  max-width: 800px;
  margin: var(--spacing-xl) auto 0;
  padding: 0 40px; /* Space for arrow buttons */
}

.testimonial-track-container {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

.testimonial-content {
  background: var(--card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .testimonial-content {
    padding: 40px;
  }
}

.quote-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: auto;
  padding-top: var(--spacing-md);
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #333;
  flex-shrink: 0;
}

.user-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.user-details p {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin: 0;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

#prevBtn {
  left: 0;
}

#nextBtn {
  right: 0;
}

.dots-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active-dot {
  background: var(--secondary-color);
  width: 30px;
  border-radius: 10px;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 77, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.map-box {
  width: 100%;
  height: 250px;
  background: #222;
  border-radius: var(--border-radius);
  margin-top: var(--spacing-lg);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .map-box {
    height: 300px;
  }
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #555;
  background: #1a1a1a;
}

.contact-form {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
  color: white;
  background: transparent;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  transition: var(--transition);
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: #666;
  pointer-events: none;
  transition: var(--transition);
}

.input-group input:focus,
.input-group input:valid,
.input-group textarea:focus,
.input-group textarea:valid {
  border-bottom-color: var(--secondary-color);
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--secondary-color);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: white;
  background: var(--secondary-color);
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transform: scale(0);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* Equipment Section */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.equipment-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.eq-img-wrapper {
  height: 200px;
  overflow: hidden;
}

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

.equipment-card:hover .eq-img-wrapper img {
  transform: scale(1.1);
}

.eq-info {
  padding: 20px;
}

.eq-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.eq-category {
  display: inline-block;
  background: rgba(255, 77, 0, 0.1);
  color: var(--secondary-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #050505;
  padding: 80px 0 20px;
  border-top: 1px solid #1a1a1a;
  margin-top: auto; /* push to bottom */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

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

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

.social-icons a:hover {
  background: var(--secondary-color);
  color: white;
}

.footer-widget h4 {
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-widget ul li {
  margin-bottom: 15px;
}

.footer-widget ul li a {
  color: var(--text-muted);
}

.footer-widget ul li a:hover {
  color: var(--secondary-color);
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 50px 0 0 50px;
  border: none;
  background: #1a1a1a;
  color: white;
  outline: none;
}

.newsletter-form button {
  padding: 12px 20px;
  border-radius: 0 50px 50px 0;
  border: none;
  background: var(--secondary-color);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--secondary-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
  color: #555;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0 auto;
  max-width: 100%;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transition: 1s ease;
}

.fade-up {
  transform: translateY(50px);
}
.slide-left {
  transform: translateX(50px);
}
.slide-right {
  transform: translateX(-50px);
}

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

.animate-on-scroll.show {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}
.delay-400 {
  transition-delay: 0.4s;
}

/* Scroll Progress */
.progress-container {
  width: 100%;
  height: 4px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
}

.progress-bar {
  height: 4px;
  background: var(--secondary-color);
  width: 0%;
}

/* Responsive Breakpoints & Layouts */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .pricing-grid,
  .trainers-grid,
  .programs-grid,
  .features-grid,
  .equipment-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .contact-container,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* Laptop (1024px+) */
@media (min-width: 1024px) {
  .pricing-grid,
  .trainers-grid,
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  .gallery-grid,
  .equipment-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

/* Mobile Navigation (<768px) */
@media (max-width: 767px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    gap: 0;
    flex-direction: column;
    background-color: var(--darker-bg); /* Darker BG for contrast */
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    padding: 40px;
  }

  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    margin: var(--spacing-sm) 0;
    width: 100%;
  }
  .nav-link {
    font-size: 1.5rem;
    display: block;
    padding: 10px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .btn {
    width: 100%;
  }

  /* Center align footer on mobile */
  .footer-widget {
    text-align: center;
  }
  .footer-logo {
    display: block;
    margin: 0 auto 15px;
  }
  .social-icons {
    justify-content: center;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .newsletter-form input {
    border-radius: 50px;
    width: 100%;
  }
  .newsletter-form button {
    border-radius: 50px;
    width: 100%;
  }
}

/* Small Mobile (<480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .about-img-col {
    display: none; /* Optional: hide image on very small screens to save space */
  }

  lottie-player {
    width: 150px;
    height: 150px;
  }
  #loader::after {
    width: 220px;
    height: 220px;
  }
}

/* Loader Default Styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

#loader::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 77, 0, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
}

lottie-player {
  width: 250px;
  height: 250px;
  filter: drop-shadow(0 0 10px rgba(255, 77, 0, 0.3));
}
