/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Reset e estilos globais */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Container Principal */
.main-container {
  width: 100%;
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 0;
}

/* Ponto de início da barra azul na metade da imagem */
/* Para ajustar a altura do background azul, altere o valor em "top":
   - Quanto MAIOR o número após o 50%, mais ALTO o background fica (sobe)
   - Quanto MENOR o número após o 50%, mais BAIXO o background fica (desce)
   Exemplo: calc(50% - 150px) = mais alto | calc(50% - 50px) = mais baixo */
.blue-background-bar-start {
  position: absolute;
  top: calc(50% - 20px); /* Ajuste este valor para mover o background para cima/baixo */
  left: 0;
  width: 100%;
  height: calc(100vh + 400px); /* Altura dinâmica que cobre até os cards */
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  z-index: 1;
  pointer-events: none;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

@media (max-width: 768px) {
  .blue-background-bar-start {
    top: calc(50% - 20px); /* Ajuste este valor para tablet */
    height: calc(100vh + 300px);
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
  }
}

@media (max-width: 480px) {
  .blue-background-bar-start {
    top: calc(50% - 20px); /* Ajuste este valor para mobile */
    height: calc(100vh + 250px);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }
}

/* Seção Superior: Features */
.features-section {
  background-color: transparent;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.features-content {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 768px) {
  .features-section {
    padding: 3rem 1.5rem;
  }
  
  .features-content {
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .features-section {
    padding: 2rem 1rem;
  }
  
  .features-content {
    gap: 2rem;
  }
}

/* Título da Seção */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #3B82F6;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin: 0;
  animation: slideUp 1s ease-out 0.2s both;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
}

/* Wrapper do Grid de Features */
.features-grid-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  animation: slideUp 1s ease-out 0.4s both;
}

/* Grid de Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  flex: 1;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .features-grid-wrapper {
    position: relative;
    padding: 0 2.5rem;
  }
  
  .features-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 1rem;
  }
  
  .features-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .features-grid .feature-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    max-width: 85%;
    min-width: 85%;
  }
  
  .feature-image {
    height: 160px;
  }
  
  .feature-text {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  /* Indicadores de Scroll */
  .scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    user-select: none;
  }
  
  .scroll-indicator:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  }
  
  .scroll-indicator:active {
    transform: translateY(-50%) scale(0.95);
  }
  
  .scroll-indicator-left {
    left: 0;
  }
  
  .scroll-indicator-right {
    right: 0;
  }
  
  .scroll-indicator svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 641px) {
  .scroll-indicator {
    display: none;
  }
}

/* Card de Feature */
.feature-card {
  background-color: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.feature-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.1);
}

.feature-text {
  padding: 1.5rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .feature-image {
    height: 180px;
  }
  
  .feature-text {
    padding: 1.2rem;
    font-size: 0.95rem;
  }
}

/* Seção de Preço */
.price-section {
  text-align: center;
  animation: slideUp 1s ease-out 0.6s both;
  margin: 1rem 0;
}

.price-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.price-value {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  margin: 0;
}

@media (max-width: 768px) {
  .price-title {
    font-size: 1.2rem;
  }
  
  .price-value {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .price-title {
    font-size: 1rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
}

/* Botão CTA Principal */
.cta-main-section {
  width: 100%;
  max-width: 600px;
  animation: slideUp 1s ease-out 0.8s both;
}

.cta-main-button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #FF6B35 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 1.5rem 3rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-main-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-main-button:hover::before {
  width: 400px;
  height: 400px;
}

.cta-main-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
}

.cta-main-button:active {
  transform: translateY(-1px) scale(1);
}

@media (max-width: 768px) {
  .cta-main-button {
    padding: 1.2rem 2rem;
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .cta-main-button {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 1px;
  }
}

/* Seção de Planos */
.plans-selection {
  width: 100%;
  max-width: 900px;
  animation: slideUp 1s ease-out 1s both;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .plans-selection {
    padding-bottom: 2rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .plans-selection {
    margin-top: 1.5rem;
    padding-bottom: 2rem;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

.plans-grid.single-card {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }
  
  .plans-grid.single-card {
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .plans-grid {
    gap: 0.8rem;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .plans-grid.single-card {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
  }
}

/* Card do Plano */
.plan-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s;
}

.plan-card:hover::before {
  left: 100%;
}

.plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: rgba(59, 130, 246, 0.5);
}

.plan-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a1a 0%, #1E3A8A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .plan-card {
    padding: 2rem;
  }
  
  .plan-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .plan-card {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .plan-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }
  
  .option-button {
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }
  
  .option-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
}

/* Opções do Plano */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-button {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  border: none;
  border-radius: 12px;
  padding: 1.25rem 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.option-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.option-button:hover::after {
  width: 300px;
  height: 300px;
}

.option-button:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

.option-button:active {
  transform: translateY(-1px);
}

.option-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
  z-index: 1;
}

.option-button:hover::before {
  left: 100%;
}

.option-text {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* Seção da Foto Circular do Personal Trainer */
.trainer-image-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  animation: fadeIn 1s ease-out 1s both;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.trainer-image-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #3B82F6;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  padding: 4px;
  z-index: 3;
}

.trainer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .trainer-image-section {
    padding: 2rem 0;
  }
  
  .trainer-image-wrapper {
    width: 220px;
    height: 220px;
    border-width: 6px;
  }
}

@media (max-width: 480px) {
  .trainer-image-section {
    padding: 1.5rem 0;
  }
  
  .trainer-image-wrapper {
    width: 180px;
    height: 180px;
    border-width: 5px;
  }
}

/* Seção de Contato */
.contact-section {
  background-color: #000000;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* Barra de Contato */
.contact-bar {
  background-color: #000000;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}

.contact-item svg {
  flex-shrink: 0;
  color: #ffffff;
}

.contact-item.qr-code {
  margin-left: auto;
}

.qr-placeholder {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .contact-bar {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .contact-item {
    justify-content: center;
    font-size: 0.9rem;
  }
  
  .contact-item.qr-code {
    margin-left: 0;
  }
}

/* Ajustes de responsividade geral */
@media (max-width: 640px) {
  .features-section {
    padding: 3rem 1.5rem;
  }
  
  .features-content {
    gap: 2rem;
  }
}
