/* ========== VARIÁVEIS E CONFIGURAÇÕES GLOBAIS ========== */
:root {
  --bg-color: #fbfefb;
  --text-color: #333;
  --main-color: rgb(8, 245, 245);
  --white-color: #fdfdfd;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --foreground-secondary: hsl(135, 9, 34%);

  /* Variáveis para modo escuro */
  --bg-body: linear-gradient(135deg, #f5f7fa 0%, #e3e8ef 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --card-shadow-hover: rgba(0, 255, 255, 0.15);
  --card-border: rgba(0, 255, 255, 0.2);
  --card-border-hover: rgba(0, 255, 255, 0.6);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --accent-color: aqua;
  --img-border: rgba(0, 255, 255, 0.3);
  --img-shadow: rgba(0, 255, 255, 0.2);
  --icon-bg: rgba(0, 255, 255, 0.1);
  --icon-hover-bg: aqua;
  --icon-hover-text: #ffffff;
}

/* Modo escuro - sobrescreve as variáveis padrão */
.dark-mode {
  --bg-color: #0a0618;
  --text-color: #efeeea;
  --shadow-color: rgba(0, 0, 0, 0.7);

  --bg-body: linear-gradient(135deg, #0a0618 0%, #1a0b2e 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-shadow: rgba(0, 255, 255, 0.15);
  --card-shadow-hover: rgba(0, 255, 255, 0.3);
  --card-border: rgba(0, 255, 255, 0.15);
  --card-border-hover: aqua;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
}

/* ========== RESET E CONFIGURAÇÕES BÁSICAS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  list-style: none;
  outline: none;
  appearance: none;
  border-style: none;
}

*::before,
*::after {
  box-sizing: border-box;
}

/* ========== ESTILOS GERAIS DO BODY ========== */
body {
  background-color: #000000cc;
  height: 100vh;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background: var(--bg-body);
  transition: background 0.4s ease;
  color: var(--text-color);
  padding-top: 80px; /* Espaço para navbar fixa */
}

/* ========== CLASSES UTILITÁRIAS ========== */
.interface {
  max-width: 1280px;
  margin: 0 auto;
}

.flex {
  display: flex;
}

.btn-contato button {
  padding: 10px 40px;
  font-size: 18px;
  font-weight: 600;
  background-color: aqua;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  justify-content: center;
}

h2.titulo {
  color: var(--text-color);
  font-size: 38px;
  text-align: center;
}

h2.titulo span {
  color: aqua;
}

button:hover,
form .btn-enviar input:hover {
  box-shadow: 0px 0px 8px aqua;
  transform: scale(1.05);
}

/* ========== ESTILOS DO HEADER ========== */
header {
  padding: 40px 4%;
  margin-bottom: 30px;
}

/* ========== SEÇÃO TOPO DO SITE ========== */
section.topo-do-site {
  padding: 40px 5%;
  display: flex;
}

section.topo-do-site .flex {
  align-items: center;
  justify-content: center;
  gap: 90px;
  font-size: 20px;
}

.topo-do-site h1 {
  color: var(--text-color);
  font-size: 42px;
  line-height: 40px;
}

.topo-do-site .txt-topo-site h1 span {
  color: aqua;
}

.topo-do-site .txt-topo-site p {
  color: var(--text-color);
  margin: 40px 0;
}

.topo-do-site .img-topo-site img {
  position: relative;
  animation: flutuar 2s ease-in-out infinite alternate;
}

/* Animação de flutuação para imagens */
@keyframes flutuar {
  0% {
    top: 0;
  }
  100% {
    top: 30px;
  }
}

/* ========== SEÇÃO DE ESPECIALIDADES/SERVIÇOS ========== */
section.especiliadades {
  padding: 40px 4%;
}

section.especiliadades .flex {
  gap: 60px;
}

.especiliadades .especialidades-box {
  color: var(--text-color);
  padding: 40px;
  border-radius: 20px;
  border: solid aqua;
  box-shadow: 0 0 20px #ffffff78;
  margin-top: 45px;
  transition: 0.2s;
}

.especialidades-box:hover h3 {
  transition: 0.5s ease;
  color: aqua;
}

.especiliadades .especialidades-box:hover {
  transform: scale(1.05);
}

.especiliadades .especialidades-box i {
  font-size: 70px;
  color: aqua;
}

.especiliadades .especialidades-box h3 {
  font-size: 28px;
  margin: 15px 0;
}

.especiliadades .especialidades-box p {
  font-size: 20px;
}

/* ========== SEÇÃO SOBRE MIM ========== */
section.sobre {
  padding: 80px 4%;
}

section.sobre .flex {
  align-items: center;
  gap: 60px;
}

.sobre .txt-sobre {
  color: var(--text-color);
}

.sobre .txt-sobre h2 {
  font-size: 40px;
  line-height: 40px;
  margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
  color: aqua;
  display: block;
}

.sobre .txt-sobre p {
  margin: 20px 0;
  text-align: justify;
  font-size: 20px;
}

/* Botões sociais */
.btn-social button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background-color: aqua;
  font-size: 22px;
  cursor: pointer;
  margin: 0 5px;
  transition: 0.2s;
}

/* ========== SEÇÃO DE PORTFÓLIO ========== */
section.portfolio {
  padding: 80px 4%;
  box-shadow: 0 0 40px 10px #f9f2f21d;
}

section.portfolio .flex {
  justify-content: space-around;
  margin-top: 60px;
}

.img-port {
  width: 360px;
  height: 460px;
  background-size: cover;
  background-position: 100% 0%;
  transition: 8s;
  cursor: pointer;
  border-radius: 40px;
  position: relative;
}

.img-port:hover {
  background-position: 100% 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000b8;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: 0.5s;
}

.overlay:hover {
  opacity: 1;
}

/* ========== FORMULÁRIO DE CONTATO ========== */
section.formulario {
  padding: 80px 4%;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

form input,
form textarea {
  width: 100%;
  background-color: #242424;
  border: 0;
  outline: 0;
  padding: 20px 15px;
  border-radius: 15px;
  color: #fff;
  font-size: 18px;
}

form textarea {
  resize: none;
  max-height: 200px;
}

form .btn-enviar {
  margin-top: 20px;
  text-align: center;
}

form .btn-enviar input {
  width: 120px;
  background-color: aqua;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

/* ========== RODAPÉ ========== */
footer {
  padding: 40px 4%;
}

footer .flex {
  justify-content: space-between;
}

footer .line-footer {
  padding: 20px 0;
  color: var(--text-color);
}

.borda {
  border-top: 2px solid aqua;
}

footer .line-footer p i {
  color: aqua;
  font-size: 22px;
}

footer .line-footer p a {
  color: #fff;
}

/* ========== ESTILOS DE IMAGENS ========== */
img {
  height: 240px;
  width: 240px;
  border-radius: 200px;
  border: solid 5px aqua;
  box-shadow: 0 0 20px aqua, 0 0 40px;
}

.nar {
  display: flex;
  justify-content: center;
}

/* ========== REDES SOCIAIS ========== */
.home-content .social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid aqua;
  border-radius: 50%;
  box-shadow: 0 0 10px aqua, 0 0 20px aqua inset;
  font-size: 2rem;
  color: var(--text-color);
  margin: 2.5rem 1.5rem 3rem 0;
  transition: 0.5s ease;
}

/* brilho mais forte ao passar o mouse */
.home-content .social-media a:hover {
  box-shadow: 0 0 20px aqua, 0 0 40px aqua inset;
  border-color: aqua;
  color: aqua;
  transform: scale(1.1);
}

.home-content .social-media a:hover {
  background: var(--main-color);
  color: var(--white-color);
}

.home-content {
  display: flex;
  justify-content: center;
}

/* ========== BOTÃO DE MODO ESCURO ========== */
#darkMode-icon {
  font-size: 2.4rem;
  color: var(--white-color);
  cursor: pointer;
  color: var(--text-color);
}

/* ========== SEÇÃO DE HABILIDADES TÉCNICAS ========== */
.container-destreza {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
}

.card-caixa {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px,
    /* sombra original */ 0 0 15px rgba(0, 255, 255, 0.3),
    /* brilho externo */ inset 0 0 10px rgba(0, 255, 255, 0.2); /* brilho interno suave */
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;

  /* Efeito extra ao passar o mouse */
  &:hover {
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px,
      0 0 25px rgba(0, 255, 255, 0.6), inset 0 0 15px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.6);
  }
}

.titulo-caixa {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.competencia-caixa {
  margin-bottom: 1.5rem;
}

.header-competencia {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.nome-competencia {
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}

.nome-competencia:hover {
  color: #00ced1;
}

.percentual-competencia {
  color: var(--text-color);
  font-size: 0.9rem;
}

.barra-progresso {
  width: 100%;
  height: 8px;
  background-color: #e6ffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progresso {
  height: 100%;
  background: linear-gradient(90deg, #00ced1 0%, #40e0d0 100%);
  border-radius: 999px;
  width: 0;
  transition: width 1s ease-out;
}

/* Modal para editar percentuais */
.modal-entrada {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: rgba(0, 255, 255, 0.1) 0px 4px 12px;
  z-index: 1000;
  width: 90%;
  max-width: 300px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.modal-entrada h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #2a4365;
}

.sobreposicao {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: 999;
}

.botao-atualizar {
  background: linear-gradient(135deg, #00ced1 0%, #40e0d0 100%);
  color: white;
  color: var(--text-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 206, 209, 0.2);
}

.botao-atualizar:hover {
  background: linear-gradient(135deg, #40e0d0 0%, #00ced1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 206, 209, 0.3);
}

input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: #00ced1;
  box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.1);
}

/* ========== CARD DE PERFIL ========== */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 2em;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2em;
}

.card {
  position: relative;
  width: clamp(280px, 90vw, 300px);
  height: clamp(380px, 90vh, 400px);
  margin: 1em;
  background: var(--card-bg);
  box-shadow: 0 15px 35px var(--card-shadow), 0 0 20px var(--card-shadow);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid var(--card-border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--card-border) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.3;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px var(--card-shadow-hover),
    0 0 40px var(--card-shadow-hover);
  border-color: var(--card-border-hover);
}

/* Conteúdo do Card */
.card .content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0.95;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: clamp(15px, 3vw, 20px);
  text-align: center;
  width: 100%;
  z-index: 1;
}

.card:hover .content {
  opacity: 1;
  transform: translateY(-10px);
}

/* Imagem do Perfil */
.card .content .img {
  position: relative;
  width: clamp(120px, 30vw, 150px);
  height: clamp(120px, 30vw, 150px);
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--img-border);
  box-shadow: 0 0 25px var(--img-shadow), inset 0 0 20px rgba(0, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .content .img {
  border-width: 8px;
  border-color: var(--accent-color);
  box-shadow: 0 0 40px var(--img-shadow), 0 0 60px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.2);
  transform: scale(1.08) rotate(5deg);
}

.card .content .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.05);
}

.card:hover .content .img img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

/* Texto do Card */
.card .content .cardContent h3 {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: clamp(16px, 2.5vw, 19px);
  text-align: center;
  margin: clamp(18px, 3vw, 22px) 0 clamp(8px, 2vw, 10px);
  line-height: 1.2em;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.card:hover .content .cardContent h3 {
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3),
    0 0 60px rgba(0, 255, 255, 0.2);
  letter-spacing: 4px;
}

.card .content .cardContent h3 span {
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 500;
  text-transform: initial;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  display: block;
  margin-top: clamp(5px, 1vw, 6px);
  text-shadow: none;
  transition: color 0.3s ease;
}

/* Ícones Sociais no Card */
.card .sci {
  position: absolute;
  bottom: clamp(20px, 5vh, 50px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
  width: 100%;
  z-index: 2;
}

.card .sci li {
  margin: 0 clamp(5px, 1.5vw, 7px);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-delay: calc(0.1s * var(--i));
  display: inline;
}

.card:hover .sci li {
  transform: translateY(0);
  opacity: 1;
}

.card .sci li a {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--accent-color);
  width: clamp(40px, 8vw, 45px);
  height: clamp(40px, 8vw, 45px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--icon-bg);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.card .sci li a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--icon-hover-bg);
  transition: all 0.5s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.card .sci li a:hover::before {
  width: 100%;
  height: 100%;
}

.card .sci li a:hover {
  color: var(--icon-hover-text);
  border-color: var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 0 50px rgba(0, 255, 255, 0.3);
  transform: translateY(-5px) scale(1.1);
}

/* ========== MEDIA QUERIES ========== */

/* Para dispositivos móveis pequenos */
@media screen and (max-width: 320px) {
  .container-destreza {
    padding: 0.5rem;
  }

  .card-caixa {
    padding: 1rem;
  }

  .titulo-caixa {
    font-size: 1.1rem;
  }

  .nome-competencia,
  .percentual-competencia {
    font-size: 0.8rem;
  }
}

/* Para tablets e telas médias */
@media screen and (min-width: 768px) {
  .container-destreza {
    padding: 2rem;
  }

  .card-caixa {
    padding: 2rem;
  }

  .titulo-caixa {
    font-size: 1.5rem;
  }

  .nome-competencia,
  .percentual-competencia {
    font-size: 1rem;
  }

  .modal-entrada {
    padding: 1.5rem;
  }
}

/* Para desktops e telas grandes */
@media screen and (min-width: 1024px) {
  .container-destreza {
    max-width: 600px;
  }

  .card-caixa {
    transition: all 0.3s ease;
  }

  .card-caixa:hover {
    transform: translateY(-5px);
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px,
      rgba(0, 255, 255, 0.1) 0px 0px 20px 0px;
  }

  .botao-atualizar {
    transition: all 0.3s ease;
  }
}

/* Responsividade geral para telas menores que 1020px */
@media screen and (max-width: 1020px) {
  /* CLASSES GERAIS */
  .flex {
    flex-direction: column;
  }

  .topo-do-site .flex {
    flex-direction: column-reverse;
  }

  h2.titulo {
    font-size: 34px;
    line-height: 30px;
  }

  /* TOPO DO SITE */
  section.topo-do-site .flex {
    gap: 40px;
  }

  section.topo-do-site {
    padding: 20px 8%;
  }

  .topo-do-site h1 {
    font-size: 30px;
  }

  .topo-do-site .img-topo-site img {
    width: 100%;
  }

  /* ESPECIALIDADES */
  section.especiliadades {
    padding: 40px 8%;
  }

  /* SOBRE */
  section.sobre {
    padding: 80px 8%;
  }

  .sobre .txt-sobre h2 {
    font-size: 34px;
    line-height: 35px;
    text-align: center;
  }

  .btn-social {
    text-align: center;
  }

  .img-sobre img {
    width: 100%;
  }

  /* PORTFÓLIO */
  section.portfolio {
    padding: 80px 8%;
  }

  .img-port {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  section.portfolio .flex {
    gap: 60px;
  }

  /* RODAPÉ */
  footer .flex {
    flex-direction: column;
    gap: 30px;
  }

  footer .line-footer {
    text-align: center;
  }
}

/* Layout específico para desktop */
@media screen and (min-width: 992px) {
  .hero-section {
    padding: 0;
  }

  .profile-container {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .profile-image {
    order: 2;
    width: 400px;
    height: 400px;
    margin-bottom: 0;
  }

  .hero-content {
    order: 1;
    text-align: left;
  }

  h1 {
    text-align: left;
  }

  .btn-contato {
    text-align: left;
  }
}

/* Responsividade para o container do card */
@media (min-width: 1200px) {
  .container {
    justify-content: center;
    gap: 2.5em;
  }

  .card {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1em;
    gap: 1.5em;
  }

  .card {
    margin: 0.5em;
    height: clamp(360px, 85vh, 380px);
  }

  .card .content {
    padding: 15px;
  }

  .card .sci {
    bottom: 25px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1em 0.5em;
  }

  .card {
    width: 92%;
    margin: 0.5em auto;
    height: 360px;
  }

  .card .content {
    opacity: 1;
  }

  .card .sci {
    bottom: 20px;
  }

  .card .sci li {
    transform: translateY(0);
    opacity: 1;
  }

  .card:hover {
    transform: translateY(-5px);
  }
}

/* Otimizações para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
  .card .content {
    opacity: 1;
  }

  .card .sci li {
    transform: translateY(0);
    opacity: 1;
  }

  .card:hover {
    transform: translateY(-5px);
  }

  .card:hover .content {
    transform: translateY(0);
  }

  .card:hover .content .img {
    transform: scale(1.05);
  }
}

/* Melhorias de performance para usuários que preferem movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
