/* =======================
   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 — Layout
======================= */
.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;
}

/* =======================
   Hero — Coluna Esquerda
======================= */
.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;
  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);
}

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

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

/* 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);
}

.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 img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.skill-badge span {
  font-weight: bold;
  color: var(--text-color);
  transition: color 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);
}

/* Botão GitHub */
.github-cta {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* =======================
   Hero — Coluna Direita
======================= */
.about-right {
  text-align: left;
}

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

.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 {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =======================
   Botões Hero — Projetos
======================= */
.btn-projetos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  transition: all 0.3s ease;
}

.btn-projetos:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-3px);

  box-shadow: 
    0 12px 24px -10px rgba(var(--primary-color-rgb), 0.5),
    0 4px 8px -6px rgba(var(--primary-color-rgb), 0.3);
}

.btn-projetos:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 187, 255, 0.3);
}

/* =======================
   Botões Hero — Contato
======================= */
.btn-contato {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 36px;

  font-size: 1.1rem;
  font-weight: bold;

  border-radius: 40px;
  border: none;

  color: #fff;

  background-color: #5ce75c;

  letter-spacing: 0.5px;
  cursor: pointer;

  transition: all 0.3s ease;
}

.btn-contato:hover {
  transform: translateY(-4px) scale(1.03);

  background-color: #36cc36;

  box-shadow: 
    0 14px 26px -12px rgba(54, 204, 54, 0.5),
    0 6px 10px -8px rgba(54, 204, 54, 0.3);
}

.btn-contato:active {
  transform: translateY(1px);
}

/* =======================
   Botões GitHub (Hero e Projetos)
======================= */
.btn-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 24px;

  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;

  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;

  transition: all 0.3s ease;

  background: rgba(12, 12, 16, 0.75);
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);

  backdrop-filter: blur(4px);
}

.btn-github:hover {
  transform: translateY(-3px);
  text-decoration: none;

  box-shadow: 
    0 12px 24px -10px rgba(var(--primary-color-rgb), 0.4),
    0 4px 8px -6px rgba(var(--primary-color-rgb), 0.25);
}

.btn-github:active {
  transform: translateY(1px);
  box-shadow: 0 0 8px rgba(0, 187, 255, 0.25);
}

.btn-github-icon {
  width: 18px;
  height: 18px;
  filter: invert(60%) sepia(100%) saturate(500%) hue-rotate(170deg) brightness(110%);
}

/* =======================
   Ações dos Projetos
======================= */
.project-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.project-actions .download-btn {
  margin-top: 0;
}

/* =======================
   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);
}

.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%;
}

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

/* =======================
   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;
}

/* =======================
   Responsivo — 768px
======================= */
@media (max-width: 768px) {
  main {
    padding: 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  #hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .about-left,
  .about-right {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

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

  /* Oculta skills e GitHub no mobile */
  .skills-container,
  .github-cta {
    display: none;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

.btn-projetos,
.btn-contato {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

  .skills-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    justify-content: center;
  }

  .skill-badge {
    width: 140px;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .bio-text p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .resume-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .resume-actions {
    flex-direction: column;
    align-items: center;
  }
}