/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-color: #00b4e5;
  --secondary-color: #f13636;
  --dark-bg: #000000;
  --light-bg: #f0f0f1;
  --text-color: #333;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

.img-responsive {
  width: 100%;
  height: auto;
}

/* Loading Screen */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.timer-loader {
  font-size: 14px;
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
}

/* Container */
.container_boxed {
  width: 100%;
  margin: 0 auto;
}

.wrapper {
  position: relative;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-sm-12, .col-sm-6, .col-sm-4,
.col-md-12, .col-md-6, .col-md-4,
.col-lg-6 {
  padding: 0 15px;
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
}

.header_transparent {
  background-color: rgba(0, 0, 0, 0.8);
}

.header.shrink {
  background-color: var(--dark-bg) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 5px 0;
}

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

.header .row {
  width: 100%;
  margin: 0;
}

.header .col-md-12 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header .logo {
  display: inline-block;
  padding: 10px 0;
}

.header .logo img {
  max-height: 50px;
  width: auto;
}

/* Navigation */
.navbar {
  display: inline-block;
  margin: 0;
  border: 0;
  background: transparent;
}

.navbar-header {
  display: none;
}

.navbar-toggle {
  display: none;
  float: right;
  margin: 20px 0;
  padding: 10px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

/* Base: hidden on mobile, shown via media query */
.navbar-collapse {
  display: none;
  width: 100%;
}

.navbar-collapse.show {
  display: block !important;
}

.sf-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.sf-menu li {
  margin: 0 5px;
  position: relative;
}

.sf-menu li a {
  display: block;
  padding: 20px 12px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.sf-menu li a:hover,
.sf-menu li.current a {
  color: var(--primary-color);
}

.af_border {
  position: absolute;
  bottom: 15px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.sf-menu li a:hover .af_border,
.sf-menu li.current a .af_border {
  transform: scaleX(1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.item {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.caption {
  position: relative;
  z-index: 2;
  width: 100%;
}

.div-table {
  display: table;
  width: 100%;
  height: 100vh;
}

.div-cell {
  display: table-cell;
  vertical-align: middle;
}

.itemslide {
  text-align: center;
  color: #fff;
}

.title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2;
}

.desc {
  font-size: 20px;
  margin-bottom: 30px;
  color: #fff;
}

.sc_button a {
  display: inline-block;
  padding: 15px 40px;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.sc_button a:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

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

.studio-section {
  background-color: var(--light-bg);
  padding: 50px 0;
}

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

.gallery-section {
  padding: 100px 0 91px;
  background-image: url(images/bg_transparent2.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.testimonials-section {
  padding: 100px 0;
  background: url(images/bg2.webp) center/cover fixed;
  position: relative;
  color: #fff;
}

.testimonials-section .patter_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

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

.contact-section {
  padding: 98px 0 67px;
}

/* Events Heading */
.events_heading {
  margin-bottom: 50px;
}

.events_heading h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.events_heading hr {
  width: 80px;
  border: 0;
  border-top: 3px solid var(--primary-color);
  margin: 20px 0;
}

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

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

.text-center hr {
  margin-left: auto;
  margin-right: auto;
}

/* Studio Content */
.studio-content {
  padding: 100px 50px 30px;
}

.studio-images {
  padding: 100px 0 30px;
}

.studio-images img {
  margin-bottom: 20px;
}

.about_info {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.about_info h5 {
  line-height: 1.8;
  margin-bottom: 20px;
}

.about_info ul {
  list-style: none;
  font-size: 16px;
  margin-top: 20px;
  padding-left: 0;
}

.about_info ul li {
  margin-bottom: 10px;
  color: var(--text-color);
  line-height: 1.6;
}

/* Trainers */
.maxwidth600 {
  max-width: 600px;
  margin: 0 auto;
}

.padding-bottom50 {
  padding-bottom: 50px;
}

.trainer-table {
  margin-bottom: 40px;
}

.trainer-table td {
  padding: 20px;
  vertical-align: top;
}

.trainer-table img {
  display: block;
  margin: 0 auto;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Testimonials Carousel */
.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
}

.testimonials-wrapper {
  display: block;
  position: relative;
  min-height: 400px;
}

.testimonial {
  min-width: 100%;
  background: rgba(40, 39, 39, 0.8);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
}

.testimonial:first-child {
  display: block;
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  display: block;
}

.testimonial.prev {
  transform: translateX(-100%);
  opacity: 0;
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-body .desc {
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 20px;
  font-style: italic;
  min-height: 120px;
}

.testimonial-body .author {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 15px;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  pointer-events: all;
  background: var(--primary-color);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #fff;
  color: var(--primary-color);
  transform: scale(1.1);
}

.carousel-prev {
  margin-left: -25px;
}

.carousel-next {
  margin-right: -25px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(0,180,229,0.5);
}

/* Contact Info */
.contact_info {
  text-align: center;
  margin-bottom: 40px;
}

.contact_info .icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact_info .icon .fa {
  font-size: 32px;
  color: var(--primary-color);
}

.contact_info:hover .icon {
  background: var(--primary-color);
}

.contact_info:hover .icon .fa {
  color: #fff;
}

.contact_info .info {
  font-size: 16px;
  color: var(--text-color);
}

.contact_info .info a {
  color: var(--text-color);
}

.contact_info .info a:hover {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: #1b1b1b;
  color: #999;
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
}

.scrolltop {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.scrolltop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
}

.scrolltop a:hover {
  background: #fff;
  color: var(--primary-color);
}

.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #999;
  border-radius: 50%;
  color: #999;
  transition: all 0.3s ease;
}

.social li a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.copyright {
  font-size: 14px;
  margin-top: 10px;
  color: #999;
}

/* Responsive Grid */
@media (min-width: 768px) {
  .col-sm-12 { width: 100%; }
  .col-sm-6 { width: 50%; }
  .col-sm-4 { width: 33.333%; }
}

@media (min-width: 992px) {
  .col-md-12 { width: 100%; }
  .col-md-6 { width: 50%; }
  .col-md-4 { width: 33.333%; }

  /* Desktop nav always visible */
  .navbar-header {
    display: none;
  }

  .navbar-toggle {
    display: none;
  }

  .navbar-collapse {
    display: block !important;
  }

  .sf-menu {
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .col-lg-6 { width: 50%; }

  /* Studio text width on large screens */
  .studio-content {
    max-width: 600px;
  }
}

/* Mobile & Tablet Styles */
@media (max-width: 991px) {

  .header .logo {
    display: none;
  }

  .navbar-header {
    display: block;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar {
    width: 100%;
  }

  .navbar-brand.logo_image {
    display: block;
    padding: 10px 0;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .sf-menu {
    flex-direction: column;
    width: 100%;
  }

  .sf-menu li {
    margin: 0;
    width: 100%;
  }

  .sf-menu li a {
    padding: 15px 20px;
    text-align: left;
  }

  .title {
    font-size: 32px;
  }

  .desc {
    font-size: 16px;
  }

  .studio-content,
  .studio-images {
    padding: 50px 15px;
  }

  .carousel-prev {
    margin-left: 10px;
  }

  .carousel-next {
    margin-right: 10px;
  }

  .trainer-table {
    display: block;
  }

  .trainer-table tbody,
  .trainer-table tr,
  .trainer-table td {
    display: block;
    width: 100%;
  }

  .trainer-table td {
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }

  section {
    padding: 60px 0;
  }

  .about-section {
    padding: 60px 0 30px;
  }

  .events_heading h2 {
    font-size: 28px;
  }

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

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

  .testimonials-carousel {
    margin-top: 30px;
  }

  .testimonial {
    padding: 30px 20px;
  }

  .testimonial-body .desc {
    font-size: 15px;
    min-height: auto;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .title {
    font-size: 28px;
    line-height: 1.3;
  }

  .desc {
    font-size: 15px;
  }

  .studio-images img {
    margin-bottom: 15px;
  }

  .contact_info .icon {
    width: 70px;
    height: 70px;
  }
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 180, 229, 0.8);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  color: #fff;
  font-size: 16px;
  margin-top: 15px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
}

@media (max-width: 767px) {
  .lightbox-close {
    font-size: 40px;
    top: 10px;
    right: 15px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-content {
    max-width: 95%;
  }

  .lightbox-counter {
    font-size: 14px;
    padding: 8px 15px;
  }
}
