body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: white;
}

html {
  scroll-behavior: smooth;
}
html,body{
  width:100%;
  overflow-x:hidden;   /* corta qualquer sobra horizontal */
}

/* Variáveis visuais para facilitar alinhamento */
:root {
  --sidebar-width: 70px;
  --menu-btn-size: 28px; /* mesmo tamanho da fonte do ícone */
  --menu-btn-padding: 8px; /* margem interna para o canto direito */
  
  /* Advanced Visual System Color Palette */
  --primary-bg: #121212;
  --accent-cyan: #00f2ff;
  --accent-purple: #8a2be2;
  --accent-green: #00ff7f;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --gradient-animated: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
}

/* Menu toggle (botão ☰/❌) */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  background: transparent;
  border: none;
  color: white;
  font-size: var(--menu-btn-size);
  cursor: pointer;
  display: none;
  transition: left 0.3s ease;
}

/* Quando o menu estiver aberto, posiciona o botão no canto direito do sidebar */
.sidebar.open+.menu-toggle {
  left: calc(var(--sidebar-width) - var(--menu-btn-size) - var(--menu-btn-padding));
}

/* Overlay invisível para fechar ao clicar fora */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: transparent; /* não altera o design visual */
  z-index: 900; /* abaixo do botão e do sidebar */
}
/* Mostra o overlay somente quando o menu está aberto */
.sidebar.open ~ .sidebar-overlay {
  display: block;
}

/* Menu lateral */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh; /* ocupa a tela inteira */
  background-color: rgb(0, 0, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 16px; /* leve respiro no final */
  border-bottom-right-radius: 1.5rem; /* detalhe refinado */
  transition: transform 0.3s ease-in-out, height 0.2s ease;
  z-index: 1000;
}

.logo {
  display: block;
  width: 100%; /* tamanho visual mais equilibrado no menu de 70px */
  height: auto;
  margin: 6px auto 36px; /* centralizado e com espaçamento inferior */
  object-fit: contain;
}

.nav-icon {
  color: #888;
  font-size: 22px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.nav-icon:hover,
.nav-icon.active {
  color: #00f2ff;
  transform: scale(1.2);
}

/* Conteúdo */
.content {
  margin-left: 100px;
  padding: 20px;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    top: 8px;           /* evita sobrepor a logo/imagem no topo */
    padding: 4px;       /* área de clique sutil sem alterar o visual */
  }

  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    height: auto; /* acompanha o conteúdo também no mobile */
    align-items: center; /* mantém tudo centralizado, inclusive a logo */
    padding-left: 0;
    border-bottom-right-radius: 1.5rem;
    overflow: visible; /* não precisamos de scroll aqui por ser menor */
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* mantém o botão no canto direito do sidebar quando aberto */
  .sidebar.open+.menu-toggle {
    left: calc(var(--sidebar-width) - var(--menu-btn-size) - var(--menu-btn-padding));
    top: 8px;
    left: 4.5rem; /* garante alinhamento consistente */
  }

  .content {
    margin-left: 0;
    padding: 80px 20px 20px;
  }
}

/* #####  HOME   ##### */
* {
  margin: 0;
  padding: 0;
}

section .sobre {
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header {
  position: relative;
  background-image: url('img/fundo.PNG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* ESSENCIAL PARA PARALLAX */
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/*        BOX DE TEXTO          */
.hero-texto {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 1;
  max-width: 700px;
  padding: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  /* efeito vidro */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  /* sombra elegante */
  backdrop-filter: blur(10px);
  /* efeito vidro */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-texto h1 {
  font-family: 'Audiowide', cursive;
  font-size: 48px;
  background: var(--gradient-animated);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

@keyframes chromeShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-texto p {
  font-size: 22px;
  line-height: 1.6;
}

/* Destaques com <span> */
.hero-texto span {
  color: #00f2ff;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .header {
    height: 80vh;
    background-image: url('eudesenvolvendo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  .hero-texto {
    left: 5%;
    right: 5%;
    width: 82%;
    max-width: none;
    padding: 20px;
    text-align: center;
  }

  .hero-texto h1 {
    font-family: 'Audiowide', cursive;
    font-size: 26px;
    color: #00f2ff;
    text-shadow: 0 0 10px #00f2ff66;
  }

  .hero-texto p {
    font-size: 16px;
  }
}

/* Gradient Animation Keyframes */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(138, 43, 226, 0.5); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* #####         SOBRE         ###### */
.container {
  overflow-y: scroll;
  height: 100vh;
}

#sobre {
  background-color: #0c0c0c;
  padding: 120px 60px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.sobre-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 80px 80px;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(0, 242, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

.sobre-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.5), transparent);
}

.sobre-headline {
  font-family: 'Audiowide', cursive;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 40px 0;
  background: var(--gradient-animated);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.sobre-description {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 60px 0;
  font-weight: 300;
  letter-spacing: 0.3px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
  text-align: justify;
}

.sobre-differentiators {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 32px 40px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.differentiator-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.differentiator-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 242, 255, 0.15);
}

.differentiator-item:hover .differentiator-icon {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.differentiator-icon {
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
}

.differentiator-icon svg {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

.differentiator-text {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* 🎯 RESPONSIVO */

/* Faixa intermediária - corrige problema da sidebar sobrepondo o conteúdo */
@media screen and (min-width: 769px) and (max-width: 1338px) {
  #sobre {
    padding: 120px 60px 120px 140px; /* Adiciona margem esquerda para não ficar atrás da sidebar */
  }
  
  .sobre-container {
    max-width: calc(1200px - 80px); /* Ajusta largura máxima considerando a sidebar */
  }
}

@media screen and (max-width: 1024px) {
  #sobre {
    padding: 100px 40px 100px 120px; /* Mantém margem esquerda para evitar sobreposição */
  }
  
  .sobre-content {
    padding: 70px 60px;
  }
  
  .sobre-headline {
    font-size: 36px;
  }
  
  .sobre-description {
    font-size: 18px;
  }
  
  .differentiator-text {
    font-size: 17px;
  }
}

@media screen and (max-width: 768px) {
  #sobre {
    padding: 80px 30px; /* Remove margem esquerda no mobile pois sidebar fica escondida */
    min-height: auto;
  }

  .sobre-content {
    padding: 60px 40px;
    border-radius: 24px;
  }

  .sobre-headline {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .sobre-description {
    font-size: 17px;
    margin-bottom: 50px;
  }

  .sobre-differentiators {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  
  .differentiator-item {
    padding: 20px 16px;
    gap: 16px;
  }
  
  .differentiator-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .differentiator-text {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  #sobre {
    padding: 60px 15px;
  }
  
  .sobre-content {
    padding: 40px 25px;
    border-radius: 20px;
  }
  
  .sobre-headline {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 25px;
  }
  
  .sobre-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
  }
  
  .sobre-differentiators {
    gap: 16px;
  }
  
  .differentiator-item {
    padding: 18px 14px;
    gap: 14px;
  }
  
  .differentiator-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .differentiator-text {
    font-size: 15px;
  }
  
  .card-description {
    font-size: 14px;
  }
  
  .card-features li {
    font-size: 13px;
  }
}

/* === SKILLS SECTION ================================================= */

#skills {
  background: #0c0c0c;
  padding: 80px 80px;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.skills-container{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.skills-texto {
  flex: 1 1 450px;
  min-width: 320px;
}

/* --- Coluna esquerda ------------------------------------------------ */
.skills-texto h2 {
  font-family: 'Audiowide', cursive;
  font-size: 48px;
  background: var(--gradient-animated);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 60px;
  text-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
  position: relative;
}

.skills-texto p {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 45px;
  color: #e0e0e0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-item {
  background: rgba(0, 242, 255, 0.05);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 12px;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: #00f2ff;
  box-shadow: 
    0 15px 35px rgba(0, 242, 255, 0.2),
    0 0 30px rgba(0, 242, 255, 0.3),
    inset 0 0 20px rgba(0, 242, 255, 0.1);
}

.skill-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(0, 242, 255, 0.05));
  border: 1px solid rgba(0, 242, 255, 0.3);
  transition: all 0.4s ease;
}

.skill-item:hover .skill-icon {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.4), rgba(0, 242, 255, 0.1));
  border-color: #00f2ff;
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
  transform: rotate(360deg);
}

.skill-icon i {
  font-size: 14px;
  color: #00f2ff;
  transition: all 0.4s ease;
}

.skill-item[data-skill="react"] .skill-icon i {
  color: #61dafb;
}

.skill-item:hover .skill-icon i {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 242, 255, 0.8);
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  color: #00f2ff;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-name {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.8);
}

.skill-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  opacity: 0;
}

.skill-item:hover .skill-glow {
  width: 200px;
  height: 200px;
  opacity: 1;
}

/* Specific skill colors */
.skill-item[data-skill="html"]:hover {
  border-color: #e34c26;
  box-shadow: 0 15px 35px rgba(227, 76, 38, 0.2), 0 0 30px rgba(227, 76, 38, 0.3);
}

.skill-item[data-skill="css"]:hover {
  border-color: #1572b6;
  box-shadow: 0 15px 35px rgba(21, 114, 182, 0.2), 0 0 30px rgba(21, 114, 182, 0.3);
}

.skill-item[data-skill="javascript"]:hover {
  border-color: #f7df1e;
  box-shadow: 0 15px 35px rgba(247, 223, 30, 0.2), 0 0 30px rgba(247, 223, 30, 0.3);
}

.skill-item[data-skill="react"]:hover {
  border-color: #61dafb;
  box-shadow: 0 15px 35px rgba(97, 218, 251, 0.2), 0 0 30px rgba(97, 218, 251, 0.3);
}

.skill-item[data-skill="angular"]:hover {
  border-color: #dd0031;
  box-shadow: 0 15px 35px rgba(221, 0, 49, 0.2), 0 0 30px rgba(221, 0, 49, 0.3);
}

.skill-item[data-skill="typescript"]:hover {
  border-color: #3178c6;
  box-shadow: 0 15px 35px rgba(49, 120, 198, 0.2), 0 0 30px rgba(49, 120, 198, 0.3);
}

/* --- Modern Skill Card --------------------------------------------------- */

.skill-card-modern {
  flex: 1 1 450px;
  max-width: 480px;
  position: relative;
  margin-top: -20px;
}

.card-frame {
  background: linear-gradient(145deg, rgba(0, 242, 255, 0.1), rgba(0, 242, 255, 0.05));
  border: 2px solid rgba(0, 242, 255, 0.3);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 30px rgba(0, 242, 255, 0.2);
  overflow: hidden;
  transition: all 0.4s ease;
}

.card-frame:hover {
  border-color: #00f2ff;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 50px rgba(0, 242, 255, 0.4);
  transform: translateY(-5px);
}

.card-corners {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #00f2ff;
}

.corner.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 5px;
}

.corner.top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 5px;
}

.corner.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 5px;
}

.corner.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 5px;
}

.profile-section {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.profile-image-container {
  position: relative;
  display: inline-block;
}

.foto-perfil-modern {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #00f2ff;
  display: block;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.profile-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 136px;
  height: 136px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, #00f2ff, transparent, #00f2ff);
  background-size: 200% 200%;
  animation: rotateRing 3s linear infinite;
  z-index: 1;
}

.profile-pulse {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: 0;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { transform: rotate(360deg); background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.status-title {
  text-align: center;
  margin: 20px 0 30px;
  color: #00f2ff;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
  position: relative;
}

.status-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2ff, transparent);
  box-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
}

/* ====== MODERN PROGRESS BARS ====== */
.skills-progress {
  margin-top: 30px;
}

.progress-item {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.progress-item:hover {
  transform: translateX(5px);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  color: #00f2ff;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(0, 242, 255, 0.3);
}

.progress-percentage {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

.progress-glow {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  bottom: -2px;
  background: inherit;
  border-radius: 10px;
  filter: blur(4px);
  opacity: 0.6;
  z-index: -1;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Skill-specific colors */
.progress-item[data-skill="html"] .progress-fill {
  background: linear-gradient(90deg, #e34c26, #ff6b47);
}

.progress-item[data-skill="css"] .progress-fill {
  background: linear-gradient(90deg, #1572b6, #42a5f5);
}

.progress-item[data-skill="javascript"] .progress-fill {
  background: linear-gradient(90deg, #f7df1e, #ffeb3b);
}

.progress-item[data-skill="typescript"] .progress-fill {
  background: linear-gradient(90deg, #3178c6, #5dade2);
}

.progress-item[data-skill="angular"] .progress-fill {
  background: linear-gradient(90deg, #dd0031, #e91e63);
}

.progress-item[data-skill="react"] .progress-fill {
  background: linear-gradient(90deg, #61dafb, #21d4fd);
}

/* Responsividade extra */
/* Tablet – quebra em coluna, card um pouco menor */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skills-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
  
  .skill-card-modern {
    width: 85%;
    max-width: 450px;
  }
  
  .skills-texto {
    text-align: center;
  }
  
  .skills-texto h2 {
    font-size: 24px;
  }
}

/* Faixa intermediária - corrige problema da sidebar sobrepondo o conteúdo */
@media screen and (min-width: 769px) and (max-width: 1338px) {
  #skills {
    padding: 80px 80px 80px 160px; /* Adiciona margem esquerda para não ficar atrás da sidebar */
  }
}

/* Mobile */
@media (max-width: 768px) {
  #skills {
    padding: 60px 20px; /* Remove margem esquerda no mobile pois sidebar fica escondida */
  }
  
  .skills-container {
    gap: 40px;
  }
  
  .skills-texto {
    padding: 0 10px;
  }
  
  .skills-texto h2 {
    font-size: 24px;
    margin-bottom: 40px;
  }
  
  .skills-texto p {
    font-size: 18px;
    margin-bottom: 40px;
  }
  
  .skills-grid {
    gap: 15px;
  }
  
  .skill-item {
    padding: 12px 10px;
  }
  
  .skill-icon {
    width: 28px;
    height: 28px;
  }
  
  .skill-icon i {
    font-size: 12px;
  }
  
  .skill-name {
    font-size: 12px;
  }
  
  .skill-card-modern {
    width: 100%;
    max-width: 380px;
  }
  
  .card-frame {
    padding: 30px 20px;
  }
  
  .foto-perfil-modern {
    width: 100px;
    height: 100px;
  }
  
  .profile-ring {
    width: 116px;
    height: 116px;
    top: -8px;
    left: -8px;
  }
  
  .profile-pulse {
    width: 130px;
    height: 130px;
    top: -15px;
    left: -15px;
  }
  
  .status-title {
    font-size: 18px;
    margin: 15px 0 25px;
  }
  
  .progress-label {
    font-size: 13px;
  }
  
  .progress-percentage {
    font-size: 11px;
  }
  
  .corner {
    width: 15px;
    height: 15px;
  }
}

/* #####       PORTIFOLIO - CARDS 3D        ##### */

#portfolio {
  background-color: #0c0c0c;
  padding: 100px 80px;
  position: relative;
  z-index: 10;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-title {
  font-family: 'Audiowide', cursive;
  font-size: 48px;
  background: var(--gradient-animated);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 60px;
  text-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduzido para 250px */
  gap: 30px;
  perspective: 1000px;
  justify-items: center;
}

/* === CARDS 3D === */
.card-3d {
  width: 280px; /* === 280px tamanho do card === */
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
  cursor: pointer;
  margin-bottom: 15%;
}

.card-content {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  position: static;    /*edição dos cards pulando pra fora */
  overflow: hidden;
}

.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  z-index: -1;
}

.card-title {
  font-size: 24px;
  color: #00f2ff;
  margin-bottom: 15px;
  transform: translateZ(50px);
  transition: transform 0.3s ease;
}

.card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.card-image {
  width: 100%;
  height: 200px;
  margin: 20px 0;
  transform: translateZ(75px);
  transition: transform 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.card-footer {
  transform: translateZ(25px);
  transition: transform 0.3s ease;
}

/* Shimmer Button Styles */
.shimmer-button {
  --shimmer-color: #00f2ff;
  --radius: 8px;
  --speed: 3s;
  --cut: 0.05em;
  --bg: rgba(20, 20, 20, 1);
  --spread: 90deg;
  
  position: relative;
  z-index: 0;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(0, 242, 255, 0.2);
  padding: 12px 24px;
  color: white;
  background: var(--bg);
  border-radius: var(--radius);
  transform: translateZ(20px);
  transition: transform 0.3s ease-in-out;
  font-weight: bold;
  font-size: 14px;
}

.shimmer-button:active {
  transform: translateZ(20px) translateY(1px);
}

.shimmer-button:hover {
  transform: translateZ(30px) scale(1.05);
}

.shimmer-spark-container {
  position: absolute;
  inset: 0;
  z-index: -30;
  overflow: visible;
  container-type: size;
  filter: blur(2px);
}

.shimmer-spark {
  position: absolute;
  inset: 0;
  height: 100cqh;
  aspect-ratio: 1;
  border-radius: 0;
  mask: none;
  animation: shimmer-slide var(--speed) ease-in-out infinite alternate;
}

.shimmer-spark-before {
  position: absolute;
  inset: -100%;
  width: auto;
  transform: rotate(0deg);
  background: conic-gradient(
    from calc(270deg - (var(--spread) * 0.5)),
    transparent 0,
    var(--shimmer-color) var(--spread),
    transparent var(--spread)
  );
  translate: 0 0;
  animation: spin-around calc(var(--speed) * 2) infinite linear;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-highlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: inset 0 -8px 10px rgba(0, 242, 255, 0.12);
  transition: all 0.3s ease-in-out;
}

.shimmer-button:hover .button-highlight {
  box-shadow: inset 0 -6px 10px rgba(0, 242, 255, 0.25);
}

.shimmer-button:active .button-highlight {
  box-shadow: inset 0 -10px 10px rgba(0, 242, 255, 0.25);
}

.button-backdrop {
  position: absolute;
  z-index: -20;
  background: var(--bg);
  border-radius: var(--radius);
  inset: var(--cut);
}

@keyframes shimmer-slide {
  to {
    transform: translate(calc(100cqw - 100%), 0);
  }
}

@keyframes spin-around {
  0% {
    transform: translateZ(0) rotate(0deg);
  }
  15%, 35% {
    transform: translateZ(0) rotate(90deg);
  }
  65%, 85% {
    transform: translateZ(0) rotate(270deg);
  }
  100% {
    transform: translateZ(0) rotate(360deg);
  }
}

/* Hover effects */
.card-3d:hover .card-content {
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.card-3d:hover .project-img {
  transform: scale(1.1);
}

/* Responsividade Cards 3D */

/* Faixa intermediária - corrige problema da sidebar sobrepondo o conteúdo */
@media screen and (min-width: 769px) and (max-width: 1338px) {
  #portfolio {
    padding: 100px 80px 100px 160px; /* Adiciona margem esquerda para não ficar atrás da sidebar */
  }
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
  }
  
  .card-3d {
    width: 250px;
    height: 340px;
    margin: 5% auto;
  }
}

@media (max-width: 768px) {
  #portfolio {
    padding: 60px 20px; /* Remove margem esquerda no mobile pois sidebar fica escondida */
    text-align: center; /* Força centralização */
  }
  
  .portfolio-title {
    font-size: 24px;
    margin-bottom: 40px;
  }
  
  .cards-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 15px; /* Adiciona padding lateral */
  }
  
  .card-3d {
    width: 100%;
    max-width: 85%; /* Reduz a largura máxima para evitar corte */
    height: 350px;
    margin: 5% auto;
  }
  
  .card-content {
    padding: 20px; /* Mesmo padding da seção Automações IA */
    max-width: 85%; /* Reduz ainda mais a largura */
    width: 100%;
    margin: 0 auto;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .card-description {
    font-size: 14px;
  }
  
  .card-image {
    height: 140px;
  }
}

/* #####       AUTOMAÇÕES COM IA        ##### */

#automacoes-ia {
  background-color: #0c0c0c;
  padding: 100px 80px;
  position: relative;
  z-index: 10;
}

.automacoes-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.automacoes-title {
  font-family: 'Audiowide', cursive;
  font-size: 48px;
  background: var(--gradient-animated);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  text-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.automacoes-description {
  font-size: 22px;
  line-height: 1.8;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.automacoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  perspective: 1000px;
  justify-items: center;
}

/* Ícones dos cards de IA =====   CARDS EFEITO ======  */  
.card-content1 {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.card-icon {
  text-align: center;
  margin-bottom: 20px;
  transform: translateZ(60px);
  transition: transform 0.3s ease;
}

.card-icon i {
  font-size: 48px;
  color: #00f2ff;
  text-shadow: 0 0 20px #00f2ff66;
  transition: all 0.3s ease;
}


/* Responsividade para Automações IA */
@media (max-width: 992px) {
  .automacoes-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
  #automacoes-ia {
    padding: 60px 20px;
  }
  
  .automacoes-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .automacoes-description {
    font-size: 16px;
    margin-bottom: 40px;
    text-align: justify;
  }
  
  .automacoes-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
    padding: 0 15px; /* Adiciona padding lateral */
  }
  
  .card-content1 {
    max-width: 85%; /* Reduz ainda mais a largura */
    width: 100%;
    margin: 0 auto;
    padding: 20px; /* Reduz o padding interno */
  }
  
  .card-icon i {
    font-size: 40px;
  }
}

.phone-wrapper{
  position: relative;
  width: 320px;        /* ↔ tamanho final do mock‑up   */
  aspect-ratio: 9/19.5;/* mantém proporção do iPhone   */
}

.phone-frame{
  width: 100%;
  height: auto;
  display: block;
  position: relative;  /* fica acima do vídeo           */
  z-index: 2;
  pointer-events: none;
}

.phone-video{
  position: absolute;
  top:   7.8%;   /* ↕  ajuste fino p/ encaixar 100%  */
  left:  7.1%;   /* ↔  depende da espessura da borda  */
  width: 85.8%;  /* ocupa só a área da "tela"         */
  height: 84.5%;
  object-fit: cover;
  border-radius: 22px; /* mesmo raio da tela do mock‑up */
  z-index: 1;
}

/* #####       SEÇÃO DE CONTATO        ##### */

#contato {
  background-color: #0c0c0c;
  padding: 100px 80px;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.contato-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contato-title {
  font-family: 'Audiowide', cursive;
  font-size: 48px;
  background: var(--gradient-animated);
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  text-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.contato-description {
  font-size: 22px;
  line-height: 1.8;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.contato-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  text-align: left;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* === FORMULÁRIO === */
.contato-form-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding:20px 40px 0 40px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  color: #00f2ff;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00f2ff;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.error-message {
  color: #ff4757;
  font-size: 14px;
  margin-top: 5px;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ff4757;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

.form-group.success input,
.form-group.success textarea {
  border-color: #2ed573;
  box-shadow: 0 0 15px rgba(46, 213, 115, 0.3);
}

/* Botão de envio */
.submit-btn {
  --shimmer-color: #00f2ff;
  --radius: 8px;
  --speed: 3s;
  --cut: 0.05em;
  --bg: rgba(20, 20, 20, 1);
  --spread: 90deg;
  
  position: relative;
  z-index: 0;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(0, 242, 255, 0.2);
  padding: 15px 30px;
  color: white;
  background: var(--bg);
  border-radius: var(--radius);
  transform: translateZ(20px);
  transition: transform 0.3s ease-in-out;
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
}

.submit-btn:hover {
  transform: translateZ(30px) scale(1.02);
}

.submit-btn:active {
  transform: translateZ(20px) translateY(1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-feedback.show {
  opacity: 1;
}

.form-feedback.success {
  background: rgba(46, 213, 115, 0.2);
  border: 1px solid #2ed573;
  color: #2ed573;
}

.form-feedback.error {
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid #ff4757;
  color: #ff4757;
}

/* === REDES SOCIAIS === */
.contato-social {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

.contato-social h3 {
  font-family: 'Audiowide', cursive;
  color: #00f2ff;
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link i {
  font-size: 24px;
  width: 30px;
  text-align: center;
}

.social-link span {
  font-weight: bold;
  font-size: 16px;
}

/* Cores específicas das redes sociais */
.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 104, 60, 0.3);
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.social-link.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Informações de contato */
.contact-info {
  padding-top: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: white;
}

.info-item i {
  color: #00f2ff;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Background particles */
.contato-particles,
.skills-particles,
.portfolio-particles,
.automacoes-particles,
.sobre-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}

/* Faixa intermediária - corrige problema da sidebar sobrepondo o conteúdo */
@media screen and (min-width: 769px) and (max-width: 1338px) {
  #contato {
    padding: 100px 80px 100px 160px; /* Adiciona margem esquerda para não ficar atrás da sidebar */
  }
}

/* Responsividade */
@media (max-width: 992px) {
  .contato-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  #contato {
    padding: 60px 20px; /* Remove margem esquerda no mobile pois a sidebar fica oculta */
  }
  
  .contato-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .contato-description {
    font-size: 16px;
    margin-bottom: 40px;
    text-align: justify;
  }
  
  .contato-form-container,
  .contato-social {
    padding: 25px;
  }
  
  .social-links {
    gap: 15px;
  }
  
  .social-link {
    padding: 12px 15px;
  }
  
  .social-link i {
    font-size: 20px;
  }
  
  .social-link span {
    font-size: 14px;
  }
}


