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

/* ===================== */
/* Hero Section */
/* ===================== */
.hero-wrap {
  background: 
    radial-gradient(1200px 600px at 10% 10%, rgba(255, 255, 255, 0.61), transparent 70%),
    radial-gradient(900px 500px at 90% 80%,  rgba(224, 224, 224, 0.548), transparent 70%),
    linear-gradient(180deg, #5c5b53 0%, #42423fa6 50%) !important;
    position: relative;
    z-index: 0;
}

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

/* ===================== */
/* Botões Primários */
/* ===================== */
.btn {
  border-radius: .8rem;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
  background: var(--c-blue);
  color: var(--c-white);
}

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

/* ===================== */
/* Timeline (Experiência Profissional) */
/* ===================== */
@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;
  }
}

/* ===================== */
/* Carrossel de Certificados - Ocultar barra de rolagem */
/* ===================== */
#cert-track {
  scrollbar-width: none;
}

#cert-track::-webkit-scrollbar {
  display: none;
}

/* ===================== */
/* Slideshow (Fotografia) */
/* ===================== */
.slideshow-container {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* proporção 3:2 */
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 12px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ===================== */
/* Experiência Profissional (CV) */
/* ===================== */
#cv {
    border-radius: 1rem;

  background-color: rgba(15, 22, 32, 0.356) !important; /* leve transparência */
  backdrop-filter: blur(10px) !important;
    position: relative;
    z-index: 0;
}

#cv p {
  color: var(--c-white2);
}

#cv h3 {
  color: var(--c-white);
}

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