/* About Partner Section */
.about__partner {
  padding: 5rem 0;
  background-image: url("../images/home/ebook-background.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about__partner-content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-left: 15%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.partner-text {
  padding-right: 2rem;
}

.partner-text h2 {
  margin-bottom: 2rem;
}

.partner-text .title,
.solutions-text .title,
.team-text .title {
  display: block;
  font-family: "Gilroy", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.partner-text .subtitle {
  font-family: "Hattinant", sans-serif;
  font-size: 4.5rem;
  font-weight: 500;
  color: #000;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.partner-text .subtitle.visible {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.partner-text .subtitle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 60%;
  background-color: rgba(255, 215, 0, 1);
  transform: translateY(-50%);
  z-index: -1;
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
}

.partner-text .subtitle.visible::before {
  animation: highlightIn 0.8s ease forwards 0.4s;
}

@keyframes highlightIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

.partner-text p {
  font-family: "Gilroy", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

.partner-image::before {
  content: "";
  position: absolute;
  top: 25%;
  right: 0;
  width: 200px;
  height: 200px;
  background-image: url("../images/decoration/ebook-decoration.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.image-container {
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.partner-badge {
  position: absolute;
  bottom: 8rem;
  right: 0rem;
  width: 26rem;
  height: auto;
  background-color: rgba(255, 215, 0, 1);
  border-radius: 10px;
  padding: 2.5rem 5rem 2.5rem 2.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-badge img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.decoration-dots {
  position: absolute;
  top: -8rem;
  right: -12rem;
  width: 300px;
  height: 300px;
  background-image: url("../images/Animacoes/anima_bolinhas_amarela.gif");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

@media (max-width: 1200px) {
  .about__partner-content {
    gap: 3rem;
  }

  .partner-text .title {
    font-size: 3.5rem;
  }

  .partner-text .subtitle {
    font-size: 4rem;
  }

  .partner-badge {
    width: 200px;
    height: 80px;
  }
}

@media (max-width: 992px) {
  .about__partner {
    background: #fff;
  }

  .about__partner-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .partner-text {
    padding-right: 0;
  }

  .partner-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .decoration-dots {
    display: none;
  }
}

@media (max-width: 768px) {
  .about__partner {
    padding: 3rem 0;
  }

  .partner-text .title {
    font-size: 3rem;
  }

  .partner-text .subtitle {
    font-size: 3.5rem;
  }

  .partner-badge {
    width: 150px;
    height: 60px;
    bottom: -1rem;
    right: -1rem;
  }
}

@media (max-width: 480px) {
  .partner-text .title {
    font-size: 2.5rem;
  }

  .partner-text .subtitle {
    font-size: 3rem;
  }
}

/* About Solutions Section */
.about__solutions {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about__solutions-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  direction: ltr;
}

.solutions-image {
  position: relative;
}

.solutions-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.solutions-image .decoration-dots {
  position: absolute;
  width: 220px;
  height: 220px;
  background-image: url("../images/decoration/ebook-decoration.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Posicionamento dos dots dependendo do lado da imagem */
.solutions-image .decoration-dots.dots-right {
  top: 25%;
  right: -30px;
}

.solutions-image .decoration-dots.dots-left {
  top: 25%;
  left: -30px;
}

.solutions-text {
  padding-left: 2rem;
  padding-right: 0;
}

.solutions-text p {
  font-family: "Gilroy", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.solutions-text p:last-child {
  margin-bottom: 0;
}

/* Restore text direction for individual grid items */
.solutions-image,
.solutions-text {
  direction: ltr;
}

@media (max-width: 992px) {
  .about__solutions-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    direction: ltr;
  }

  .solutions-text {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .solutions-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .about__solutions {
    padding: 3rem 0;
  }

  .solutions-text p {
    font-size: 1rem;
  }
}

/* About Team Section */
.about__team {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about__team-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.team-text {
  padding-right: 2rem;
}

.team-text p {
  font-family: "Gilroy", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.team-text p:last-child {
  margin-bottom: 0;
}

.team-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image .decoration-dots {
  position: absolute;
  top: 25%;
  right: 0;
  width: 220px;
  height: 220px;
  background-image: url("../images/decoration/ebook-decoration.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

@media (max-width: 992px) {
  .about__team-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-text {
    padding-right: 0;
    text-align: center;
  }

  .team-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .about__team {
    padding: 3rem 0;
  }

  .team-text p {
    font-size: 1rem;
  }
}

/* About Services Section */
.about__services {
  position: relative;
  padding: 5rem 0 10rem 0;
  background-color: #fcaf26;
  overflow: hidden;
}

.about__services::before {
  content: "";
  position: absolute;
  top: 5%;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/decoration/solutions-decoration.png");
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

.about__services-content {
  position: relative;
  z-index: 2;
  max-width: 1800px;
  margin: 0 auto;
  padding: 2rem;
}

.services-title {
  text-align: center;
  margin-bottom: 4rem;
}

.services-title .gilroy {
  font-family: "Gilroy", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #000;
  margin-right: 1rem;
}

.services-title .hattinant {
  font-family: "Hattinant", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: #000;
  position: relative;
  display: inline-block;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.services-title .hattinant.visible {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-title .hattinant::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 55%;
  background-color: rgba(255, 242, 000, 1);
  transform: translateY(-50%);
  z-index: -1;
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
}

.services-title .hattinant.visible::before {
  animation: highlightIn 0.8s ease forwards 0.4s;
}

@keyframes highlightIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

.services-title.visible .hattinant::before {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}

.services-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 4rem;
}

.services-carousel .carousel-container {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.services-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.services-carousel .carousel-slide.active {
  opacity: 1;
}

.services-carousel .slide-item {
  position: relative;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.services-carousel .slide-item img {
  width: 100%;
  height: 100%;
  object-fit: none;
}

.services-carousel .slide-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  z-index: 1;
}

.services-carousel .slide-content {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  padding: 0 2rem;
  width: 100%;
  z-index: 2;
}

.services-carousel .slide-content p {
  font-family: "Gilroy", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 0;
  opacity: 0.9;
}

.services-carousel .slide-content h3 {
  font-family: "Gilroy", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 1200px) {
  .services-carousel {
    height: 450px;
    padding: 0 3rem;
  }

  .services-carousel .slide-content h3 {
    font-size: 2rem;
  }

  .services-carousel .slide-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .about__services {
    padding: 3rem 0;
  }

  .services-title .gilroy,
  .services-title .hattinant {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
  }

  .services-carousel {
    height: 400px;
    padding: 0 2rem;
  }

  .services-carousel .carousel-slide {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-carousel .slide-item {
    display: none;
  }

  .services-carousel .slide-item:first-child {
    display: block;
  }

  .services-carousel .slide-content h3 {
    font-size: 1.8rem;
  }

  .services-carousel .slide-content p {
    font-size: 1rem;
  }
}

/* Adicionando apenas o necessário para responsividade de imagens */
.about__hero {
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Media queries apenas para garantir que as imagens sejam exibidas corretamente */
@media (max-width: 768px) {
  .about__hero {
    background-position: center center;
  }
  .about__hero::before {
    display: none;
  }
  .about__hero-text::before {
    display: none;
  }
  .about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 109, 103, 0.65);
  }

  /* Ajustar ordem das seções no mobile */
  .about__solutions-content,
  .about__team-content {
    display: flex;
    flex-direction: column;
  }

  .services-title .hattinant::before {
    left: 40%;
    width: 20%;
  }

  /* Texto sempre vem primeiro no mobile */
  .solutions-text,
  .team-text {
    order: 1;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  /* Imagem sempre vem depois no mobile */
  .solutions-image,
  .team-image {
    order: 2;
  }

  /* Ajustar espaçamento e tamanhos para mobile */
  .about__solutions,
  .about__team {
    padding: 3rem 0;
  }

  .solutions-text p,
  .team-text p {
    font-size: 1rem;
  }

  .solutions-text .title,
  .team-text .title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .services-title .hattinant::before {
    left: 35%;
    width: 30%;
  }
}

/* Estilos para responsividade mobile */
@media (max-width: 768px) {
  .mobile-wrapper {
    flex-direction: column !important;
    padding: 30px 20px !important;
  }

  .mobile-text-container {
    order: 1 !important;
    padding: 0 !important;
    width: 100% !important;
    margin-bottom: 30px;
  }

  .mobile-image-container {
    order: 2 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .mobile-text-container h2 .title {
    font-size: 24px;
  }

  .mobile-text-container p {
    font-size: 16px;
    line-height: 1.5;
  }

  .decoration-dots {
    display: none;
  }
  .partner-image::before {
    display: none;
  }
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.projects-title-wrapper {
  text-align: center;
  margin-bottom: 4rem;
}

.projects__solutions-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.projects__solutions-solutions-image {
  position: relative;
}

.projects__solutions-solutions-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.projects__solutions-solutions-image .decoration-dots {
  position: absolute;
  top: 25%;
  left: 0;
  width: 220px;
  height: 220px;
  background-image: url("../images/decoration/ebook-decoration.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.projects__solutions-solutions-text {
  padding-left: 2rem;
}

.projects__solutions-solutions-text p {
  font-family: "Gilroy", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.projects__solutions-solutions-text p:last-child {
  margin-bottom: 0;
}

.projects__solutions-after-text {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.projects__solutions-after-text p {
  font-family: "Gilroy", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.projects__galery {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.projects__galery img {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.projects__galery img:hover {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .projects__solutions-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects__solutions-solutions-text {
    padding-left: 0;
    text-align: center;
  }

  .projects__solutions-solutions-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .projects__galery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-section {
    padding: 3rem 0;
  }

  .projects__solutions-solutions-text p,
  .projects__solutions-after-text p {
    font-size: 1rem;
  }

  .projects__galery {
    grid-template-columns: 1fr;
  }

  /* Mobile adjustments */
  .projects__solutions-content {
    display: flex;
    flex-direction: column;
  }

  .projects__solutions-solutions-text {
    order: 1;
    margin-bottom: 2rem;
  }

  .projects__solutions-solutions-image {
    order: 2;
  }
}

/* Modal styles for gallery images */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  padding: 2rem;
  box-sizing: border-box;
  overflow: auto;
}

.modal-content {
  position: relative;
  margin: 0 auto;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 5px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .modal {
    padding: 1rem;
  }

  .modal-content {
    max-width: 95%;
  }

  .modal-close {
    top: -30px;
    right: 0;
    font-size: 30px;
  }

  .about__partner-content {
    padding-left: 0;
  }
}
