/* Mulai Gym Styles - Mobile First */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Theme colors based on mockups */
  --primary: #4B4BEC;
  --secondary: #BEF006;
  --dark: #343434;
  --light: #FFFFFF;
  --background: #F5F5F5;
  --gray: #757575;
  --outline-button-border-width: 3px;
  --navbar-height: 7.5vh; /* Variable for navbar height */
}

/* Bootstrap Overrides */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

/* Ensure specificity for button outlines if needed */
.btn-outline-secondary.text-secondary {
  color: var(--secondary) !important;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary);
  color: var(--light);
  margin: 0;
  padding-top: var(--navbar-height); /* Use variable */
  overflow-x: hidden;
}

/* Navbar styling */
.navbar {
  background: linear-gradient(90deg, #4B4BEC, #6464ef) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  text-align: center;
  height: var(--navbar-height); /* Use variable */
  display: flex;
  align-items: center;
}

.navbar-brand {
  color: var(--light) !important;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto;
}

.navbar-toggler {
  border: none;
  color: var(--light);
  position: absolute;
  right: 20px;
}

.navbar-toggler i {
  font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--light) !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #3939d1;
  border-color: #3939d1;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  border-radius: 24px;
  font-weight: 600;
  padding: 10px 24px;
  color: var(--primary) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #a8d700;
  border-color: #a8d700;
  color: var(--primary) !important;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
  border-width: var(--outline-button-border-width);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--light);
  border-width: var(--outline-button-border-width);
}

.btn-outline-secondary {
  color: var(--secondary);
  border-color: var(--secondary);
  border-radius: 24px;
  font-weight: 600;
  padding: 10px 24px;
  border-width: var(--outline-button-border-width);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--secondary);
  color: var(--dark);
  border-width: var(--outline-button-border-width);
}

/* Hero section */
.hero-title {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  text-transform: uppercase;
}

/* Feature section */
.feature-section {
  background-color: var(--primary);
  padding: 3rem 1rem;
}

.section-heading {
  color: var(--light);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.feature-icon {
  background-color: var(--light);
  color: var(--primary);
  width: 80px;
  height: 80px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.feature-title {
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.5rem;
  text-align: center;
}

.feature-text {
  color: var(--light);
  opacity: 0.8;
  text-align: center;
}

/* Section styling */
.section {
  padding: 3rem 1rem;
  background-color: var(--primary);
}

.section-title {
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.75rem;
  color: var(--light);
}

/* Forms */
.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
}

.form-control::placeholder {
  color: #9393ee !important;
  opacity: 1;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(75, 75, 236, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--light);
}

/* Offcanvas menu */
.offcanvas {
  background-color: var(--primary);
  width: 50% !important;
  max-width: 50%;
  top: var(--navbar-height); /* Use variable */
  height: calc(100vh - var(--navbar-height) - 10vh); /* Use viewport height percentage instead of fixed pixels */
  margin-top: 0;
  box-sizing: border-box;
  z-index: 1040; /* Below navbar but above backdrop */
  border-top-left-radius: 16px; /* Round the top left corner */
  border-top: none; /* Remove the transparent border */
  position: fixed; /* Fix positioning */
  overflow-y: auto; /* Add scrolling for content that may be cut off */
}

/* Keep navbar above offcanvas backdrop */
.offcanvas-backdrop {
  z-index: 999;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
  color: var(--light) !important;
}

.offcanvas-header .btn-close {
  background-color: var(--light);
  opacity: 1;
}

.offcanvas-body .nav-link {
  color: var(--light) !important;
  font-size: 1.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
  color: var(--secondary) !important;
}

/* For smaller devices, ensure offcanvas is not too small */
@media (max-width: 576px) {
  .offcanvas {
    width: 50% !important;
    max-width: none;
  }
}

/* Cards */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #3a3ad1 !important;
}

/* Mobile container for consistent mobile view */
.mobile-container {
  max-width: 576px;
  margin: 0 auto;
  background-color: var(--primary);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Remove any additional top padding as body padding handles it */
}

/* Promo box */
.promo-box {
  background: linear-gradient(90deg, #bef006, #ffffff);
  color: var(--primary);
  border-radius: 15px;
  padding: 15px 30px;
  display: inline-block;
  font-weight: bold;
  font-style: italic;
  text-align: left;
}

/* Media Queries */
@media (min-width: 768px) {
  .content-wrapper {
    width: 60%;
  }
  
  .hero-section {
    text-align: left;
    padding: 4rem 2rem;
    margin-top: 0; /* Remove this since we have body padding already */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    color: var(--light);
  }
  
  .section {
    padding: 5rem 2rem;
  }
  
  .section-title {
    font-size: 2.25rem;
    color: var(--light);
  }
  
  .section.bg-white .section-title {
    color: var(--light);
  }
  
  .section.bg-white {
    background-color: var(--primary) !important;
  }
}

/* Ensure content containers have proper spacing */
.container, .mobile-container {
  padding-top: 0; /* Remove any additional top padding as body padding handles it */
}

/* Full width container overrides */
.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.container-fluid.px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

section {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Feature cards */
.feature-cards {
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 100%;
}

.feature-card {
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.feature-card .feature-icon {
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card .feature-content {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  padding: 0.75rem 1rem;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .feature-cards {
    padding: 1rem;
    max-width: 90%;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .feature-card h3 {
    font-size: 1.5rem;
  }
  
  .feature-card p {
    font-size: 1.1rem;
  }
  
  .feature-card .feature-content {
    min-height: 80px;
  }
}

@keyframes dancing {
  0% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(15px) rotate(2deg); }
  50% { transform: translateX(0) rotate(0deg); }
  75% { transform: translateX(-15px) rotate(-2deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.dancing-text-top {
  animation: dancing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
}

.dancing-text-bot {
  animation: dancing 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 0.75s;
  display: inline-block;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(15px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(-15px); }
  100% { transform: translateX(0); }
}

.shake-text-top {
  animation: shake 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
}

.shake-text-bot {
  animation: shake 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
  display: inline-block;
}

/* Membership Tier Colors */
/* Bronze/Copper Tier - Gym Reguler */
.tier-bronze {
  background: linear-gradient(135deg, #faf0e6 0%, #e6b87d 25%, #cd7f32 50%, #b8722c 75%, #e8c5a0 100%);
  border: 2px solid #b8722c;
  box-shadow: 0 6px 15px rgba(205, 127, 50, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-bronze-strong {
  background: linear-gradient(135deg, #faf0e6 0%, #e6b87d 25%, #cd7f32 50%, #b8722c 75%, #e8c5a0 100%);
  border: 2px solid #b8722c;
  box-shadow: 0 12px 35px rgba(205, 127, 50, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Silver Tier - Kelas Pemula */
.tier-silver {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 25%, #d5d5d5 50%, #c8c8c8 75%, #e0e0e0 100%);
  border: 2px solid #b8b8b8;
  box-shadow: 0 6px 15px rgba(180, 180, 180, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-silver-strong {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 25%, #d5d5d5 50%, #c8c8c8 75%, #e0e0e0 100%);
  border: 2px solid #b8b8b8;
  box-shadow: 0 12px 35px rgba(180, 180, 180, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Gold Tier - Semi Private */
.tier-gold {
  background: linear-gradient(135deg, #faf6e8 0%, #f7e98e 25%, #f4d03f 50%, #f1c40f 75%, #f8e596 100%);
  border: 2px solid #d4ac0d;
  box-shadow: 0 6px 15px rgba(244, 208, 63, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-gold-strong {
  background: linear-gradient(135deg, #faf6e8 0%, #f7e98e 25%, #f4d03f 50%, #f1c40f 75%, #f8e596 100%);
  border: 2px solid #d4ac0d;
  box-shadow: 0 12px 35px rgba(244, 208, 63, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Diamond/Blue Tier - Private Trainer */
.tier-diamond {
  background: linear-gradient(135deg, #f0f8ff 0%, #d6ebff 25%, #b9f2ff 50%, #9de8ff 75%, #d1f0ff 100%);
  border: 2px solid #5bb3e6;
  box-shadow: 0 6px 15px rgba(185, 242, 255, 0.4), inset 0 1px 4px rgba(255, 255, 255, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.tier-diamond-strong {
  background: linear-gradient(135deg, #f0f8ff 0%, #d6ebff 25%, #b9f2ff 50%, #9de8ff 75%, #d1f0ff 100%);
  border: 2px solid #5bb3e6;
  box-shadow: 0 12px 35px rgba(185, 242, 255, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Tier indicator dots */
.tier-bronze .tier-dot {
  background-color: #cd7f32;
}

.tier-silver .tier-dot, .tier-silver-strong .tier-dot {
  background-color: #c0c0c0;
}

.tier-gold .tier-dot, .tier-gold-strong .tier-dot {
  background-color: #ffd700;
}

.tier-diamond .tier-dot, .tier-diamond-strong .tier-dot {
  background-color: #b9f2ff;
}