@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
  --Blue-header : #a3dcf8;
  --Blue-banner : #c2e8fb;
  --Black : #111111;
  --color-text: #408dbb;
  --color-bg: rgb(230, 224, 214);
  --color-bg-accent: #eeebe5;
  --size: clamp(8rem, 1rem + 40vmin, 20rem);
  --gap: calc(var(--size) / 15);
  --duration: 40s;
  --scroll-start: 0;
  --scroll-end: calc(-100% - var(--gap));
}
*{
  padding: 0; margin: 0;
  box-sizing: border-box;
}


/* Estilos gerais (Dark Mode padrão) */
body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}
.header{
  position: fixed;
  background-color: #457db944;
  backdrop-filter: blur(10px);
  z-index: 1000;
}
.header a{
  color: white;
}

.card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  margin: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h5, p {
  color: #e0e0e0;
}

.btn-primary {
  background-color: var(--color-text);
  border-color: var(--color-text);
}

.btn-secondary {
  background-color: #424242;
  color: #ffffff;
  border-color: #424242;
}

/* Light Mode */
body.light-mode {
  background-color: #f8f9fa;
  color: #212529;
}

body.light-mode .card {
  background-color: #ffffff;
  border-color: #ddd;
}

body.light-mode h1, 
body.light-mode h2, 
body.light-mode h5, 
body.light-mode p {
  color: #212529;
}

body.light-mode .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

body.light-mode .btn-secondary {
  background-color: #f8f9fa;
  color: #212529;
  border-color: #ddd;
}

/* Botão de Toggle */
#toggle-dark-mode {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  cursor: pointer;
}




.banner h1{
  text-align: center;
  padding-top: 20px;
  font-weight: 800;
  font-size: 3.8rem;
  color: white;
}

.banner {
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
}

.bannerSection{
  background-image: url(../img/bg1.jpg);
  background-size:cover;
  background-position:center;
  /* background-color: #222222; */
  height:100vh;
}

.typewriter-container {
  position: absolute; /* Para poder usar o posicionamento top */
  top: 10%; /* Alinha a div a 10% do topo da página */
  left: 50%; /* Para centralizar horizontalmente */
  transform: translateX(-50%); /* Ajusta o alinhamento para garantir que fique centralizado */
  width: 100%; /* A largura pode ser 100% ou ajustada conforme necessário */
  height: auto; /* Ajusta automaticamente a altura conforme o conteúdo */
  overflow: hidden; /* Impede que o texto transborde para fora da área definida */
  display: flex;
  align-items: center; /* Alinha o texto verticalmente no centro da div */
  justify-content: center; /* Centraliza o texto horizontalmente */
}

#typewriter {
  font-size: 3rem; /* Define a fonte como 3rem */
  display: inline-block;
  white-space: nowrap; /* Garante que o texto não quebre em várias linhas */
  border-right: 0.1em solid rgb(255, 255, 255); /* Cria o efeito de cursor */
  padding-right: 0.1em; /* Espaço à direita do texto para o cursor aparecer com espaço */
  animation: blink-caret 0.75s step-end infinite; /* Cria o efeito de piscar do cursor */
}

@keyframes blink-caret {
  50% {
    border-color: transparent; /* Faz o cursor desaparecer no meio da animação */
  }
}


.skills{
  background-image: url(../img/bg1.jpg);
  background-position: center;
  background-size: cover;
}

.cardSkills:hover  {
  background: rgba(59, 58, 58, 0.5);
  color: rgb(228, 226, 226);
}
/*--------------------------------------------------------------
# Cards js
--------------------------------------------------------------*/
.page2{
  display: flex;
  width: 100%;
  height: 100vh;
  margin-top: 60px;
  flex-direction: column;
}

.card {
  overflow: hidden; /* Garante que o zoom da imagem não saia do card */
  position: relative; /* Para efeitos adicionais, se necessário */
}

.card-img-top {
  width: 100%;
  height: 300px; /* Altura inicial fixa */
  object-fit: cover; /* Corta a imagem para caber no espaço definido */
  transition: transform 0.5s ease-in-out; /* Suaviza o zoom */
}

.card-img-top:hover {
  transform: scale(1.05); /* Zoom suave */
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: papayawhip;
    --color-bg: navy;
    --color-bg-accent: #2626a0;
  }
} 

.marquee {
  display: flex;
  overflow: hidden;
  gap: var(--gap);
  
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll-x var(--duration) linear infinite;
  
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group {
    animation-play-state: paused;
  }
}

.marquee--vertical {
  --mask-direction: to bottom;
}

.marquee--vertical,
.marquee--vertical .marquee__group {
  flex-direction: column;
}

.marquee--vertical .marquee__group {
  animation-name: scroll-y;
}

.marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: -3s;
}

@keyframes scroll-x {
  from {
    transform: translateX(var(--scroll-start));
  }
  to {
    transform: translateX(var(--scroll-end));
  }
}

@keyframes scroll-y {
  from {
    transform: translateY(var(--scroll-start));
  }
  to {
    transform: translateY(var(--scroll-end));
  }
}

/* Element styles */
.marquee svg {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  align-self: center;
  width: var(--size);
  fill: var(--color-text);
  box-shadow: 0 -35px 35px rgba(255, 255, 255, 0.05), 
              inset 0 -15px 15px rgba(255, 255, 255, 0.05),
              0 35px 35px rgba(0, 0, 0, 0.5), 
              inset 0 15px 15px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16/9;
  padding: calc(var(--size) / 10);
  border-radius: 0.5rem;
  
}
.marquee svg:hover{
  background: var(--white--);
  cursor: pointer;
}

.marquee--vertical svg {
  aspect-ratio: 1;
  width: calc(var(--size) / 1.5);
  padding: calc(var(--size) / 6);
}

/* Parent wrapper */
.wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: auto;
  max-width: 100vw;
  margin-top: 245px;
}

.wrapper--vertical {
  flex-direction: row;
  height: 100vh;
}



@keyframes fade {
  to {
    opacity: 0;
  }
}



/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.section-title h2{
  color: white;
  text-align: center;
}
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #185fa7;
  transition: background-color 0.3s, color 0.3s;
}
  
.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #ffffff;
  position: relative;
}
  
.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  margin-bottom: 10px;
}
  
.resume .resume-item h5 {
  font-size: 16px;
  background: #6f7174;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}
  
.resume .resume-item ul {
  padding-left: 20px;
}
  
.resume .resume-item ul li {
  padding-bottom: 10px;
  
} 
.resume .resume-item:last-child {
  padding-bottom: 0;
}
  
.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #1f5297;
}

@media only screen and (min-width: 375px){
  .jobs2{
    background: #464b526c;
    width: 470px;
    margin: 10px;
    overflow-x: hidden;
  }
}

.btn{
  background-color: #078096;
  border: none;
}

.btn:hover{
  background-color: #035e6e;
}



/*--------------------------------------------------------------
# Menu Toggle Click
--------------------------------------------------------------*/
.page4{
  display: flex;
  width: 100%;

}

.container-contact{
  display: flex;
  flex-direction: column;
  width: 600px;
  height: 300px;
  
}

.container-contact .contatos{
  display:flex;
  position: relative;
  margin: 0 auto;
  padding-top: 8rem;
  width: 30%;
  justify-content: center;
  align-items: center;
} 

.contatos .menuToggle{
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -15px 15px rgba(255, 255, 255, 0.05), 
              inset 0 -15px 15px rgba(255, 255, 255, 0.05),
              0 15px 15px rgba(0, 0, 0, 0.5), 
              inset 0 15px 15px rgba(0, 0, 0, 0.3);
  background: rgb(0, 0, 0);
}

.menuToggle::before{
  content: '+';
  position: absolute;
  font-weight: 300;
  font-size: 2rem;
  transition: 1s;
  color: #408dbb;
}

.menuToggle.active::before{
  transform: rotate(225deg);
}

.menu{
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  z-index: -1;
  transition: transform 0.5s, width 0.5s, height 0.5s;
  transition-delay: 1s, 0.5s, 0.5s;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
  box-shadow: 0 -15px 15px rgba(255, 255, 255, 0.05), 
              inset 0 -15px 15px rgba(255, 255, 255, 0.05),
              0 15px 15px rgba(0, 0, 0, 0.5), 
              inset 0 15px 15px rgba(0, 0, 0, 0.3);
}

.menuToggle.active ~ .menu{
  width: 30rem;
  height: 7rem;
  z-index: 1;
  transform: translateY(-100px);
  transition-delay: 0s, 0.5s, 0.5s;
}

.menuToggle.active ~ .menu::before{
  bottom: -6px;
  transition-delay:0.5s;
}

.menu ul{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  gap: 40px;

}

.menu ul li{
  list-style: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-30px);
  transition: 0.25s;
  transition-delay: calc(0s + var(--i));
}

.menuToggle.active ~ .menu ul li{
  opacity: 1;
  visibility:visible;
  transform: translateY(0px);
  transition-delay: calc(0.75s + var(--i));
}

.menu ul li a{
  display: block;
  font-size: 2rem;
  text-decoration: none;
  padding-top: 4.5rem;
}

/* blog */



.card-img-top {
  height: 200px; /* Define uma altura fixa para as imagens */
  object-fit: cover; /* Faz as imagens se ajustarem ao tamanho da área sem distorção */
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

.card-text {
  font-size: 1rem;
  
}

.card .btn-primary {
  margin-top: auto; /* Faz o botão ficar no final da caixa */
}


/* cards example */
:root{
  --background-dark: #2d3548;
  --text-light: rgba(255,255,255,0.6);
  --text-lighter: rgba(255,255,255,0.9);
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  --width-container: 1200px;
}


.hero-section{
  align-items: center;
  /* background-image: linear-gradient(15deg, #0f4667 0%, #2a6973 150%); */
  display: flex;
  flex-direction: column;

  min-height: 100%;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-l);
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: var(--spacing-l);
  grid-row-gap: var(--spacing-l);
  max-width: var(--width-container);
  width: 100%;
}

@media(min-width: 540px){
  .card-grid{
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media(min-width: 960px){
  .card-grid{
    grid-template-columns: repeat(4, 1fr); 
  }
}

.card_example{
  list-style: none;
  position: relative;
}

.card_example:before{
  content: '';
  display: block;
  padding-bottom: 150%;
  width: 100%;
}

.card__background{
  background-size: cover;
  background-position: center;
  border-radius: var(--spacing-l);
  bottom: 0;
  filter: brightness(0.75) saturate(1.2) contrast(0.85);
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: center;
  trsnsform: scale(1) translateZ(0);
  transition: 
    filter 200ms linear,
    transform 200ms linear;
}

.card_example:hover .card__background{
  transform: scale(1.05) translateZ(0);
}

.card-grid:hover > .card_example:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card__content{
  left: 0;
  padding: var(--spacing-l);
  position: absolute;
  top: 0;
}

.card__category{
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-s);
  text-transform: lowercase;
}

.card__heading{
  color: var(--text-lighter);
  font-size: 1.9rem;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
  line-height: 1.4;
  word-spacing: 100vw;
}