/* Flip Card para Projetos */
.flip-card {
  background-color: transparent;
  width: 180px;
  height: 160px;
  perspective: 1000px;
  margin: 8px;
  display: inline-block;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background: #fff;
  z-index: 2;
}

.flip-card-back {
  background: linear-gradient(135deg, #680979 0%, #6917a0 100%);
  color: #fff;
  transform: rotateY(180deg);
  z-index: 3;
  padding: 20px 14px;
  text-align: center;
}

.flip-card-back h3 {
  margin-bottom: 8px;
}
.flip-card-back p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.flip-card-back .project-link {
  display: inline-block;
  margin-bottom: 14px;
  color: #fff;
  background: rgba(0,0,0,0.15);
  padding: 5px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.flip-card-back .project-link:hover {
  background: #fff;
  color: #6e1394;
}
.voltar-btn {
  margin-top: 8px;
}
@import url("https://fonts.googleapis.com/css2?family=Marhey:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Quicksand", sans-serif;
}

img {
  width: 100%;
  pointer-events: none;
  user-select: none;
}

ul {
  list-style-type: none;
}

h1 {
  font-family: "Marhey", sans-serif;
  font-size: clamp(1.9rem, 2vw, 3rem);
  opacity: 0;
  animation: title 1.1s ease 0.3s 1 normal forwards;
}

@keyframes title {
  0% {
    opacity: 0;
    letter-spacing: 10px;
    color: #ebeeff;
  }

  100% {
    opacity: 1;
    letter-spacing: 0;
    color: #fff;
  }
}

.hidden {
  display: none;
}

html,
body {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url(https://raw.githubusercontent.com/MARISTELAOLIVEIRA/media/main/img/fundo.png);
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

/* ------------ */
/* ICON STYLES */

.icon-container {
  position: fixed;
  bottom: 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  color: #fff;
  font-size: 1.3rem;
  padding: 5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(1);
  transform-origin: center bottom;
  position: relative;
  z-index: 1;
}

.about {
  background: rgb(182, 164, 248);
  background: linear-gradient(
    30deg,
    rgb(182, 164, 248) 0%,
    rgb(75, 52, 159) 70%
  );
}

.testimonial {
  background-color: #f6c66e;
  background-image: linear-gradient(30deg, #f6c66e 0%, rgb(168, 78, 22) 100%);
}

.projects {
  background: rgb(181, 124, 207);
  background: linear-gradient(
    310deg,
    rgb(169, 207, 124) 0%,
    rgb(77, 120, 31) 60%
  );
}

/* Botão do Blog (tom azul) */
.blog {
  background: #60a5fa; /* fallback */
  background: linear-gradient(
    135deg,
    #60a5fa 0%,   /* azul claro */
    #2563eb 100%  /* azul intenso */
  );
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.contact {
  background-color: rgb(224, 129, 157);
  background-image: linear-gradient(
    340deg,
    rgb(243, 151, 178) 0%,
    rgb(147, 20, 58) 100%
  );
}

.macbook-icon {
  background: rgb(134, 239, 172);
  background: linear-gradient(
    135deg,
    rgb(134, 239, 172) 0%,
    rgb(34, 197, 94) 100%
  );
  position: relative;
}

.admin {
  background: rgb(148, 163, 184);
  background: linear-gradient(
    135deg,
    rgb(148, 163, 184) 0%,
    rgb(71, 85, 105) 100%
  );
}

.testimonial-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(45deg, #ef4444, #dc2626);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.testimonial-badge.hidden {
  display: none;
}

/* ------- */
/* POPUP */

body.prevent-background-scroll {
  min-height: 100dvh;
  overflow-y: hidden;
}

.prevent-scroll {
  overflow: hidden;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 20;
  animation: openPopup 0.6s ease-in-out 1 normal;
}

@keyframes openPopup {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.popup-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  width: min(900px, 90%);
  background: rgba(133, 133, 133, 0.2);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  color: #fff;
  z-index: 30;
  transition: all 0.5s ease-in-out;
}

.popup-header {
  position: relative;
  display: flex;
  gap: 8px;
  font-weight: 600;
  padding: 15px 20px 10px;
  font-size: 1.2rem;
}

.popup-body {
  color: #f7f7f7;
  height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 50px;
 
}

.popup.maximized .popup-body {
  height: 100vh;
}

.button-container {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.circle-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 0;
  outline: 0;
  cursor: pointer;
  transform: scale(1);
  transition: all 0.2s;
}

.circle-btn i {
  opacity: 0;
  transition: all 0.2s;
  font-size: 0.5rem;
  color: rgb(65, 66, 67);
}

.circle-btn:hover {
  opacity: 1;
  transform: scale(1.03);
}

.button-container:hover i {
  opacity: 1;
}

.red {
  background-color: rgb(255, 96, 92);
}

.red i {
  font-size: 0.8rem;
}

.yellow {
  background-color: rgb(255, 189, 68);
}

.yellow i {
  transform: translateY(-3px);
}

.green {
  background-color: rgb(0, 202, 78);
}

.green i {
  transform: rotate(90deg);
}

/* --------- */
/* SCROLLBAR */

.popup-body::-webkit-scrollbar {
  width: 0.7rem;
}

.popup-body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0.375rem rgb(79, 78, 78);
  border-radius: 0.8rem;
}

.popup-body::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 0.375rem rgba(238, 238, 238, 0.9);
  outline: none;
  border-radius: 0.8rem;
}

/* ------ */
/* ABOUT */

.about-container {
  display: grid;
  grid-template-columns: 40% 50%;
  gap: 30px;
  place-items: center;
}

.about-container h1 {
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-container p {
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-container .img-frame {
  overflow: hidden;
  width: 250px;
  border-radius: 8px;
  box-shadow: rgba(62, 63, 168, 0.8) 0px 10px 30px 8px,
    rgba(62, 63, 168, 0.8) 0px 0px 0px 2px;
}

.about-container .img-frame img {
  aspect-ratio: 6/7;
  object-fit: cover;
  transition: transform 1s;
}

.about-container .img-frame:hover img {
  transform: rotate(4deg) scale(1.25);
}

/* ------- */
/* SKILLS */

.skill-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.skill-list h1 {
  text-align: center;
  margin-bottom: 30px;
}

.skill-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: min(100%, 400px);
  margin: 0 auto;
}

.skill-list ul li {
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  background: linear-gradient(
    130deg,
    rgba(192, 55, 234, 0.7) 0%,
    rgba(136, 46, 152, 0.5) 100%
  );
  backdrop-filter: blur(30px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  padding: 8px 12px;
}

/* --------- */
/* PROJECTS */

.project-container h1 {
  text-align: left;
  animation-delay: 0.8s;
  margin: 20px 0;
}

.all-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  place-items: center;
  gap: 30px;
  padding: 30px;
}

.all-projects img {
  height: 200px;
  object-fit: fill;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* Regra específica para imagens das Skills - menores para ficarem mais elegante no card */
.skills-container img {
  height: 60px !important;
  width: 60px !important;
  object-fit: cover !important;
  margin: 15px auto !important;
  display: block !important;
  border-radius: 8px !important;
}

/* Regra ainda mais específica para garantir que funcione */
#skills .flip-card-front img,
.popup#skills img {
  height: 60px !important;
  width: 60px !important;
  object-fit: cover !important;
  margin: 15px auto !important;
  display: block !important;
  border-radius: 8px !important;
}

/* Regra super específica para forçar o tamanho */
div.popup#skills div.skills-container div.all-skills div.flip-card div.flip-card-front img {
  height: 60px !important;
  width: 60px !important;
  max-height: 60px !important;
  max-width: 60px !important;
  min-height: 60px !important;
  min-width: 60px !important;
  margin: 25px auto !important;
  display: block !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}

/* -------------------------- */
/* PROJECTS - Mesmo estilo das Skills */

/* Garante que as imagens de projetos tenham o mesmo tamanho/estilo das skills */
#projects .flip-card-front img,
.popup#projects img {
  height: 200px !important;
  width: 200px !important;
  object-fit: cover !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: 8px !important;
}

/* Regra super específica para forçar o tamanho nas cards de projetos */
div.popup#projects div.project-container div.all-projects div.flip-card div.flip-card-front img {
  height: 200px !important;
  width: 200px !important;
  max-height: 200px !important;
  max-width: 200px !important;
  min-height: 200px !important;
  min-width: 200px !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}

/* Espaçamento mais compacto entre cards apenas no modal de projetos */
#projects .all-projects {
  gap: 6px !important;
  padding: 8px !important;
  grid-template-columns: repeat(3, 1fr) !important;
  justify-items: center !important;
  align-items: center !important;
}

#projects .flip-card {
  margin: 0 !important;
  width: 260px !important;
  height: 260px !important;
}

/* Ajusta a altura do overlay para casar com a altura do card */
#projects .overlay {
  height: 260px !important;
}

/* Responsividade para Projetos: 2 colunas (tablet), 1 coluna (mobile) */
@media (max-width: 1024px) {
  #projects .all-projects {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  #projects .all-projects {
    grid-template-columns: 1fr !important;
  }
}

.project-box {
  position: relative;
}

.overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(10, 98, 13, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #000;
  border-radius: 12px;
  list-style: none;
  z-index: 1;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.overlay:hover {
  opacity: 1;
  backdrop-filter: blur(2px);
}

.overlay h3,
.overlay button {
  opacity: 0;
  transform: translateY(-100%);
  -webkit-transform: translateY(-100%);
  transition: all 0.25s ease;
  -webkit-transition: all 0.25s ease;
}

.overlay:hover h3,
.overlay:hover button {
  transform: translateY(0);
  -webkit-transform: translateY(0);
  opacity: 1;
}

.overlay:hover h3 {
  transition-delay: 0.3s;
  -webkit-transition-delay: 0.3s;
}

.overlay:hover button {
  transition-delay: 0.5s;
  -webkit-transition-delay: 0.5s;
}

.more-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #fff;
  background-color: transparent;
  margin-top: 20px;
  cursor: pointer;
}

.more-btn::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #fff;
  z-index: -1;
  transition: all 0.4s;
}

.more-btn:hover::before {
  height: 100%;
  top: 0;
}

.more-btn span {
  color: #fff;
  line-height: 1;
  transition: color 0.4s;
}

.more-btn:hover span {
  color: #000;
}

/* ------------- */
/* TESTIMONIALS - REMOVED OLD VERSION */

/* -------- */
/* CONTACT */

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 0;
}

.contact-container h1,
.contact-container p {
  text-align: center;
  margin-bottom: 16px;
}

.contact-container p {
  font-size: 1rem;
  margin-bottom: 30px;
}

form {
  width: min(650px, 95%);
}

input[type="text"],
input[type="email"],
select,
textarea {
  font-size: 1rem;
  width: 100%;
  padding: 14px;
  background-color: transparent;
  color: #fff;
  outline: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 10px 0 20px;
  resize: vertical;
}

input[type="file"] {
  font-size: 1rem;
  width: 100%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 10px 0 20px;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border: 2px solid rgb(220, 20, 80);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff;
}

.submit-btn {
  padding: 12px 20px;
  font-size: 1.1rem;
  margin: 10px auto 0;
}

.submit-btn span {
  display: flex;
  gap: 10px;
}

/* -------- */
/* SUBMIT TESTIMONIAL */

.submit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 0;
}

.submit-container h1,
.submit-container p {
  text-align: center;
  margin-bottom: 16px;
}

.submit-container p {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-bottom: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

.small-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: -15px;
  margin-bottom: 15px;
}

.info-text {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 4px solid #f6c66e;
}

.info-text i {
  margin-right: 8px;
  color: #f6c66e;
}

/* Responsive adjustments for submit form */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.default-user-img {
  max-width: 50px;
  aspect-ratio: 1/1;
  background: rgba(225, 193, 88, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 20px;
  box-shadow: rgba(225, 193, 88, 0.8) 0px 10px 30px 0px,
    rgba(225, 193, 88, 0.8) 0px 0px 0px 2px;
}

@media (max-width: 900px) {
  .popup-body {
    padding: 30px;
  }
  
  .icon-container {
    bottom: 20px;
    gap: 12px;
  }
}

@media (max-width: 750px) {
  .about-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 4fr;
    grid-template-areas:
      "img-frame"
      "hero-content";
    padding: 160px 30px 50px;
  }

  .about-container .img-frame {
    grid-area: img-frame;
    width: 230px;
    aspect-ratio: 1/1;
  }

  .hero-content {
    grid-area: hero-content;
    margin-top: 110px;
    text-align: center;
  }

  .about-container h1 {
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .card {
    height: 280px;
  }

  .user-info h2 {
    font-size: 0.9rem;
  }
  
  .icon-container {
    bottom: 15px;
    gap: 8px;
    padding: 6px 10px;
  }
  
  .icon-box {
    width: 42px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .about-container .img-frame {
    grid-area: img-frame;
    width: 180px;
    aspect-ratio: 1/1;
  }

  .all-projects img {
    height: 180px;
  }
  
  .icon-container {
    bottom: 12px;
    gap: 10px;
    padding: 8px 12px;
  }
  
  .icon-box {
    width: 40px;
    font-size: 1.1rem;
  }
}



/* -------- */
/* TOOLTIPS */

.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: "Quicksand", sans-serif;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 2px;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.floating-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(45deg, #ef4444, #dc2626);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

/* Responsivity adjustments */
@media (max-width: 768px) {
  .tooltip::before {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .tooltip::before {
    font-size: 0.75rem;
    padding: 5px 8px;
  }
  
  .tooltip::after {
    border-width: 5px;
  }
}

/* ========================================
   ESTILOS DOS COMENTÁRIOS/TESTIMONIALS
   ======================================== */

/* Popup de comentários mais espaçoso */
#testimonial .popup-container {
    width: min(1100px, 98vw);
    max-width: 98vw;
    min-height: 80vh;
}

/* ===============================================
   SEÇÃO DE COMENTÁRIOS - VERSÃO CORRIGIDA E COMPLETA
   =============================================== */

/* Container principal do popup */
#testimonial .popup-body.testimonial-container {
    padding: 36px 32px 32px 32px !important;
    min-height: 60vh !important;
    position: relative !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
}

/* Header HORIZONTAL com título, botão e ordenação */
.testimonial-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 10 !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.testimonial-header h1 {
    margin: 0 !important;
    color: #fcf9f9 !important;
    font-size: 1.8rem !important;
    flex-shrink: 0 !important;
}

.testimonial-header .more-btn {
    background: linear-gradient(135deg, #f7979f, #f798a1) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.testimonial-header .more-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3) !important;
}

/* Controles de ordenação */
.sort-controls {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.sort-controls label {
    font-weight: 600 !important;
    color: #555 !important;
    font-size: 14px !important;
}

.sort-controls select {
    padding: 8px 16px !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    background: white !important;
    cursor: pointer !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #333 !important;
    min-width: 140px !important;
}

.sort-controls select:focus {
    outline: none !important;
    border-color: #FF4757 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1) !important;
}

/* Container do slider */
#testimonial .slider-container {
    flex-grow: 1;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

#testimonial .swiper {
    position: relative;
    min-height: 350px;
}

#testimonial .swiper-wrapper {
    padding: 10px 0 60px 0;
}

/* Cards dos comentários - LAYOUT CORRIGIDO COM LIKE NO TOPO */
#testimonial .swiper-slide {
  background: rgba(255, 255, 255, 0.85) !important;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

#testimonial .swiper-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  outline: 2px solid rgba(255, 71, 87, 0.4);
}

/* Like no topo do card */
#testimonial .like-section {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

#testimonial .like-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 20px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  color: #666 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

#testimonial .like-btn:hover {
  background: rgba(255, 71, 87, 0.9) !important;
  color: white !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3) !important;
  border-color: rgba(255, 71, 87, 0.6) !important;
}

#testimonial .like-btn[data-liked="true"] {
  background: rgba(247, 141, 157, 0.95) !important;
  border-color: #ff4562 !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(255, 69, 98, 0.4) !important;
}

#testimonial .like-btn[data-liked="true"]:hover {
  background: rgb(255, 69, 137) !important;
  transform: scale(1.1) !important;
}

#testimonial .like-btn i {
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

#testimonial .like-count {
  font-weight: 600 !important;
}

#testimonial .user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}

#testimonial .user-info img,
#testimonial .default-user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 8px;
  object-fit: cover;
}

#testimonial .default-user-img {
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

#testimonial .user-info h2 {
  font-size: 16px;
  margin: 0;
  color: white;
  font-weight: 600;
  line-height: 1.2;
}

#testimonial .comment-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

#testimonial .comment-preview p {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

#testimonial .read-more-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

#testimonial .read-more-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Popup de leitura completa */
#read-testimonial-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#read-testimonial-popup.show {
  display: flex !important;
}

#read-testimonial-popup .popup-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

#read-testimonial-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#read-testimonial-popup .popup-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

#read-testimonial-popup .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#read-testimonial-popup .close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

#read-testimonial-popup .popup-body {
  padding: 30px;
}

#read-testimonial-popup .popup-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

#read-testimonial-popup .popup-user-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

#read-testimonial-popup .popup-default-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

#read-testimonial-popup .popup-user-details h3 {
  color: white;
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
}

#read-testimonial-popup .popup-user-details .comment-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

#read-testimonial-popup .popup-comment {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin: 20px 0;
  text-align: left;
}

#read-testimonial-popup .popup-like-section {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#read-testimonial-popup .popup-like-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

#read-testimonial-popup .popup-like-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

#read-testimonial-popup .popup-like-btn[data-liked="true"] {
  background: rgba(255, 69, 98, 0.3);
  border-color: #ff4562;
  color: #ff4562;
}

#read-testimonial-popup .popup-like-btn[data-liked="true"]:hover {
  background: rgba(255, 69, 98, 0.4);
}

#read-testimonial-popup .popup-like-btn i {
  font-size: 18px;
}

#read-testimonial-popup .popup-like-count {
  font-weight: 600;
}

/* User info dentro dos cards - OTIMIZADO */
#testimonial .user-info {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 18px !important;
    gap: 15px !important;
    flex-shrink: 0 !important;
}

#testimonial .user-info img {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#testimonial .default-user-img {
    width: 55px !important;
    height: 55px !important;
    background: rgba(225, 193, 88, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 24px !important;
    box-shadow: 0 6px 15px rgba(225, 193, 88, 0.4) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
}

#testimonial .user-info h2 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    flex-grow: 1 !important;
}

/* Texto do comentário - PERMITE MAIS CONTEÚDO */
/* Texto do comentário - VERSÃO FINAL COM MAIS ESPAÇO */
#testimonial .swiper-slide p {
    color: #333 !important;
    line-height: 1.6 !important;
    margin: 15px 0 !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
    max-height: 200px !important;
    padding-right: 8px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 71, 87, 0.3) transparent !important;
    text-align: justify !important;
}

/* Scrollbar personalizada para webkit */
#testimonial .swiper-slide p::-webkit-scrollbar {
    width: 4px !important;
}

#testimonial .swiper-slide p::-webkit-scrollbar-track {
    background: transparent !important;
}

#testimonial .swiper-slide p::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
}

#testimonial .swiper-slide p::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}


#testimonial .like-btn {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    padding: 8px 14px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    color: #333 !important;
    position: relative !important;
    z-index: 50 !important;
    pointer-events: auto !important;
    outline: none !important;
}

#testimonial .like-btn:hover {
    background: rgba(255, 71, 87, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transform: translateY(-1px) !important;
    border-color: rgba(255, 71, 87, 0.3) !important;
}

#testimonial .like-btn i {
    font-size: 16px !important;
    color: #999 !important;
    transition: all 0.3s ease !important;
}

#testimonial .like-btn[data-liked="true"] i {
    color: #FF4757 !important;
    animation: heartBeat 0.6s ease !important;
}

#testimonial .like-btn:active i {
    transform: scale(1.3) !important;
}

#testimonial .like-count {
    color: #333 !important;
    font-weight: 600 !important;
}

/* Animação do coração */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Responsividade */
@media (max-width: 768px) {
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .testimonial-header h1 {
        font-size: 1.5rem;
        color: #ebeeff;
    }
    
    .sort-controls {
        justify-content: center;
    }
    
    .sort-controls select {
        min-width: 120px;
        font-size: 10px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Botão de competências com fundo rosa claro */
.icon-box.skills {
    background: #f373b5 !important;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.08);
    color: #f5f0f5;
    transition: background 0.3s, color 0.3s;
}

.icon-box.skills:hover {
    background: #f373b5 !important;
    color: #f5f0f5;
}

/* Responsividade para mobile */
@media (max-width: 900px) {
    #testimonial .popup-container {
        width: 98vw;
        min-height: 90vh;
    }
    #testimonial .popup-body.testimonial-container {
        padding: 18px 4vw 18px 4vw;
    }
}

/* ===== FORÇA VISUAL DOS TESTIMONIALS - VERSÃO DEFINITIVA ===== */
#testimonial .testimonial-header,
#testimonial .popup-body .testimonial-header,
.popup#testimonial .testimonial-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* FORÇA A TRANSPARÊNCIA DOS CARDS - TODOS OS BROWSERS */
div.swiper-slide,
#testimonial div.swiper-slide,
#testimonial .swiper div.swiper-slide,
.testimonial-container div.swiper-slide,
.popup-body.testimonial-container div.swiper-slide {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    -moz-backdrop-filter: blur(20px) !important;
    -ms-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 15px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}

/* Fallback para navegadores sem suporte a backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    div.swiper-slide,
    #testimonial div.swiper-slide,
    #testimonial .swiper div.swiper-slide,
    .testimonial-container div.swiper-slide,
    .popup-body.testimonial-container div.swiper-slide {
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    }
}

/* BOTÕES DE NAVEGAÇÃO - MENORES E COM TRANSPARÊNCIA ELEGANTE */
ul.control#custom-control,
#testimonial ul.control,
#testimonial .control {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin-top: -7px !important;
    position: relative !important;
    z-index: 100 !important;
}

ul.control#custom-control li,
#testimonial .control li {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1.5px solid rgba(255, 71, 87, 0.6) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

ul.control#custom-control li:hover,
#testimonial .control li:hover {
    background: rgba(255, 71, 87, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.25) !important;
    border-color: rgba(255, 71, 87, 0.8) !important;
}

ul.control#custom-control li i,
#testimonial .control li i {
    font-size: 16px !important;
    color: #FF4757 !important;
    display: block !important;
    visibility: visible !important;
    transition: color 0.3s ease !important;
}

ul.control#custom-control li:hover i,
#testimonial .control li:hover i {
    color: white !important;
}

/* Responsividade para botões de navegação */
@media (max-width: 768px) {
    ul.control#custom-control li,
    #testimonial .control li {
        width: 35px !important;
        height: 35px !important;
    }
    
    ul.control#custom-control li i,
    #testimonial .control li i {
        font-size: 14px !important;
    }
    
    ul.control#custom-control,
    #testimonial ul.control,
    #testimonial .control {
        gap: 12px !important;
        margin-top: -10px !important;
    }
}

/* FORÇA FUNCIONAMENTO DOS BOTÕES DE LIKE COM TRANSPARÊNCIA */
button.like-btn,
#testimonial button.like-btn,
#testimonial .like-btn,
.swiper-slide button.like-btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 25px !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}
