:root {
  --primary-dark: #121212;
  --secondary-dark: #1e1e1e;
  --accent-red: #d62828;
  --accent-light-red: #e63946;
  --light-gray: #f8f9fa;
  --medium-gray: #bbbbbb;
  --dark-gray: #343a40;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Poppins, sans-serif;
  color: var(--white);
  background-color: var(--primary-dark);
  overflow-x: hidden;
  color-scheme: dark;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.section-title {
  font-size: 2.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
  font-family: Montserrat, sans-serif;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

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

.preloader-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.brand-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  color: var(--accent-red);
  z-index: 2;
}

.spinner-border {
  width: 120px !important;
  height: 120px !important;
  border-width: 4px !important;
}

.preloader-text {
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--white);
  font-family: Oswald, sans-serif;
}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-red);
  color: var(--white);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(214, 40, 40, 0.3);
}

.scroll-top-btn:hover {
  background-color: var(--accent-light-red);
  transform: translateY(-3px);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.navbar {
  background-color: rgba(18, 18, 18, 0.95);
  padding: 15px 0;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(18, 18, 18, 0.98);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.55);
  padding: 0.45rem 0.6rem;
}

.hero-title .text-danger {
  display: inline-block;
}

.navbar-toggler-icon {
  width: 1.4em;
  height: 1.4em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(214, 40, 40, 0.25);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-right: 10px;
}

.logo-text {
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.logo-accent {
  color: var(--accent-red);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s;
  font-weight: 500;
  font-family: Montserrat, sans-serif;
}

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

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

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

.btn {
  border-radius: 40px;
}

.btn-danger {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: var(--accent-light-red);
  border-color: var(--accent-light-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(214, 40, 40, 0.3);
}

.hero-buttons .btn {
  transition: 0.3s;
  border-radius: 40px;
  margin: 0 10px;
  padding: 12px 30px;
  font-weight: 600;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  color: #fff;
}

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg-image,
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-image {
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding-top: 15%;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-family: Montserrat, sans-serif;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--light-gray);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.about-section,
.instructors-section,
.testimonials-section {
  background-color: var(--secondary-dark);
}

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

.feature-item {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  height: 100%;
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon,
.class-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-red);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-item h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--medium-gray);
  margin-bottom: 0;
}

.about-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rounded {
  border-radius: 40px !important;
}

.classes-section,
.contact-section,
.gallery-section {
  background-color: var(--primary-dark);
}

.class-card,
.instructor-card {
  overflow: hidden;
}

.class-card {
  background-color: var(--secondary-dark);
  border-radius: 40px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.class-card:hover,
.instructor-card:hover {
  transform: translateY(-10px);
}

.class-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.class-icon {
  background-color: var(--accent-red);
  height: 80px;
  font-size: 2.5rem;
}

.class-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.class-header h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.class-body {
  padding: 0 1.5rem 1.5rem;
}

.class-body p {
  color: var(--medium-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.class-features,
.footer-links {
  list-style: none;
  padding-left: 0;
}

.class-features li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--light-gray);
}

.class-features i {
  margin-right: 8px;
}

.class-footer {
  padding: 1rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.instructor-card {
  background-color: var(--primary-dark);
  border-radius: 40px;
  transition: transform 0.3s;
  height: 100%;
}

.instructor-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.instructor-card:hover .instructor-image img {
  transform: scale(1.05);
}

.belt-level {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(214, 40, 40, 0.9);
  color: var(--white);
  padding: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.instructor-info {
  padding: 1.5rem;
}

.instructor-info h4,
.testimonial-author h5 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.instructor-title {
  color: var(--accent-red);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: Montserrat, sans-serif;
}

.instructor-bio {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.instructor-experience {
  color: var(--light-gray);
  font-size: 0.85rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  height: 250px;
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-overlay h5 {
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.testimonial-card {
  background-color: var(--primary-dark);
  padding: 2.5rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 40px;
}

.testimonial-rating {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--light-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.testimonial-author p {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.carousel-indicators {
  margin-bottom: -1.5rem;
}

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: var(--medium-gray) !important;
}

.carousel-indicators button.active {
  background-color: var(--accent-red) !important;
}

.contact-form-card,
.contact-info-card {
  background-color: var(--secondary-dark);
  padding: 2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 40px;
}

.contact-form-card h4,
.contact-info-card h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.form-label {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-red);
  color: var(--white);
  box-shadow: 0 0 0 0.25rem rgba(214, 40, 40, 0.25);
}

.form-control::placeholder {
  color: var(--medium-gray);
}

.form-select option {
  background-color: #1e1e1e;
  color: var(--white);
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-details p,
.contact-details a {
  color: var(--medium-gray);
  margin-bottom: 0;
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent-red);
}

.map-container {
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  height: 400px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.25));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.location-overlay h5 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.location-overlay p {
  color: var(--medium-gray);
  margin-bottom: 0;
}

.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0, #1a1a1a 100%);
  border-top: 2px solid var(--accent-red);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-logo i {
  color: var(--accent-red);
  margin-right: 12px;
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.5));
}

.footer-text,
.newsletter-text,
.footer-bottom p,
.footer-links a {
  color: var(--medium-gray);
}

.footer-text {
  max-width: 400px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer h5 {
  position: relative;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 10px;
}

.footer h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-red);
}

.footer-links li {
  margin-bottom: 0.9rem;
}

.footer-links a {
  display: inline-flex;
  text-decoration: none;
  transition: 0.3s;
  align-items: center;
  font-size: 0.95rem;
}

.footer-links a::before {
  content: "›";
  margin-right: 8px;
  color: var(--accent-red);
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
}

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

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.studio-points {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--medium-gray);
  font-size: 0.95rem;
}

.studio-points li {
  margin-bottom: 0.9rem;
}

.newsletter-box {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 40px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.newsletter-box h5 {
  margin-bottom: 0.8rem;
}

.newsletter-text {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.subscribe-form {
  position: relative;
}

.subscribe-input,
.subscribe-btn {
  width: 100%;
  color: var(--white);
  transition: 0.3s;
}

.subscribe-input {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.subscribe-input:focus {
  outline: 0;
  border-color: var(--accent-red);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.subscribe-btn {
  padding: 12px 20px;
  background: var(--accent-red);
  border: none;
  border-radius: 40px;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.subscribe-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

.footer-bottom p {
  font-size: 0.9rem;
}

.success-message,
.form-alert {
  display: none;
  color: #10b981;
  font-size: 0.85rem;
  margin-top: 8px;
}

.form-alert.show,
.success-message.show {
  display: block;
}

[data-reveal] {
  animation: rise-in 0.8s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0.001;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

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

  .section-title {
    font-size: 2.2rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 80%;
    margin: 10px auto;
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
  }

  .hero-media-container {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
  }

  .hero-media-container {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 56px;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .gallery-item {
    height: 200px;
  }

  .newsletter-box {
    margin-top: 2rem;
  }

  .navbar-nav .nav-link {
    margin: 6px 0;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
}
