:root {
  --bg-color: #0a0a0a;
  --primary: #cbe532;
  --primary-hover: #b8d129;
  --text-main: #ffffff;
  --text-muted: #888d80;
  --text-bg: #e5f0cb;
  --card-bg: linear-gradient(
    145deg,
    rgba(45, 52, 33, 0.85),
    rgba(22, 25, 18, 0.85)
  );
  --card-border: rgba(203, 229, 50, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 769px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #080808;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0;
  }
}

body {
  background-color: #080808;
  background-image: url("images/black_bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Full page hero wrapper with spotlight bg ── */
.app-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ── Navbar ── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 25px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 1300px;
  z-index: 1000;
  padding: 1.2rem 3rem;
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  border: none;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  min-height: calc(100vh - 90px);
}

/* ── Background Typography ── */
.bg-typography {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.bg-typography div {
  font-size: 7.5vw;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-bg);
  opacity: 0.9;
  white-space: nowrap;
  text-transform: capitalize;
  letter-spacing: -1px;
}

.bg-typography span {
  color: rgba(197, 216, 164, 0.25);
}

/* ── Side Navigation ── */
.side-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 50;
}

.side-nav.left {
  left: 4rem;
}
.side-nav.right {
  right: 4rem;
}

/* ── Hero Image Container ── */
.hero-image-container {
  position: absolute;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  bottom: auto;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-image {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 20; /* High z-index to cover cards */
  filter: drop-shadow(0 0 40px rgba(203, 229, 50, 0.08));
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 5%);
  mask-image: linear-gradient(to top, transparent 0%, black 5%);
  transform-origin: center center;
  transform: translateY(5%);
}

@keyframes enter3D {
  0% {
    opacity: 0;
    transform: scale(0.6) translateZ(-400px) translateY(80px) rotateX(20deg)
      rotateY(-20deg);
    filter: blur(25px) drop-shadow(0 0 0px rgba(203, 229, 50, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0) translateY(0) rotateX(0) rotateY(0);
    filter: blur(0) drop-shadow(0 0 40px rgba(203, 229, 50, 0.08));
  }
}

/* ── Stats Grid (Desktop Absolute Container) ── */
.stats-grid {
  position: absolute;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 40;
}

/* ── Floating Cards ── */
.floating-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 35px;
  padding: 1.6rem 2.1rem; /* Increased size slightly more */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
  pointer-events: auto;
}

.floating-card:hover {
  transform: scale(1.07) translateY(-6px) !important;
}

.card-icon {
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card-label {
  font-size: 1.2rem; /* Increased */
  color: var(--text-muted);
  font-weight: 500;
}

.card-value {
  font-size: 2.4rem; /* Increased */
  font-weight: 800;
}

/* Card Positioning */
.card-hours {
  top: 65%;
  left: 10%;
  animation: float-1 6s ease-in-out infinite;
  animation-delay: 0s;
  z-index: 5; /* Pushed to back */
}

.card-poses {
  top: 65%;
  right: 10%;
  animation: float-2 6s ease-in-out infinite;
  animation-delay: 1.5s;
  z-index: 5; /* Pushed to back */
}

.card-kcal {
  top: 82%; /* Moved down into red area */
  left: 15%; /* Moved slightly outwards */
  animation: float-3 6s ease-in-out infinite;
  animation-delay: 3s;
}

.card-sets {
  top: 82%; /* Moved down into red area */
  right: 15%; /* Moved slightly outwards */
  animation: float-4 6s ease-in-out infinite;
  animation-delay: 4.5s;
}

@keyframes float-1 {
  0%,
  100% {
    transform: scale(1.5) rotate(-25deg) translateY(0px);
  }
  50% {
    transform: scale(1.5) rotate(-25deg) translateY(-14px);
  }
}
@keyframes float-2 {
  0%,
  100% {
    transform: scale(1.5) rotate(25deg) translateY(0px);
  }
  50% {
    transform: scale(1.5) rotate(25deg) translateY(-14px);
  }
}
@keyframes float-3 {
  0%,
  100% {
    transform: rotate(-25deg) translateY(0px);
  }
  50% {
    transform: rotate(-25deg) translateY(-14px);
  }
}
@keyframes float-4 {
  0%,
  100% {
    transform: rotate(25deg) translateY(0px);
  }
  50% {
    transform: rotate(25deg) translateY(-14px);
  }
}

/* ── Bottom Section ── */
.bottom-section {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  right: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 100;
}

.happy-spirits {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatars {
  display: flex;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  margin-left: -14px;
  object-fit: cover;
}

.avatar:first-child {
  margin-left: 0;
}

.spirits-text {
  display: flex;
  flex-direction: column;
}

.spirits-text strong {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
}

.spirits-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-start {
  background-color: var(--primary);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-start:hover {
  background-color: var(--primary-hover);
  transform: translateX(6px);
  box-shadow: 0 8px 25px rgba(203, 229, 50, 0.35);
}

.btn-start span {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .page-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 2.2rem !important;
    word-wrap: break-word;
  }

  .inner-page {
    padding: 1rem 1.5rem 3rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .bg-typography div {
    white-space: normal;
    font-size: 14vw;
    padding: 0 1rem;
  }

  .app-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  .grid-layout,
  .pricing-grid,
  .gallery-grid,
  .product-grid,
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 1.5rem;
  }

  .premium-card,
  .pricing-card,
  .product-card {
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    box-sizing: border-box;
  }

  /* ── Mobile Slider Fixes ── */
  .focus-rail-wrapper {
    height: auto;
    min-height: 550px;
    padding: 2rem 0;
  }
  .rail-track {
    height: 350px !important;
  }
  .rail-item {
    width: 240px !important;
    height: 320px !important;
  }
  .rail-controls {
    margin-top: 4rem !important;
    padding: 0 1rem;
  }
  .rail-info h2 {
    font-size: 2rem !important;
  }

  .trainer-split,
  .contact-section {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    overflow: hidden;
  }
  .contact-section {
    padding: 2rem;
  }
  .trainer-image-col {
    min-height: 300px;
    width: 100%;
    border-radius: 20px;
  }
  .trainer-stats {
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  .stat-box {
    text-align: center;
  }
}

/* ── Inner Pages Global Styles ── */
.inner-page {
  padding: 8rem 4rem 4rem; /* Increased top padding for fixed nav */
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  z-index: 10;
  position: relative;
}

.page-header {
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease forwards;
}

.page-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}
.page-title span {
  color: var(--primary);
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.premium-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(203, 229, 50, 0.1),
    transparent
  );
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.premium-card:hover::before {
  left: 150%;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(203, 229, 50, 0.15);
  border-color: rgba(203, 229, 50, 0.5);
}

.premium-card h3 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.premium-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.premium-card .card-video-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.premium-card .card-video-placeholder svg {
  color: var(--primary);
  opacity: 0.6;
}

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

/* ── Trainer Profile Styles ── */
.trainer-split {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
.trainer-image-col {
  flex: 1;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.trainer-image-col svg {
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 1rem;
}
.trainer-content-col {
  flex: 1.2;
}
.trainer-stats {
  display: flex;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.stat-box {
  flex: 1;
  background: linear-gradient(145deg, rgba(203, 229, 50, 0.1), transparent);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(203, 229, 50, 0.2);
}
.stat-box h4 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.stat-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.philosophy-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ── Pricing Styles ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.pricing-card {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(203, 229, 50, 0.15);
}
.pricing-card.popular {
  border-color: rgba(203, 229, 50, 0.5);
  background: linear-gradient(
    180deg,
    rgba(203, 229, 50, 0.05) 0%,
    rgba(20, 20, 20, 0.8) 100%
  );
}
.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #080808;
  padding: 0.5rem 2rem;
  border-radius: 0 0 15px 15px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.pricing-card h3 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
}
.price span {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  text-align: left;
}
.pricing-features li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pricing-features li svg {
  color: var(--primary);
  min-width: 24px;
}

/* ── Products Styles ── */
.product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
}
.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(203, 229, 50, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
.product-img-placeholder {
  width: 100%;
  height: 250px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-placeholder svg {
  color: var(--primary);
  opacity: 0.5;
}
.product-card h4 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.product-card .prod-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.product-card .btn {
  width: 100%;
  padding: 0.8rem;
}

/* ── Gallery Styles ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.gallery-item {
  height: 280px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(203, 229, 50, 0.1);
}
.gallery-item svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.contact-section {
  display: flex;
  gap: 4rem;
  background: rgba(20, 20, 20, 0.8);
  padding: 4rem;
  border-radius: 30px;
  border: 1px solid var(--card-border);
}
.contact-info {
  flex: 1;
}
.contact-info h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 800;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}
.contact-info svg {
  color: var(--primary);
}
.map-placeholder {
  flex: 1.5;
  background: #111;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 300px;
}

/* ── Focus Rail Slider ── */
.focus-rail-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  background: transparent;
  color: #fff;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
}
.rail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.8s ease;
}
.rail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) saturate(200%);
  transition: all 0.8s ease;
}
.rail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #080808 10%,
    rgba(8, 8, 8, 0.5) 50%,
    transparent
  );
}
.rail-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 2rem;
}
.rail-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  perspective: 1200px;
  transform-style: preserve-3d;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.rail-item {
  position: absolute;
  width: 360px;
  height: 480px;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}
.rail-item video,
.rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.rail-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}
.rail-controls {
  margin: 3rem auto 0;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  pointer-events: auto;
}

/* ── Product Modal Styles ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

@media (min-width: 768px) {
  .modal-content {
    flex-direction: row;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.modal-img-col {
  background: #fff;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px 20px 0 0;
}

@media (min-width: 768px) {
  .modal-img-col {
    width: 40%;
    border-radius: 20px 0 0 20px;
  }
}

.modal-img-col img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.modal-info-col {
  padding: 2rem;
  flex: 1;
  color: var(--text-muted);
}

.modal-info-col h3 {
  color: var(--text-main);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal-info-col .modal-summary {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-info-col h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.modal-info-col ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-info-col .modal-directions {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
}

/* Adjust product card specifically for new layout */
.product-card .btn-details {
  width: 100%;
  margin-top: auto;
}
@media (min-width: 768px) {
  .rail-controls {
    flex-direction: row;
    justify-content: space-between;
  }
}
.rail-info {
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .rail-info {
    text-align: left;
  }
}
.rail-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.rail-info p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .rail-info p {
    margin: 0;
  }
}
.rail-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 20, 20, 0.8);
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
}
.rail-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.rail-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}
.rail-nav span {
  font-family: monospace;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
  color: var(--text-muted);
}

/* ── Responsive ── */
.hamburger {
  display: none;
}

/* Tablet view adjustments (769px - 1270px) */
@media (min-width: 769px) and (max-width: 1270px) {
  .navbar {
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    transform: none; /* Make sure no transform context breaks fixed child menus */
    gap: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    order: unset;
  }
  .nav-buttons {
    display: flex !important;
    gap: 0.8rem;
  }
  .nav-buttons a.btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
  }
  .nav-links {
    display: flex !important;
    justify-content: center;
    gap: 1.2rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .logo span {
    font-size: 1rem !important;
  }
  .hamburger {
    display: none !important;
  }
  
  /* Justify and center other grid/page content for tablet sizes */
  .grid-layout, .pricing-grid, .gallery-grid, .product-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    justify-items: center;
    width: 100%;
    gap: 2rem;
  }
  
  .premium-card, .pricing-card, .product-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
  }

  .inner-page {
    padding: 6rem 2.5rem 3rem;
  }
  .page-header {
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .card-hours {
    left: -90px;
  }
  .card-poses {
    right: -90px;
  }
  .card-kcal {
    left: -80px;
  }
  .card-sets {
    right: -80px;
  }
  .bg-typography div {
    font-size: 8.5vw;
  }
}

@media (max-width: 1024px) {
  .side-nav.left {
    left: 1.5rem;
  }
  .side-nav.right {
    right: 1.5rem;
  }
  .bottom-section {
    left: 2.5rem;
    right: 2.5rem;
  }
  .bg-typography div {
    font-size: 9vw;
  }
  .card-hours {
    left: -60px;
  }
  .card-poses {
    right: -60px;
  }
  .card-kcal {
    left: -50px;
  }
  .card-sets {
    right: -50px;
  }
}

/* Original Mobile Responsiveness (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.9rem 1.2rem;
    top: 10px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none; /* No transform context on mobile navbar to fix right-side gap */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 12, 0.98); /* Solid background to avoid backdrop-filter containment */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-sizing: border-box;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
  }
  .hamburger div {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
  }
  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: rgba(20, 20, 20, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
    gap: 2rem;
    font-size: 1.5rem;
    visibility: hidden; /* Hide off-screen element from overflow calculations */
  }
  .nav-links.active {
    right: 0;
    visibility: visible;
  }
  .nav-buttons {
    display: none;
  }
  .side-nav {
    display: none;
  }

  /* ── Mobile Layout Flow ── */
  .desktop-text {
    display: none !important;
  }
  .mobile-text {
    display: block !important;
  }
  span.mobile-text {
    display: inline !important;
  }

  .main-content {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .bg-typography {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    text-align: center;
    z-index: 2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  .bg-typography.mobile-text div {
    font-size: 15.5vw;
    line-height: 1.05;
    font-weight: 800;
  }
  .bg-typography.mobile-text .darker {
    color: #7a8c4c;
  }

  /* Stats Grid Wrapper */
  .stats-grid {
    position: relative;
    left: auto;
    top: auto;
    height: auto;
    transform: none;
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    z-index: 5;
  }

  @keyframes mobileFloat3D {
    0%,
    100% {
      transform: perspective(600px) translateY(0) rotateX(0deg) rotateY(0deg)
        translateZ(0);
    }
    33% {
      transform: perspective(600px) translateY(-8px) rotateX(8deg) rotateY(6deg)
        translateZ(10px);
    }
    66% {
      transform: perspective(600px) translateY(-4px) rotateX(-8deg)
        rotateY(-6deg) translateZ(5px);
    }
  }

  /* Disable absolute positioning but add 3D float animations */
  .floating-card {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    animation: mobileFloat3D 6s ease-in-out infinite !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 0.2rem;
    border-radius: 20px;
    gap: 6px;
    background: rgba(30, 35, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .card-hours {
    animation-delay: 0s !important;
  }
  .card-poses {
    animation-delay: 1.2s !important;
  }
  .card-kcal {
    animation-delay: 2.4s !important;
  }
  .card-sets {
    animation-delay: 3.6s !important;
  }
  .floating-card .card-icon {
    margin-bottom: 0;
  }
  .floating-card .card-icon svg {
    width: 16px;
    height: 16px;
  }
  .floating-card .card-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0;
  }
  .floating-card .card-value {
    font-size: 1.1rem;
    font-weight: 800;
  }

  .hero-image-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    margin-top: -1rem;
    margin-bottom: -1rem;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  .hero-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.4) translateY(-15%);
    transform-origin: top center;
    left: auto;
    bottom: auto;
    margin: 0;
    display: block;
  }

  .bottom-section {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0 1.5rem 3rem 1.5rem;
    margin-top: 0;
    z-index: 100;
  }
  .mobile-side-nav {
    display: none !important;
  }
  .btn-start {
    order: 1;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 50px;
    transform: none;
    text-align: center;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .happy-spirits {
    order: 2;
    transform: none;
    margin-bottom: 0;
    justify-content: center;
    width: 100%;
  }

  body,
  .app-container,
  .inner-page,
  body.home-page,
  body.home-page .app-container {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
  }

  .app-container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important; /* replaced 100vw to fix right-side gap */
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ── Custom Cursor Styles ── */
@media (min-width: 769px) {
  body {
    cursor: none;
  }
  a,
  button,
  input,
  select,
  textarea,
  .product-card,
  .btn {
    cursor: none;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10001;
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
}

.custom-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}

/* Hover effect */
.custom-cursor.hover {
  background-color: transparent;
}

.custom-cursor-trail.hover {
  width: 50px;
  height: 50px;
  background-color: rgba(203, 229, 50, 0.15);
  border-color: rgba(203, 229, 50, 0.8);
}

/* ── Map Container ── */
.map-container {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
  filter: invert(90%) hue-rotate(180deg) sepia(20%); /* Dark mode map effect */
  transition: filter 0.3s ease;
}

.map-container:hover {
  filter: none;
}
