/* ========================================
   POWERFIT GYM - COMPLETE STYLESHEET
   Bold & Dynamic Animations
======================================== */

/* --- CSS VARIABLES --- */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-glow: rgba(255, 107, 53, 0.4);
  --dark: #0a0a0a;
  --dark-light: #1a1a1a;
  --dark-lighter: #2a2a2a;
  --gray: #888;
  --light: #f5f5f5;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, #ff8c5a 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: all 0.2s ease;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-glow {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 20px 10px transparent;
  }
}

.btn-full {
  width: 100%;
}

/* --- SECTION STYLES --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 50px;
  line-height: 1.2;
}

.section-title span {
  color: var(--primary);
}

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

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

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition-fast);
}

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

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- HERO SECTION (UPDATED ALIGNMENT) --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Left align */
  position: relative;
  padding: 0 10%; /* Padding for left alignment */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920")
    center/cover;
  transform: scale(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.7) 40%,
    rgba(255, 107, 53, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left; /* Left align text */
  max-width: 800px;
}

.hero-title {
  margin-bottom: 25px;
  overflow: hidden;
}

.title-line {
  display: block;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.1;
  animation: slideInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(100px);
}

.title-line:nth-child(2) {
  animation-delay: 0.3s;
}

.title-accent {
  color: var(--primary);
  text-shadow: 0 0 60px var(--primary-glow);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-right: auto;
  animation: fadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeIn 1s ease 0.9s forwards;
  opacity: 0;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  margin-top: 60px;
  padding: 25px 35px; /* Tighter padding */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border-left: 4px solid var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInUp 1s ease 1.2s forwards;
  opacity: 0;
  transform: translateY(50px);
  width: fit-content;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.stat-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.stat-number {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin: 0; /* keep number and plus on same line */
  vertical-align: middle;
}

.stat-plus {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--primary);
  vertical-align: baseline;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
  z-index: 2;
  opacity: 0.5;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--gray);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
  }
}

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

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- ABOUT SECTION --- */
.about {
  background: var(--dark-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.02);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--gradient);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.badge-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
}

.badge-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content {
  padding-left: 20px;
}

.about-text {
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.about-features {
  margin-bottom: 40px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

/* --- GALLERY SECTION --- */
.gallery {
  background: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-overlay p {
  color: var(--primary);
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* --- TRAINERS SECTION --- */
.trainers {
  background: var(--dark-light);
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trainer-card {
  background: var(--dark-lighter);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.trainer-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.trainer-image {
  position: relative;
  overflow: hidden;
  height: 350px;
}

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

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

.trainer-social {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  display: flex;
  gap: 15px;
  opacity: 0;
  transition: var(--transition);
}

.trainer-card:hover .trainer-social {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.trainer-social a {
  width: 45px;
  height: 45px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.trainer-social a:hover {
  background: var(--white);
  transform: scale(1.1);
}

.trainer-info {
  padding: 30px;
  text-align: center;
}

.trainer-info h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.trainer-role {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 15px;
}

.trainer-info p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* --- SCHEDULE SECTION --- */
.schedule {
  background: var(--dark);
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 15px 25px;
  background: var(--dark-lighter);
  border: none;
  border-radius: 10px;
  color: var(--light);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  background: var(--dark-light);
}

.tab-btn.active {
  background: var(--gradient);
  transform: scale(1.05);
}

.schedule-day {
  display: none;
}

.schedule-day.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeSlideIn 0.5s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.class-card {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  background: var(--dark-light);
  padding: 25px 30px;
  border-radius: 15px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.class-card:hover {
  transform: translateX(10px);
  background: var(--dark-lighter);
  box-shadow: var(--shadow);
}

.class-time {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.class-info h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.class-info p {
  color: var(--gray);
  font-size: 0.9rem;
}

.class-trainer {
  text-align: right;
  color: var(--gray);
  font-weight: 600;
}

/* --- TESTIMONIALS SECTION (UPDATED SLIDER FIX) --- */
.testimonials {
  background: var(--dark-light);
  overflow: hidden;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px; /* Added max-width to keep it readable */
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
  min-width: 100%; /* Takes up full width of the slider window */
  padding: 40px 30px; /* Internal spacing instead of margins */
  background: var(--dark-lighter);
  border-radius: 20px;
  text-align: center;
  box-sizing: border-box; /* Ensures padding doesn't add to width */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-rating {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 25px;
  letter-spacing: 5px;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
  color: var(--light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 3px;
  color: var(--white);
}

.testimonial-author span {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark-lighter);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark-lighter);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dots .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* --- MEMBERSHIP SECTION --- */
.membership {
  background: var(--dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}

.pricing-card {
  background: var(--dark-light);
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 107, 53, 0.3);
}

.pricing-card.featured {
  background: var(--dark-lighter);
  transform: scale(1.05);
  border: 2px solid var(--primary);
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  padding: 8px 25px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  margin-bottom: 30px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.amount {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
}

.currency {
  font-size: 1.2rem;
  color: var(--gray);
}

.pricing-features {
  margin-bottom: 40px;
}

.pricing-features li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li.included {
  color: var(--light);
}

.pricing-features li.excluded {
  color: var(--gray);
  opacity: 0.5;
}

/* --- FAQ SECTION --- */
.faq {
  background: var(--dark-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--dark-lighter);
}

.faq-question {
  width: 100%;
  padding: 25px 30px;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 30px 25px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.8;
}

/* --- CONTACT SECTION --- */
.contact {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-info p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--dark-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.contact-item p {
  margin: 0;
  color: var(--light);
}

.contact-form {
  background: var(--dark-light);
  padding: 50px;
  border-radius: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 18px 25px;
  background: var(--dark);
  border: 2px solid var(--dark-lighter);
  border-radius: 15px;
  color: var(--light);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: none;
}

/* --- FOOTER --- */
.footer {
  background: var(--dark-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--gray);
  margin: 20px 0;
}

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

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--white);
}

.footer-links a {
  display: block;
  color: var(--gray);
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-newsletter p {
  color: var(--gray);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  background: var(--dark);
  border: 2px solid var(--dark-lighter);
  border-radius: 10px;
  color: var(--light);
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form button {
  padding: 15px 20px;
  background: var(--gradient);
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.9rem;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image {
    order: -1;
  }

  .experience-badge {
    right: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item.large {
    grid-column: span 2;
  }

  .trainers-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
    grid-column: span 2;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--dark-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .navbar .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Stats container mobile adjustments */
  .hero-stats {
    width: 100%;
    max-width: 400px;
    align-self: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    padding: 20px;
    gap: 20px;
    border-left: none;
    border-top: 4px solid var(--primary);
    margin-top: 50px;
  }

  .stat-item {
    text-align: center;
    min-width: auto;
  }

  .trainers-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .class-card {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

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

  .testimonial-card {
    padding: 30px 20px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .contact-form {
    padding: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .hero-stats {
    margin-top: 50px;
  }

  .tab-btn {
    padding: 12px 15px;
    font-size: 0.85rem;
  }
}

/* --- HERO RESPONSIVE OVERRIDES --- */
/* Specific overrides for the new left-aligned hero */

@media (max-width: 1024px) {
  .hero {
    padding: 0 5%;
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }
}
