/* ==========================================================================
      Imports
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");



/* ==========================================================================
   1. TIPOGRAFIA & CONFIGURAÇÕES GERAIS
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Signika", sans-serif;
  font-weight: 300;
  background-color: #0d1117;
  color: #ffffff;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.signika_letra {
  font-family: "Signika", sans-serif;
}

main {
  flex: 1;
}

/*Navbar */

.menu-hamburguer-custom {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-hamburguer-custom span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
  transform-origin: left center;

}

/* --- ANIMAÇÕES AO CLICAR (Menu Aberto) --- */

/* Linha Superior: Roda 45 graus para baixo */
.navbar-toggler[aria-expanded="true"] .menu-hamburguer-custom span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
}

/* Linha do Meio: Desaparece suavemente */
.navbar-toggler[aria-expanded="true"] .menu-hamburguer-custom span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

/* Linha Inferior: Roda 45 graus para cima */
.navbar-toggler[aria-expanded="true"] .menu-hamburguer-custom span:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 2px);
}

/* Remove qualquer contorno ou sombra padrão do Bootstrap */
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   ! intro
   ========================================================================== */

/* Títulos Hero */
.display-4 {
  letter-spacing: -1px;
}

.profile_me {
  width: 100%;
  max-width: 400px;
  /* Ajusta este valor ao teu gosto */
  height: auto;
  display: block;
  margin: 0 auto;
  /* Isto garante que a imagem fica centrada */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 15px;
}

/* Efeito na foto de perfil */
.profile-blob {
  width: fit-content;
  padding: 10px;
  background: linear-gradient(45deg, #093c5d, #58a4b0);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;

  /* Forma orgânica moderna */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: 0.5s ease;
}

.profile-blob:hover {
  border-radius: 50%;
  transform: rotate(2deg);
}

/* Títulos Globais de Secção */
.separators {
  font-weight: 700;
  color: #58a4b0;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 20px;
}

/* ==========================================================================
   ! CONFIGURAÇÃO DO MODO CLARO (LIGHT MODE) 
   ========================================================================== */
[data-bs-theme="light"] {
  background-color: #f4f6f9 !important;
}

[data-bs-theme="light"] body {
  background-color: #f4f6f9 !important;
  color: #212529 !important;
}

[data-bs-theme="light"] .menu-hamburguer-custom span,
.navbar-light .menu-hamburguer-custom span,
.light-mode .menu-hamburguer-custom span {
  background-color: #212529 !important;
}

[data-bs-theme="light"] .separators {
  color: #093C5D !important;
}

[data-bs-theme="light"] .cards_bg,
[data-bs-theme="light"] .card-educacao,
[data-bs-theme="light"] #habilidades .p-3 {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
}

[data-bs-theme="light"] .cards_bg h5,
[data-bs-theme="light"] .cards_bg h6,
[data-bs-theme="light"] .cards_bg .card-title {
  color: #121212 !important;
}

[data-bs-theme="light"] .cards_bg p,
[data-bs-theme="light"] .cards_bg .card-text,
[data-bs-theme="light"] .cards_bg p.small {
  color: #495057 !important;
  opacity: 0.9 !important;
}

[data-bs-theme="light"] .btn-social {
  background-color: #eaeaea !important;
  border-color: #cccccc !important;
  color: #333333 !important;
}

[data-bs-theme="light"] .btn-social:hover {
  color: #ffffff !important;
}

/* CORREÇÃO NA NAVBAR: Fundo claro com links escuros para legibilidade */
[data-bs-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .navbar-brand,
[data-bs-theme="light"] .nav-link {
  color: #212529 !important;
}

/* CORREÇÃO NO FOOTER: Inverte as cores do Rodapé no Modo Claro */
[data-bs-theme="light"] .Footer_color {
  background-color: #e9ecef !important;
  border-top: 1px solid #dee2e6;
  color: #212529 !important;
}

[data-bs-theme="light"] .Footer_color .opacity-75 {
  color: #495057 !important;
  opacity: 1 !important;
}

[data-bs-theme="light"] .hero-bg {
  background: radial-gradient(circle at 10% 20%, rgba(88, 164, 176, 0.08) 0%, #f4f6f9 90%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .hero-desc {
  color: #2b303a !important;
}

[data-bs-theme="light"] .btn-outline-info {
  color: #093c5d !important;
  border-color: #58a4b0 !important;
}

[data-bs-theme="light"] .btn-outline-info:hover {
  color: #ffffff !important;
  background-color: #58a4b0 !important;
}

[data-bs-theme="light"] .btn_color {
  background-color: #093c5d !important;
  color: #ffffff !important;
  border: 2px solid #093c5d !important;
}

[data-bs-theme="light"] .btn_color:hover {
  background-color: #58a4b0 !important;
  border-color: #58a4b0 !important;
}


/* ==========================================================================
   | COMPONENTE DE CARDS (PROJETOS, EDUCAÇÃO, HABILIDADES)
   ========================================================================== */
.cards_bg,
.card-educacao,
#habilidades .p-3 {
  background-color: #093c5d !important;
  /* Azul escuro padrão */
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 15px !important;
  max-height: 450px;
  transition: all 0.3s ease-in-out;
}

/* Efeito Hover unificado para elevação dos cartões */
.cards_bg:hover,
.card-educacao:hover,
#habilidades .p-3:hover {
  transform: translateY(-10px);
  border-color: #58a4b0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Alinhamento de imagens/logos dentro de cartões */
.card-img-top {
  padding: 25px;
  max-height: 120px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}

.card-educacao {
  max-width: 500px;
}

.card-educacao img {
  max-height: 80px;
  object-fit: contain;
}

.card span.align-middle {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Força os títulos internos a manterem a mesma altura para alinhar a grelha */
.card-title {
  min-height: 55px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  color: #58a4b0;
  font-weight: 600;
}

/* Limitação inteligente de texto a 5 linhas com reticências (...) */
.card-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

#habilidades i {
  color: #58a4b0 !important;
  margin-bottom: 15px;
}


/* ==========================================================================
   | BOTÕES E ELEMENTOS INTERATIVOS
   ========================================================================== */
.btn_color {
  background-color: #0d4a75;
  color: white !important;
  border: 2px solid white !important;
  padding: 10px 20px;
  transition: 0.3s;
}

.btn_color:hover {
  background-color: #58a4b0;
  color: white !important;
}

/* Botões de Redes Sociais Premium (64px Círculos Perfeitos) */
.btn-social {
  background-color: #1b232d !important;
  border: 1px solid #343a40 !important;
  border-radius: 50% !important;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0 !important;
  transition: all 0.2s ease-in-out;
}

.btn-social:hover {
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.btn-behance:hover {
  background-color: #0057ff !important;
  border-color: #0057ff !important;
}

.btn-linkedin:hover {
  background-color: #0077b5 !important;
  border-color: #0077b5 !important;
}

.btn-github:hover {
  background-color: #333 !important;
  border-color: #555 !important;
}

/* Banners das páginas internas de detalhes */

.banner-container {
  width: 100%;
  /* apenas para telemóveis*/
  height: 140px;
  overflow: hidden;
  position: relative;
  transition: height 0.3s ease;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

/* apenas para computadores e tablets*/
@media (min-width: 768px) {
  .banner-container {
    height: 250px;
  }
}

/* Previews de Imagens com Efeito Hover Ampliado */
.preview-image {
  max-height: 500px;
  object-fit: contain;
  background: #000;
}

.preview-hover {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.preview-hover:hover {
  transform: scale(1.02);
  border-color: #58a4b0 !important;
  cursor: pointer;
}

/* Componentes Auxiliares */
.badge {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   | ANIMAÇÕES DE ENTRADA (FADE IN UP)
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animar-entrada {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Efeito Cascata nos cartões de projetos/habilidades */
.delay-1 {
  animation-delay: 0.2s;
  animation-fill-mode: both !important;
}

.delay-2 {
  animation-delay: 0.4s;
  animation-fill-mode: both !important;
}

.delay-3 {
  animation-delay: 0.6s;
  animation-fill-mode: both !important;
}

.delay-4 {
  animation-delay: 0.8s;
  animation-fill-mode: both !important;
}

.custom-dark-input {
  background-color: rgba(0, 0, 0, 0.2) !important;
  /* Fundo semi-transparente escuro */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  /* Borda suave em vez do cinzento sólido */
  color: #ffffff !important;
  border-radius: 8px !important;
  /* Suaviza os cantos dos inputs */
  padding: 12px 16px;
  transition: all 0.3s ease-in-out;
}

/* Efeito de brilho estético ao clicar no input (Focus) */
.custom-dark-input:focus {
  background-color: rgba(0, 0, 0, 0.35) !important;
  border-color: #58a4b0 !important;
  /* Cor de destaque azul/teal do teu tema */
  box-shadow: 0 0 0 0.25rem rgba(88, 164, 176, 0.25) !important;
}

/* Garante consistência visual no texto digitado */
.custom-dark-input:font-control {
  color: #ffffff;
}0