/* quem.css - Estilos específicos para a página Quem Somos */

/* Apenas estilos específicos da página, os gerais estão em styles.css */

/* ------------------- Conteúdo Principal ------------------- */
main {
  flex: 1;
  padding: 120px 5% 40px;
  color: #333;
  position: relative;
  z-index: 1;
}

#Titutlo {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 60px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
  color: #38186c;
}

#Titutlo.show {
  opacity: 1;
  transform: translateY(0);
}

#Titutlo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #38186c, #981f1b);
  border-radius: 2px;
}

/* ------------------- Cards ------------------- */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin: 80px 0;
}

.card-drake {
  display: flex;
  align-items: center;
  min-height: 500px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background: linear-gradient(135deg, #4a2a7a, #38186c);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-drake.show {
  opacity: 1;
  transform: translateY(0);
}

.card-drake:nth-child(even) {
  flex-direction: row-reverse;
}

.card-content {
  flex: 1;
  padding: 60px;
  z-index: 2;
  position: relative;
  background-color: transparent;
}

.card-image {
  flex: 1;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px;
}

.card-drake:nth-child(even) .card-image {
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

.card-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: all 0.6s ease;
  transform: scale(0.9);
  border-radius: 10px;
}

.card-image:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.card-image:hover img {
  transform: scale(1);
  max-width: 85%;
  max-height: 85%;
}

.card-content h1 {
  font-size: 2.5em;
  margin-bottom: 25px;
  font-weight: 700;
  color: #fff;
  position: relative;
  display: inline-block;
}

.card-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #fff, #ffd700);
  border-radius: 2px;
}

.card-content p {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.card-cta {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(90deg, #38186c, #981f1b);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(152, 31, 27, 0.3);
  cursor: pointer;
  border: none;
}

.card-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(152, 31, 27, 0.4);
  background: linear-gradient(90deg, #981f1b, #38186c);
}

/* ------------------- Modal ------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
  overflow: auto;
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  background: linear-gradient(135deg, #38186c, #2a1252);
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(50px);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 25px 30px;
  background: rgba(56, 24, 108, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.modal-title {
  font-size: 2em;
  color: #fff;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ffd700;
}

.modal-body {
  padding: 30px;
  position: relative;
}

.modal-body p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #e0e0e0;
  text-align: center;
}

/* ------------------- Carrossel ------------------- */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  width: 100%;
  min-height: 350px;
}

.carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
  flex: 1;
}

.carousel-inner {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  padding: 0;
  display: flex;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
  visibility: visible;
}

.carousel-button {
  background: rgba(152, 31, 27, 0.8);
  border: none;
  color: white;
  font-size: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-button:hover {
  background: rgba(152, 31, 27, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev { left: -60px; }
.carousel-button.next { right: -60px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 35px;
  margin-top: 20px;
  padding: 15px;
  width: 100%;
  max-width: 1100px; 
  margin-left: auto; 
  margin-right: auto;
}

.team-member {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid rgba(152, 31, 27, 0.3);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  backdrop-filter: blur(5px);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(152, 31, 27, 0.6);
}

.member-name {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.4;
}

.member-role {
  color: #ffd700;
  font-size: 1.1em;
  margin-bottom: 0;
  font-weight: 500;
  line-height: 1.5;
}

/* ------------------- Indicadores ------------------- */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 15px;
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 100;
}

.carousel-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #981f1b;
  transform: scale(1.4);
}

.carousel-dot:hover {
  background: rgba(152, 31, 27, 0.8);
  transform: scale(1.3);
}

/* ------------------- Responsivo ------------------- */
@media(max-width: 1200px) {
  .modal-container{
     max-width: 95%;
     }

  .team-grid { 
    grid-template-columns: repeat(2, 1fr);
   }

  .carousel-button { 
    width: 60px;
     height: 60px; 
     font-size: 1.8rem; 
    }

  .carousel-button.prev {
     left: -40px; 
    }

  .carousel-button.next {
     right: -40px; 
    }
}

@media(max-width: 900px) {
  .team-grid { 
    gap: 25px;
  }

  .team-member { 
    padding: 25px 20px;
    min-height: 180px; 
    }

  .member-name { 
    font-size: 1.3em; 
  }

  .member-role { 
    font-size: 1em; 
  }

}

@media(max-width: 768px) {
  .card-drake {
    flex-direction: column !important;
    gap: 30px;
  }
  
  .card-content {
    padding: 30px;
  }
  
  .card-image {
    height: 300px;
    transform: none !important;
    margin: 0 20px 20px 20px;
  }
  
  .card-image:hover {
    transform: scale(1.03) !important;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px; 
    }

  .team-member { 
    padding: 20px 15px;
    min-height: 160px;
   }

  .carousel-button {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
   }

  .carousel-button.prev { 
    left: 10px; 
  }

  .carousel-button.next {
     right: 10px; 
    }
}

@media(max-width: 480px) {
  #Titutlo {
    font-size: 2em;
  }
  
  .card-content h1 {
    font-size: 2em;
  }
  
  .card-content p {
    font-size: 1em;
  }
  
  .team-member {
    padding: 18px 12px;
    min-height: 140px; 
    }

  .member-name {
     font-size: 1.1em; 
    }

  .member-role {
     font-size: 0.9em; 
    }
    
  .carousel-button {
      width: 45px;
      height: 45px;
      font-size: 1.4rem;
     }

  .carousel-dots {
     gap: 12px; 
    }

  .carousel-dot {
     width: 14px; 
     height: 14px;
     }
}