  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  :root {
    --bg: #050608;
    --bg-alt: #0b0f16;
    --accent: #45ff9a;
    --accent-soft: rgba(69, 255, 154, 0.15);
    --accent-strong: #00ff88;
    --text: #f8faff;
    --muted: #9ea4c7;
    --card: #101524;
    --border: #232840;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.7);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background:
      radial-gradient(circle at top, #14213d 0, #050608 55%),
      #050608;
    color: var(--text);
  }

  body {
    min-height: 100vh;
  }

  /* Layout helpers */
  .container {
    width: min(1120px, 92%);
    margin: 0 auto;
  }

  /* Header / Nav */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.7));
    border-bottom: 1px solid rgba(35, 40, 64, 0.8);
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
  }

  .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text);
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 2px solid var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    background: radial-gradient(circle at top, #00ff88, #020309);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.6);
  }

  .logo-text {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
  }

  .main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: 0.22s ease;
  }

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

  .main-nav a.active {
    color: var(--accent-strong);
    border-color: var(--accent-strong);
  }

  .btn-nav {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--accent-strong);
    background: radial-gradient(circle at top left, var(--accent-strong), #29b36b);
    color: #020309 !important;
    font-weight: 600;
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.6);
  }

  /* Mobile nav */
  .nav-toggle {
    display: none;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(9, 12, 21, 0.9);
    color: var(--text);
    padding: 0.25rem 0.55rem;
    font-size: 1.25rem;
  }

  /* Hero */
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.4);
    font-size: 0.8rem;
    color: var(--accent-strong);
    margin-bottom: 0.7rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 3vw + 1.4rem, 3.5rem);
    line-height: 1.05;
    margin: 0 0 0.7rem;
  }

  .hero-subtitle {
    color: var(--muted);
    max-width: 32rem;
    margin-bottom: 1.1rem;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.22s ease;
  }

  .btn-primary {
    background: radial-gradient(circle at top left, var(--accent-strong), #29b36b);
    color: #020309;
    box-shadow: 0 18px 45px rgba(0, 255, 136, 0.55);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(0, 255, 136, 0.8);
  }

  .btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
  }

  .btn-secondary:hover {
    background: rgba(14, 19, 30, 0.95);
  }

  .btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #1ebe5d);
    color: #020309;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.65);
  }

  .btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(37, 211, 102, 0.85);
  }

  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: var(--muted);
  }

  .hero-meta span {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(18, 25, 45, 0.95);
    border: 1px solid rgba(69, 255, 154, 0.25);
  }

  .hero-media {
    position: relative;
  }

  .hero-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }

  .hero-card img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
  }

  .hero-float {
    position: absolute;
    bottom: 1.2rem;
    left: 0.9rem;
    padding: 0.55rem 0.8rem;
    border-radius: 14px;
    background: rgba(5, 7, 12, 0.92);
    border: 1px solid rgba(69, 255, 154, 0.6);
    font-size: 0.8rem;
    color: var(--muted);
  }

  /* Sections */
  section {
    scroll-margin-top: 80px;
  }

  .section-heading {
    text-align: center;
    margin-bottom: 2rem;
  }

  .section-heading h2 {
    margin: 0 0 0.5rem;
    font-size: 1.7rem;
  }

  .section-heading p {
    margin: 0;
    color: var(--muted);
  }

  /* Features */
  .features {
    padding: 2.3rem 0 3rem;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
  }

  .feature-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.2rem 1.15rem;
    box-shadow: var(--shadow-soft);
    transition: 0.2s ease;
  }

  .feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(69, 255, 154, 0.6);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85);
  }

  .feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
  }

  /* Quotes */
  .quotes {
    padding: 1.5rem 0 3.2rem;
  }

  .quotes-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: flex-start;
  }

  .quote-highlight {
    background: radial-gradient(circle at top left, rgba(0, 255, 136, 0.14), #090d18);
    border-radius: 20px;
    padding: 1.6rem 1.4rem;
    border: 1px solid rgba(69, 255, 154, 0.5);
    box-shadow: var(--shadow-soft);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .quote-highlight p {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
  }

  .quote-highlight span {
    font-size: 0.85rem;
    color: var(--muted);
  }

  .quote-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.5rem;
  }

  .quote-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .quote-list li {
    font-size: 0.9rem;
    color: var(--muted);
    padding: 0.25rem 0;
  }
/* ---------------------------------------- */
/* GALLERY SECTION — FINAL RESPONSIVE FIX   */
/* ---------------------------------------- */

/* Gallery preview */
.gallery-preview {
  padding: 1rem 0 3rem;
}

/* Main gallery grid */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop */
  gap: 1rem;
}

/* Gallery item container */
.gallery-page-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050608;
  box-shadow: 0 14px 40px rgba(0,0,0,0.75);
}

/* Gallery images */
.gallery-page-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  pointer-events: auto !important;
}

/* Lightbox */
#lightboxOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightboxOverlay img {
  max-width: 94%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
}

/* ---------- RESPONSIVE FIX ---------- */

/* Tablet: 3 per row */
@media (max-width: 900px) {
  .gallery-page-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }
}

/* Mobile: 2 per row */
@media (max-width: 600px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
    padding: 0 10px;
  }

  .gallery-page-item img {
    height: 150px !important;
  }
}

/* Extra small: 1 column */
@media (max-width: 360px) {
  .gallery-page-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-page-item img {
    height: 200px !important;
  }
}


/* Contact form */
.contact-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 0.85rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #05070f;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: #676d94;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.35);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #050608;
  margin-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 1.8rem 0 1.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding: 0.9rem 0 1.2rem;
  border-top: 1px solid #080a13;
  font-size: 0.8rem;
  color: #7b81aa;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .quotes-grid {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }
  .main-nav ul {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    padding: 0.7rem 1rem 1rem;
    background: #050608;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0.7rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
  }
  .main-nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero {
    padding-top: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Sliding gallery layout */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-page-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}
/* Prevent mobile zoom on tap */
/* Disable all interactions on gallery images to prevent popup */
.gallery-page-item img {
  pointer-events: none;   /* No tap, no click */
  -webkit-touch-callout: none;  /* Disable iPhone popup */
  user-select: none;      /* No text/image selection */
  -webkit-user-drag: none; /* Prevent drag popup */
}

/* Quote slide animation */
.slide-in {
  opacity: 0;
  transform: translateY(10px);
  animation: slideIn 0.4s forwards ease-out;
}

.slide-out {
  opacity: 1;
  transform: translateY(0);
  animation: slideOut 0.3s forwards ease-in;
}

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

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
/* LOGO container */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Bigger logo image */
.logo-img {
  height: 60px;     /* adjust size here */
  width: auto;
}

/* The Fitness Gym text (same font as site) */
.logo-title {
  font-size: 1.35rem;         /* matches your theme */
  font-weight: 700;           /* strong, clean */
  color: var(--text);         /* same white color as rest of site */
  font-family: var(--font-main);  /* EXACT site font */
  text-transform: uppercase;
}

/* Red first letters */
.logo-title .red {
  color: #ff1a1a; /* clean red */
}

/* ---------------------------------------- */
/* HOME PAGE GALLERY FIX — DO NOT TOUCH GALLERY PAGE */
/* ---------------------------------------- */

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important; /* 6 per row on desktop */
  gap: 12px !important;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 120px !important; /* smaller images */
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Tablet: 3 images per row */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .gallery-grid .gallery-item img {
    height: 140px !important;
  }
}

/* Mobile: 2 images per row */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .gallery-grid .gallery-item img {
    height: 150px !important;
  }
}
/* --------------------------- */
/* VIDEO THUMBNAIL FOR GALLERY */
/* --------------------------- */

.video-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 14px;
  background: #000;

  /* ⭐ IMPORTANT FOR THUMBNAIL DISPLAY */
  object-position: center;
  display: block;
}


.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 38px;
  color: white;
  background: rgba(0,0,0,0.55);
  padding: 10px 18px;
  border-radius: 50%;
  pointer-events: none;
}

