/* Import premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f5;
  --accent-red: #E53935;
  --accent-orange: #FF6F00;
  --accent-yellow: #FFC107;
  --text-primary: #111111;
  --text-secondary: #495057;
  --text-black: #6c757d;
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(229, 57, 53, 0.15);
  --glass-border-hover: rgba(255, 111, 0, 0.4);
  --gradient-fire: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-orange) 100%);
  --gradient-dark: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-neon: 0 8px 30px rgba(229, 57, 53, 0.12);
  --shadow-neon-orange: 0 8px 30px rgba(255, 111, 0, 0.18);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #c5b8b8;
}

html,
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-yellow {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* General Layout Elements */
.section-padding {
  padding: 100px 0;
}

.bg-dark-gradient {
  background: var(--gradient-dark);
}

.section-title-wrapper {
  margin-bottom: 60px;

}

.section-subtitle {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: black;
}

/* Premium Buttons */
.btn-fire {
  background: var(--gradient-fire);
  color: var(--text-primary);
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-fire::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  transition: var(--transition-smooth);
  opacity: 0;
  z-index: -1;
}

.btn-fire:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-orange);
}

.btn-fire:hover::before {
  opacity: 1;
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 30px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-red);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Trainer Specific Styles */
.trainer-details-glass {
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: rgba(25, 25, 25, 0.6) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  height: auto !important;
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 35px;
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-glass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-smooth);
}

.card-glass:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-neon);
}

.card-glass:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Floating Glass Navbar */
.navbar-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: var(--transition-smooth);
  z-index: 1030;
}

.navbar-glass.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.navbar-brand span {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 5px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary) !important;
  padding: 8px 20px !important;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-red) !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleX(1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(229, 57, 53, 0.15) 100%);
  z-index: 1;
}

.hero-section>.container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 25px;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Parallax Banner */
.parallax-banner {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* Counter Statistics */
.counter-box {
  text-align: center;
  padding: 20px 10px;
}

.counter-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.counter-title {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Classes & Category Filtering */
.filter-btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.btn-filter {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-filter:hover,
.btn-filter.active {
  background: var(--gradient-fire);
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.25);
}

.class-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  height: 100%;
}

.class-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

.class-intensity-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.05em;
}

.class-intensity-badge.high {
  background: var(--accent-red);
  color: #fff;
}

.class-intensity-badge.medium {
  background: var(--accent-orange);
  color: #fff;
}

.class-intensity-badge.low {
  background: #2e7d32;
  color: #fff;
}

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

.class-body {
  padding: 30px;
}

.class-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.class-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.class-meta i {
  color: var(--accent-orange);
  margin-right: 5px;
}

/* Trainers Team Grid */
.trainer-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 420px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

.trainer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(360deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 70%, transparent 100%);
  transition: var(--transition-smooth);
}

.trainer-socials {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.trainer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.trainer-social-link:hover {
  background: var(--gradient-fire);
  color: #fff;
  transform: scale(1.1);
}

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

.trainer-card:hover .trainer-socials {
  opacity: 1;
  transform: translateY(0);
}

.trainer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.trainer-specialty {
  color: var(--accent-red);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Skills Progress Bars */
.progress-container {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-bar-custom {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-fire);
  border-radius: 10px;
  width: 0;
  /* Animated dynamically with JS */
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Membership Plans Grid */
.plan-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 45px 35px;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.plan-card.popular {
  border: 2px solid var(--accent-red);
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(229, 57, 53, 0.15);
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 6px 30px;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.plan-price-wrapper {
  margin-bottom: 30px;
}

.plan-currency {
  font-size: 1.8rem;
  font-weight: 700;
  vertical-align: top;
  position: relative;
  top: 10px;
  color: var(--accent-orange);
}

.plan-price {
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--font-title);
  letter-spacing: -0.04em;
}

.plan-duration {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  text-align: left;
}

.plan-features-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.plan-features-list li i {
  color: var(--accent-orange);
  margin-right: 12px;
  font-size: 1rem;
}

.plan-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-neon);
  transform: translateY(-8px);
}

.plan-card.popular:hover {
  transform: translateY(-8px) scale(1.03);
}

/* Testimonial Elements */
.testimonial-card {
  padding: 30px;
}

.testimonial-rating {
  margin-bottom: 15px;
}

.testimonial-rating i {
  color: var(--accent-yellow);
  margin-right: 3px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
  color: var(--text-primary);
}

.testimonial-text::before {
  content: '"';
  font-family: var(--font-title);
  font-size: 4rem;
  color: rgba(229, 57, 53, 0.15);
  position: absolute;
  top: -20px;
  left: -15px;
  line-height: 1;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-red);
}

.testimonial-client-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-primary);
}

.testimonial-client-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Premium Form Elements */
.form-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 15px 20px;
  transition: var(--transition-smooth);
}

.form-glass:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(229, 57, 53, 0.15);
  color: var(--text-primary);
  outline: none;
}

.form-glass::placeholder {
  color: var(--text-black);
}

select.form-glass option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.control-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Gym Facilities Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 250px;
  border: 1px solid var(--border-color);
}

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

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(229, 57, 53, 0.85);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.gallery-hover-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.gallery-hover-title {
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 15px;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

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

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

.gallery-item:hover .gallery-hover-icon,
.gallery-item:hover .gallery-hover-title {
  transform: translateY(0);
}

/* Footer Section */
.footer-section {
  background: #050505;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.footer-about-text {
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #c5b8b8;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  color: #c5b8b8;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-fire);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #c5b8b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-red);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-contact-item i {
  color: var(--accent-orange);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-copyright {
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  padding-top: 25px;
  font-size: 0.9rem;
  color: var(--text-black);
}

/* Admin Dashboard Elements */
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  min-height: calc(100vh - 75px);
}

.admin-sidebar .nav-link {
  border-radius: 8px;
  margin-bottom: 5px;
  text-transform: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar .nav-link i {
  width: 20px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(229, 57, 53, 0.1);
  color: var(--accent-red) !important;
}

.admin-sidebar .nav-link::before {
  display: none;
}

.table-glass {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.table-glass th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-title);
  font-weight: 600;
  padding: 15px;
}

.table-glass td {
  background: transparent;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 15px;
  vertical-align: middle;
}

.table-glass tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.badge-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.pending {
  background: rgba(255, 111, 0, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 111, 0, 0.3);
}

.badge-status.confirmed {
  background: rgba(46, 125, 50, 0.15);
  color: #4caf50;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.badge-status.cancelled {
  background: rgba(229, 57, 53, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(229, 57, 53, 0.3);
}