/* Títulos de Abas */
.SB-title {
  margin-bottom: 3rem;
}

.tab-title {
  font-family: 'Coolvetica', Sans-Serif;
}

.tab-title span:first-child {
  color: var(--text-color);
  font-size: 30px;
}

.tab-title span:last-child {
  color: var(--primary-color);
  font-size: 30px;
}

/* =======================
   Hero (Sobre Mim)
======================= */
.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-left, .about-right {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.about-right {
  text-align: left;
}

.about-right h1 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 2.5rem;
}

.hero-img-container {
  position: relative;
  width: var(--profile-pic-size);
  height: var(--profile-pic-size);
  margin: 0 auto 2rem;
}

.profile-pic.animated-border {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px; /* Reduzi para melhorar o efeito */
  background: linear-gradient(
    45deg,
    var(--primary-color),
    #00e1ff,
    #0062ff,
    var(--primary-color)
  );
  background-size: 300% 300%;
  animation: gradient-border 4s ease infinite;
  box-shadow: 0 0 10px rgba(0, 187, 255, 0.5);
}

@keyframes gradient-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-pic.animated-border {
  animation: border-pulse 2s infinite;
}

.profile-pic.animated-border:hover {
  animation-duration: 1s;
  transform: scale(1.02);
}

/* Habilidades */
.skills-container {
  text-align: center;
  background: rgba(41, 41, 41, 0.3);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .about-left {
    order: 1; /* primeiro: foto */
  }

  .about-right {
    order: 2; /* segundo: nome + descrição */
  }

  .skills-container {
    order: 3; /* terceiro: skills */
  }

  .hero-cta {
    order: 4; /* quarto: botões */
  }
}

.skills-container h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-badge {
  background: var(--tag-background);
  border-radius: 20px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: var(--tag-hover-background);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 187, 255, 0.2);
}

.skill-badge:hover span {
  color: var(--text-color);
}

.skill-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.skill-badge span {
  font-weight: bold;
  color: var(--text-color);
  transition: color 0.3s ease;
}

/* Adicione ao final do sections.css */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    justify-content: center;
  }
  
  .skill-badge {
    width: 140px;
    box-sizing: border-box;
    margin: 0 auto;
  }
}

/* História */
.subtitle {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: -0.5rem 0 1.5rem;
  font-weight: normal;
}

.bio-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-button {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 1px;
  border: none;
}

/* Botão Primário (Contato) */
.cta-button.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 187, 255, 0.3);
}

/* Botão Secundário (Projetos) */
.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

/* Efeitos Hover */
.cta-button.primary:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 187, 255, 0.4);
}

.cta-button.secondary:hover {
  background: rgba(0, 187, 255, 0.1);
  transform: translateY(-3px);
}

/* Efeito ao clicar */
.cta-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 187, 255, 0.4);
}

/* Seção Projetos */
.project {
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(41, 41, 41, 0.3);
}

/* Estilo para o papel no projeto */
.project-role {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background: rgba(0, 187, 255, 0.1);
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
}

.project-image {
  width: 100%;
  max-height: var(--carousel-max-height);
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-images img,
.carousel-images .video-slide {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.video-slide {
  position: relative;
  padding-top: 56.25%; /* Proporção 16:9 */
}

.video-slide iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Seções Adicionais */
.contact {
  margin-top: 3rem;
}

/* =======================
   Seção Currículo
======================= */
.resume-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(41, 41, 41, 0.3);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.resume-description {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.resume-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.resume-summary {
  text-align: left;
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  background: rgba(0, 187, 255, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  max-width: 600px;
}

.resume-summary h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.resume-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-summary li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-btn:hover {
  background: rgba(0, 187, 255, 0.1);
  color: #fff;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
  /* Melhorias para projetos em mobile */
  .project {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .project h3 {
    font-size: 1.4rem;
  }

  .carousel-images img,
  .carousel-images .video-slide {
    max-height: 250px;
  }

  .carousel-images .video-slide iframe {
    height: 250px;
  }

  .carousel-button {
    font-size: 1.8rem;
    padding: 5px 15px;
  }

  .tags {
    flex-wrap: wrap;
    gap: 5px;
  }

  .tag {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  .download-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Ajustes adicionais para telas muito pequenas */
  .carousel-images img,
  .carousel-images .video-slide {
    max-height: 200px;
  }

  .carousel-images .video-slide iframe {
    height: 200px;
  }

  .project p {
    font-size: 1rem;
  }
}