/* =========================================================
   VIGOR GYM - STYLES.CSS
   Theme: Red • White • Black
   Includes: Fixed Navbar, Floating WhatsApp, Animations
========================================================= */

/* -------------------- BASE STYLES -------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #000; /* black background */
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s, transform 0.3s;
}

a:hover {
  color: red;
  transform: scale(1.03);
}

/* -------------------- NAVBAR -------------------- */
header {
  position: fixed; /* ✅ fixed navbar */
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: background 0.3s ease-in-out;
  z-index: 1000;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.9);
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.navbar li {
  margin: 0 1rem;
}

.navbar a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s, border-bottom 0.3s;
  padding: 0.25rem 0;
}

.navbar a.active {
  border-bottom: 2px solid red;
}

.navbar a:hover {
  color: red;
}

/* Fix navbar overlap issue */
section {
  scroll-margin-top: 80px;
}

body {
  padding-top: 80px;
}

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInDown 1.2s ease;
  color: #fff;
}

.hero-sub {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
  color: #fff;
}

.hero-cta .btn {
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 4px;
  border: 1px solid red;
  color: #fff;
  background: transparent;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: red;
  color: #fff;
  border: 1px solid red;
}

.btn:hover, .btn-primary:hover {
  transform: scale(1.05);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,0,0,0.4);
}

.logo-box {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #000;
  padding: 0.5rem 1rem;
  font-family: 'Italiana', serif;
  font-size: 1.5rem;
  border: 1px solid red;
  border-radius: 4px;
  animation: floatLogo 3s infinite ease-in-out;
  color: #fff;
}

/* -------------------- SLIDESHOW -------------------- */
.slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out, transform 5s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1.05);
}

/* -------------------- SECTIONS -------------------- */
.section {
  padding: 5rem 1rem;
  width: 100%;
  animation: fadeIn 1s ease-in-out;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: red;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInDown 1s ease;
}

/* -------------------- ABOUT -------------------- */
.about-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.about-text {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: justify;
}

.about-text ul {
  margin: 1rem 0;
  padding-left: 1rem;
}

.about-text li {
  margin-bottom: 0.5rem;
  list-style: square;
  color: #ddd;
}

.about-images {
  flex: 1 1 300px;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stacked-images img {
  margin-top: 1rem;
  border: 2px solid red;
  border-radius: 8px;
  transition: transform 0.4s;
}

.stacked-images img:hover {
  transform: scale(1.05);
}

/* -------------------- FEATURES -------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature-card {
  background: #111;
  flex: 1 1 250px;
  max-width: 300px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-body {
  padding: 1rem;
}

.feature-body h3 {
  color: red;
}

/* -------------------- SUPPLEMENTS -------------------- */
.supplements {
  background: #111;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.supplements p {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.supplements ul {
  list-style: none;
  margin: 1rem auto;
  padding: 0;
}

.supplements li {
  margin: 0.5rem 0;
  color: #ddd;
}

/* -------------------- FRANCHISE -------------------- */
.franchise {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.franchise p {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.franchise ul {
  list-style: none;
  margin: 1rem auto;
  padding: 0;
}

.franchise li {
  margin: 0.5rem 0;
  color: #ddd;
}

/* -------------------- OWNER -------------------- */
.owner {
  background: #111;
  padding: 4rem 1rem;
}

.owner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.owner-photo {
  width: 250px;
  height: 250px;
  background: #333;
  border: 2px solid red;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.owner-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.owner-photo img:hover {
  transform: scale(1.08);
}

.owner-text {
  max-width: 600px;
  text-align: justify;
}

.owner-text h3 {
  color: red;
  margin-bottom: 1rem;
}

/* -------------------- GALLERY -------------------- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gallery-grid img {
  width: calc(50% - 1rem);
  height: 200px;
  object-fit: cover;
  border: 2px solid red;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

/* -------------------- PRICING SECTION -------------------- */
.pricing {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 80px 8%;
}

.pricing h2 {
  font-size: 2.5rem;
  color: red;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.pricing-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  max-width: 320px;
  flex: 1 1 300px;
  text-align: center;
  transition: all 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.pricing-card.featured {
  border: 2px solid red;
  transform: scale(1.04);
}

.pricing-card h3 {
  color: red;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.pricing-card p.price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.pricing-card li {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: #ddd;
}

.pricing-card .btn {
  display: inline-block;
  margin-top: 1rem;
  background: red;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pricing-card .btn:hover {
  background: #fff;
  color: red;
  box-shadow: 0 0 10px red;
}

/* FAQ inside Pricing */
.faq {
  max-width: 800px;
  margin: 2rem auto;
  text-align: left;
  padding: 1rem;
  background: #111;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.faq h3 {
  color: red;
  margin-bottom: 1rem;
}

.faq p {
  margin-bottom: 0.75rem;
  color: #ddd;
}

/* -------------------- CONTACT -------------------- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-info, .map-full {
  flex: 1 1 300px;
  max-width: 600px;
}

.map-full iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

/* -------------------- FOOTER -------------------- */
.site-footer {
  background: #000;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* -------------------- FLOATING WHATSAPP -------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  transition: transform 0.3s;
}

.whatsapp-float img {
  width: 50px;
  height: 50px;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
}

/* -------------------- FADE EFFECTS -------------------- */
.fade-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- POPUP -------------------- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #000;
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.5s ease;
}

.popup-content h2 {
  margin-bottom: 1rem;
  color: red;
}

.popup-content input {
  padding: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid red;
  border-radius: 5px;
  background: #111;
  color: #fff;
}

.popup-content button {
  padding: 0.75rem 1.5rem;
  background: red;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.popup-content button:hover {
  transform: scale(1.05);
  background: #cc0000;
}

.no-scroll {
  overflow: hidden;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
  .hero-sub { font-size: 1.1rem; }
  .owner-inner { flex-direction: column; }
}

@media (max-width: 768px) {
  .about-inner { flex-direction: column; align-items: center; }
  .feature-grid, .pricing-grid { flex-direction: column; align-items: center; }
  .gallery-grid img { width: 90%; height: 180px; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-sub { font-size: 0.9rem; }
  .owner-photo { width: 200px; height: 200px; }
}

.package-img {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  border: 2px solid red;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.25);
}
