/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== CONTROLE DE IDIOMAS ===== */
[data-lang] {
  display: none;
}

body.lang-pt [data-lang="pt"] {
  display: block;
}

body.lang-en [data-lang="en"] {
  display: block;
}

/* Compensa o menu fixo quando clica nas âncoras */
section {
  scroll-margin-top: 80px;
}

/* Corpo */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(to right, #0a1f44, #004488);
  color: white;
  padding-top: 60px; /* compensa navbar fixa */
}

/* Tipografia geral */
h1, h2, h3 {
  font-weight: 700;
  color: #ffffff;
}

.section h1 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.section h2 {
  font-size: 1.4rem;
  margin: 28px 0 14px;
}

p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #e5eeff;
}

p.justificado {
  text-align: justify;
}

.section p strong {
  font-weight: 600; /* um pouco menos pesado que o padrão */
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(0, 0, 0, 0.9);
  padding: 14px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.navbar-left strong {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

/* sublinhado suave no hover */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #00aaff;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* Botão hambúrguer (escondido no desktop) */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== NAVBAR – TEMA CLARO ===== */
body.light-mode .navbar {
  background: linear-gradient(to right, #f3f6ff, #e4ecff);
  color: #222;
}

body.light-mode .navbar-left strong {
  color: #222;
}

body.light-mode .navbar a {
  color: #222;
}

body.light-mode .navbar a::after {
  background: #004488;
}

body.light-mode .navbar-toggle span {
  background: #111827;
}

/* ===== NAVBAR RESPONSIVO ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 5%;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 5% 14px;
    background: rgba(0, 0, 0, 0.96);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .navbar-links.open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-toggle {
    display: flex;
  }
}

/* fundo do menu aberto no modo claro (mobile) */
@media (max-width: 768px) {
  body.light-mode .navbar-links {
    background: linear-gradient(to bottom, #f3f6ff, #e4ecff);
  }
}


/* Botão de CV (se usar) */
.cv-button {
  background: none;
  border: 2px solid #00aaff;
  color: #00aaff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cv-button:hover {
  background: #00aaff;
  color: white;
}

/* ===== HERO COM FUNDO ANIMADO ===== */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10%;
  text-align: left;

  /* “imagem” gerada por gradiente animado */
  background-image: radial-gradient(circle at 0% 0%, #1d4ed8, #020617 40%, #0369a1);
  background-size: 220% 220%;
  animation: heroGradient 18s ease-in-out infinite alternate;

  position: relative;
  overflow: hidden;
}

/* camada de leve escurecimento pra dar contraste no texto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.85), transparent 55%),
    linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.3));
  pointer-events: none;
}

/* um “blob” suave se mexendo no fundo */
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 60%);
  filter: blur(4px);
  right: -120px;
  bottom: -180px;
  animation: heroBlob 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 600px;
  animation: heroFade 0.8s ease-out 0.15s both;
}

/* animação de entrada do hero */
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* animações do fundo do hero */
@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes heroBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 20px) scale(1.1);
  }
  100% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

.hero h1 {
  font-size: 2.8rem;
  margin: 10px 0;
  text-transform: none;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cdd9ff;
  margin-bottom: 20px;
}

.hero-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.hero-social a {
  color: white;
  font-size: 1.2rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.hero-social a:hover {
  color: #00aaff;
  transform: translateY(-3px) scale(1.05);
}

/* ===== SEÇÕES GENÉRICAS ===== */
.section {
  max-width: 1100px;
  margin: 70px auto;
  padding: 32px 32px 36px;
  background: radial-gradient(circle at top left,
              rgba(255, 255, 255, 0.16),
              transparent)
              rgba(4, 20, 50, 0.92);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Habilidades, projetos simples, prêmios */
.habilidades-container,
.project-container,
.award-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 32px;
}

.card,
.project-card,
.award-card {
  background-color: rgba(255, 255, 255, 0.06);
  padding: 20px 18px;
  border-radius: 14px;
  width: 260px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.project-card:hover,
.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.5);
}

.card h3,
.project-card h3,
.award-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p,
.project-card p,
.award-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Ícones de contato */
.icon-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.icon-container a {
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  text-align: center;
  transition: 0.3s;
}

.icon-container i {
  font-size: 2rem;
  transition: 0.3s;
  margin-bottom: 4px;
}

.icon-container a:hover i {
  color: #00aaff;
}

/* ===== PORTFÓLIO ELEGANTE ===== */
.section-portfolio h1 {
  text-align: left;
}

.portfolio-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.portfolio-card {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 40px;
  padding: 35px;
  display: flex;
  align-items: center;
  gap: 35px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.6);
}

.portfolio-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* ===== CÍRCULOS DOS PROJETOS (IMAGEM / LOTTIE) ===== */
.portfolio-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Círculo base com glow */
.portfolio-image-circle {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #35a2ff, #ff4ecd);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Fundo interno */
.portfolio-image-circle::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #020617, #020617);
}

/* Ícone estático (quando usar <i>...) */
.portfolio-symbol {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  color: #ffffff;
  animation: float 6s ease-in-out infinite;
}

/* Versão com imagem ou Lottie */
.portfolio-image-circle.has-media::after {
  background: radial-gradient(circle at 30% 20%, #111827, #020617);
}

/* Imagem e Lottie ocupam quase todo o círculo */
.portfolio-image-circle.has-media img,
.portfolio-image-circle.has-media lottie-player {
  position: relative;
  z-index: 1;
  width: 120%;
  height: 120%;
}

/* Cores externas por tipo de projeto */
.circle-analytics {
  background: conic-gradient(from 0deg, #4f46e5, #22d3ee, #4f46e5);
}

.circle-terra {
  background: conic-gradient(from 0deg, #22c55e, #06b6d4, #22c55e);
}

.circle-kpi {
  background: conic-gradient(from 0deg, #f97316, #ec4899, #f97316);
}

.circle-ia {
  background: conic-gradient(from 0deg, #a855f7, #22d3ee, #a855f7);
}

.circle-event {
  background: conic-gradient(from 0deg, #facc15, #fb7185, #facc15);
}

/* animações usadas no portfólio */
@keyframes spin-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* leve “zoom” no hover do card inteiro */
.portfolio-card:hover .portfolio-symbol {
  transform: translateY(-4px) scale(1.05);
}

/* Títulos e texto dentro do card de portfólio */
.portfolio-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0.03em;
}

.portfolio-content p {
  margin-bottom: 18px;
  line-height: 1.7;
}

/* Botão do portfólio */
.btn-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: #ff007a;
  color: #fff;
  cursor: pointer;
}

.btn-portfolio i {
  font-size: 0.9rem;
}

.btn-portfolio:hover {
  background: #ff3395;
  color: #fff;
}

/* ===== PACOTES & LIBS ===== */
.badges {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 14px;
}

.badges img {
  height:22px;
}

.install-box {
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding:10px 12px;
  border-radius:8px;
  margin:8px 0 14px;
}

.install-box code {
  user-select: all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
}

.copy-btn {
  background: none;
  border:1px solid #00aaff;
  color:#00aaff;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
}

.copy-btn:hover {
  background:#00aaff;
  color:#001f3f;
}

.links-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:10px;
}

/* ===== GRAFO (CYTOSCAPE) ===== */
#grafosection #cy {
  width: 100%;
  height: 500px;
  display: block;
  background-color: #001f3f;
  border-radius: 10px;
  margin: 0 auto;
  min-height: 500px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 40px;
}

/* ===== BOTÃO DIA/NOITE ===== */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffffee;
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.theme-toggle i {
  font-size: 1.2rem;
}

/* ===== TEMA CLARO ===== */
body.light-mode {
  background: linear-gradient(to right, #f0f3ff, #ffffff);
  color: #222;
}

body.light-mode .navbar {
  background: linear-gradient(to right, #f3f6ff, #e4ecff);
  color: #222;
}

body.light-mode .navbar-left strong {
  color: #222;
}

body.light-mode .navbar a {
  color: #222;
}

body.light-mode .navbar a:hover {
  color: #004488;
}

body.light-mode .section {
  background: #ffffff;
  color: #222;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

body.light-mode p {
  color: #333c54;
}

/* títulos em modo claro */
body.light-mode .section h1,
body.light-mode .section h2,
body.light-mode .section h3,
body.light-mode .portfolio-content h3,
body.light-mode .card h3,
body.light-mode .project-card h3,
body.light-mode .award-card h3 {
  color: #111827;
}

body.light-mode .icon-container a {
  color: #222;
}

body.light-mode .icon-container a:hover i {
  color: #004488;
}

body.light-mode .portfolio-card {
  background: #ffffff;
  color: #222;
}

body.light-mode .theme-toggle {
  background: #111;
  color: #f5f5f5;
}

/* ===== ANIMAÇÃO REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO EM MODO CLARO ===== */
body.light-mode .hero {
  background-image: radial-gradient(circle at 0% 0%, #e5edff, #f9fbff 40%, #d9e5ff);
}

/* tira aquele escurecimento pesado no modo claro */
body.light-mode .hero::before {
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.9), transparent 55%),
    linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.4));
}

body.light-mode .hero::after {
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 60%);
}

/* textos do hero em modo claro */
body.light-mode .hero h1 {
  color: #111827;
}

body.light-mode .hero-subtitle {
  color: #4b5563;
}

body.light-mode .hero-social a {
  color: #111827;
}

body.light-mode .hero-social a:hover {
  color: #004488;
}


/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .hero {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .portfolio-card {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
  }

  .portfolio-card:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .habilidades-container,
  .project-container,
  .award-container {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .project-card,
  .award-card {
    width: 90% !important;
    margin-bottom: 20px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-links {
    margin-top: 8px;
  }

  #grafosection #cy {
    height: 350px;
  }
}
