/* ===================== */
/* Paleta base personalizada (branco, cinza, preto, vermelho, azul, amarelo) */
/* ===================== */
:root {
  --c-white: #ffffff;
  --c-white2: #cfcfcf;
  --c-black: #000000;
  --c-gray: #2b2f36;
  --c-gray-2: #3a3f46;
  --c-red: #ff3b3b;
  --c-blue: #1a73ff;
  --c-yellow: #ffd43b;
}

/* ===================== */
/* Estilos Globais */
/* ===================== */
body {
  text-align: center;
  color: var(--c-white);
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

/* ===================== */
/* Background Animado do Site */
/* ===================== */
body {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.534), transparent 50%),
    radial-gradient(circle at 85% 80%, #f7f7f7a9, transparent 50%),
    linear-gradient(180deg, #464749 0%, #141b2a 100%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: var(--c-white);
  min-height: 100vh;
  animation: moveBackground 30s ease infinite;
}

/* Animação suave do background */
@keyframes moveBackground {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

/* ===================== */
/* Header e Menus */
/* ===================== */
header {
  background-color: rgba(15, 22, 32, 0.356) !important;
  /* leve transparência */
  backdrop-filter: blur(10px) !important;
  color: var(--c-white);
}

/* Remove background apenas do link do logo */
header>a:first-child {
  background: transparent;
}


header a {
  background: var(--c-gray-2);
  color: var(--c-white);
}

header a:hover {
  color: var(--c-white);
}

#mobile-menu {
  background: var(--c-gray-2);
  color: var(--c-white);
}

#mobile-menu a {
  color: var(--c-white);
}

/* Dropdown Desktop */
.dropdown {
  position: relative;
  display: flex;
  /* alinhar com os outros links */
  align-items: center;
  /* centraliza verticalmente */
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--c-gray-2);
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.dropdown-content a {
  color: var(--c-white);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: var(--c-gray);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* =====================
   Menu Mobile Fullscreen
   ===================== */
#mobile-menu {
  background-color: rgba(15, 22, 32, 0.349);
  /* mesmo fundo */
  backdrop-filter: blur(10px);
  /* mesmo blur */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 40;
}

/* Menu ativo */
#mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

/* =====================
   Todos os links Mobile e títulos dropdown
   ===================== */
#mobile-menu a,
.mobile-dropdown-btn {
  background-color: rgba(15, 22, 32, 0.349);
  backdrop-filter: blur(10px);
  color: var(--c-white);
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  display: block;
  /* garante que ocupam toda a largura */
  text-decoration: none;
}

/* Hover */
#mobile-menu a:hover,
.mobile-dropdown-btn:hover {
  text-decoration: underline;
  background-color: rgba(15, 22, 32, 0.45);
}

/* =====================
   Dropdown Mobile
   ===================== */
.mobile-dropdown-content {
  display: none;
  /* inicia fechado */
  flex-direction: column;
  margin-left: 0.5rem;
  /* indentação dos sublinks */
}

/* Links dentro do dropdown: mesmo estilo dos outros */
.mobile-dropdown-content a {
  background-color: rgba(15, 22, 32, 0.349);
  /* mesmo fundo */
  backdrop-filter: blur(10px);
  /* mesmo blur */
  color: var(--c-white);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

/* Hover dos links do dropdown */
.mobile-dropdown-content a:hover {
  text-decoration: underline;
  background-color: rgba(15, 22, 32, 0);
}

/* =====================
   Mostrar dropdown quando ativo
   ===================== */
.mobile-dropdown-btn.active+.mobile-dropdown-content {
  display: flex;
}


/* Card (usado para sections no CV) */
.card {
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  background-color: rgba(15, 22, 32, 0.356) !important;
  /* leve transparência */
  backdrop-filter: blur(10px) !important;
  color: var(--c-white);
}

/* Estilos adaptados do CV original para o novo tema */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  width: 100%;
  text-align: left;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ccc;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

p,
li {
  color: #eee;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.role {
  font-weight: bold;
  color: #fff;
}

.meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}

ul li::marker {
  color: #fff;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  color: #bbb;
  text-decoration: underline;
}

/* Timeline style for Dev Experience from home page */
@media (min-width: 768px) {
  .timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--c-red), var(--c-blue));
    border-radius: 999px;
  }
}

/* Styles for Links section from original CV */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin-top: 1rem;
  align-items: flex-start;
}

a.button {
  background-color: rgba(15, 22, 32, 0.356) !important;
  /* leve transparência */
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(10px) !important;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

a.button:hover {
  background-color: #333;
  color: #eee;
}

/* ===================== */
/* Cards (Projetos, Fotografia, Certificados) */
/* ===================== */
.card {
  background-color: rgba(15, 22, 32, 0.356) !important;
  /* leve transparência */
  backdrop-filter: blur(10px) !important;
  color: var(--c-white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  border-radius: 1rem;
}

.card img {
  filter: brightness(0.8);
}

.card h3 {
  color: var(--c-white);
}

/* Alteração específica: descrição dos certificados */
#certificados .card p {
  color: var(--c-white);
}

/* ===================== */
/* Certificados com bordas arredondadas */
/* ===================== */
#certificados .card {
  border-radius: 1rem;
  /* bordas arredondadas mais suaves */
  overflow: hidden;
  /* garante que imagens respeitem as bordas */
}

#cert-track {
  border-radius: 1rem;
  overflow: hidden;
}

/* ===================== */
/* Footer */
/* ===================== */
footer {
  color: var(--c-white);
  background-color: rgba(15, 22, 32, 0.349);
  /* mesmo fundo */
  backdrop-filter: blur(5px);
  /* mesmo blur */
}