/* ===================== */
/* 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(155, 155, 155, 0.61), transparent 70%),
    radial-gradient(900px 500px at 90% 80%,  rgba(167, 167, 167, 0.548), transparent 70%),
    linear-gradient(180deg, #5c5b53 0%, #42423fa6 50%) !important;
    position: relative;
    z-index: 0;
}

/* ===================== */
/* Tech Chips */
/* ===================== */
.tech-chip {
  border-radius: 999px;
  font-weight: 600;
  padding: .6rem 1rem;
  background: var(--c-gray);
  color: var(--c-white);
}

/* ===================== */
/* 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-black);
  color: var(--c-white);
}

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

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


/* ===================== */
/* Contact Section Styles */
/* ===================== */
.contact-section {
  max-width: 4xl;
  margin: 4rem auto;
  padding: 3rem 1.5rem;
  background-color: rgba(15, 22, 32, 0.356);
  backdrop-filter: blur(15px);
  border-radius: 2rem;
  text-align: center;
}

/* Título e descrição */
.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-section p {
  color: #ccc;
  margin-bottom: 2rem;
}

/* ===================== */
/* Social Icons Grid */
/* ===================== */
.contact-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1.5rem;
}

.contact-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(95, 95, 95, 0);
  border-radius: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-icons a:hover {
  transform: translateY(-1px);
}

/* Ícones menores */
.contact-icons img {
  width: 36px;
  height: 36px;
}



/* ===================== */
/* Form Styles */
/* ===================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 1rem;
  background-color: rgba(15, 22, 32, 0.6);
  color: white;
  border: none;
  outline: none;
  resize: none;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px var(--c-red);
}

/* Botão enviar */
.contact-form button {
  align-self: center;
  padding: 0.75rem 2rem;
  background-color: rgba(15, 22, 32, 0.356) !important; /* leve transparência */
  backdrop-filter: blur(10px) !important;
  color: white;
  font-weight: 600;
  border-radius: 0.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form button:active {
  transform: translateY(1px);
}

.contact-form button:hover {
  background-color: rgba(15, 22, 32, 0.356) !important; /* leve transparência */
  backdrop-filter: blur(30px) !important;
}

/* ===================== */
/* Responsividade */
@media (max-width: 640px) {
  .contact-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}
