@charset "UTF-8";

* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
  /* Tema padrão (Dark Theme) */
  --bg-body: #0d0d0d;
  --bg-main: #060606;
  --bg-header-footer: #0A0F1F;
  --bg-bloco: #0e1629;
  --bg-badge: #222222;
  --color-badge: #ffa500;
  --bg-input-contact: #1b1b1b;
  --bg-newsl: #cccccc;
  --status-sucess: #00cc66;
  --status-error: #ff5555;
  --primary-blue: #2979FF;
  --text-light: #f0f6ff;
  --blue-hover: #1c54b2;
  --primary-blue50: rgba(41, 121, 255, 0.5);
  --gray-light: #90a4bf;
}

/* Tema claro (Light Theme) */
body.light-theme {
  --bg-body: #dcdcdc;                 /* Cinza suave para fundo geral */
  --bg-main: #e3e3e3;                 /* Fundo do <main> um pouco mais claro */
  --bg-header-footer: #cfcfcf;        /* Header e footer com contraste leve */
  --bg-bloco: #bfbfbf;                /* Blocos com cinza médio */
  --bg-badge: #e0d4b7;                /* Bege acinzentado */
  --color-badge: #a8741a;             /* Marrom dourado suave */
  --bg-input-contact: #d0d0d0;        /* Inputs em cinza claro */
  --bg-newsl: #e6e6e6;                /* Fundo neutro para newsletter */
  --status-sucess: #218838;           /* Verde levemente escurecido */
  --status-error: #b02a37;            /* Vermelho mais fechado */
  --primary-blue: #2f6fd1;            /* Azul mais escuro e suave */
  --blue-hover: #1c4e9b;              /* Hover com azul profundo */
  --primary-blue50: rgba(47, 111, 209, 0.1);  /* Azul suave transparente */
  --text-light: #222;                 /* Preto desbotado */
  --gray-light: #4f5b6b;              /* Cinza mais escuro para textos secundários */
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
    
      /* ==== LOADER ==== */
    #loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: var(--bg-main);
      color: var(--primary-blue);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      transition: opacity 0.5s ease;
    }

    #loader.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .svg-loader {
      width: 80px;
      height: auto;
    }

   html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-light);
  padding-top: 90px;
}

/*Limita a largura dos elementos na tela*/
main {
  max-width: 1100px;
  background: var(--bg-main);
}

/* ==== HEADER FIXO ==== */
.card-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: var(--bg-header-footer);
  box-shadow: 0 2px 4px #0000004d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  width: 180px;
  cursor: pointer;
  position: relative;
}

.menu-button {
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.line {
  position: absolute;
  height: 3px;
  border-radius: 2px;
  transform-origin: center;
  transition: all 0.4s ease;
  opacity: 0;
}

.line1 {
  top: 10px;
  width: 50%;
  right: 0;
  background: var(--primary-blue);
  animation: growLine1 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

.line2 {
  top: 18px;
  width: 0%;
  left: 0;
  background: var(--text-light);
  animation: growLine2 0.6s ease-out forwards;
  animation-delay: 0.6s;
}

.line3 {
  top: 26px;
  width: 50%;
  left: 0;
  background: var(--primary-blue);
  animation: growLine3 0.6s ease-out forwards;
  animation-delay: 0.8s;
}

/* Keyframes */
@keyframes growLine1 {
  to {
    width: 50%;
    opacity: 1;
  }
}

@keyframes growLine2 {
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes growLine3 {
  to {
    width: 50%;
    opacity: 1;
  }
}

@keyframes shrinkLine2 {
  to {
    width: 0%;
    opacity: 0;
  }
}

/* Animação do botão em X */
.menu-button.active .line1 {
  transform: rotate(45deg);
  top: 18px;
  left: 0;
  right: auto;
  width: 100%;
}

.menu-button.active .line3 {
  transform: rotate(-45deg);
  top: 18px;
  left: 0;
  right: auto;
  width: 100%;
}

/* Alternância da linha do meio */
.line2.hide {
  animation: shrinkLine2 0.4s ease-out forwards !important;
}

.line2.show {
  animation: growLine2 0.4s ease-out forwards !important;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background: var(--bg-header-footer);
  transform: translateX(100%);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 30px;
  z-index: 99;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.5rem;
  margin: 20px 0;
  transition: color 0.3s;
}

.sidebar a i {
  margin-right: 10px;
}

.sidebar a:hover {
  color: var(--blue-hover);
}

    /* ==== CONTEÚDO DA PÁGINA ==== */
.content {
  padding: 32px;
  margin: 0 auto;
  transition: filter 0.4s ease;
}

.content.blurred,
.foot.blurred {
  filter: blur(5px);
  transition: filter 0.4s ease;
}

/* ==== FOTO PRINCIPAL DO TOPO ==== */
.profile1 {
  display: block;
  margin: auto;
  margin-bottom: 20px;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-blue);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.profile1:hover {
  transform: scale(1.05);
}

/* ==== ÁREA HOME (foto + texto + botões) ==== */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-bottom: 60px;
  scroll-margin-top: 100px;
}

.profile-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-area {
  text-align: center;
}

/* ==== TÍTULO PRINCIPAL ==== */
.home h1 {
  text-align: center;
  color: var(--primary-blue);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* ==== BLOCO DE APRESENTAÇÃO ==== */
.apresent {
  max-width: 700px;
  width: 88%;
  margin: auto;
  text-align: center;
}

.apresent p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 16px 0;
  color: var(--text-light);
}

/* ==== BOTÕES DE AÇÃO ==== */
.links-ap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  margin: 20px auto 0 auto;
}

.btn-ap {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  background: var(--primary-blue);
  color: var(--text-light);
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-ap:hover {
  background: var(--blue-hover);
  transform: scale(1.03);
  box-shadow: 0 6px 20px #00000040;
}

.btn-ap i {
  margin-right: 2px;
}

/* ==== MEDIA QUERIES ==== */
@media (max-width: 700px) {
  .profile1 {
    width: 140px;
    height: 140px;
  }

  .home h1 {
    font-size: 1.8rem;
  }

  .apresent p {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .home {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
  }

  .profile-area {
    align-items: center;
    margin-right: 60px;
  }

  .text-area {
    max-width: 500px;
  }

  .links-ap {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }

  .btn-ap {
    width: auto;
    min-width: 140px;
    margin: 20px 0;
  }
}

/*Ajustes para 360 640*/
@media (max-width: 360px) {
}
.sidebar {
  width: 80%;
}

/* Seção Sobre Mim */


.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  flex-wrap: wrap-reverse;
  padding-bottom: 60px;
}

.about p {
  text-align: left;
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  position: relative;
}

/* Botão de baixar CV */
.link-cv {
  background: var(--primary-blue);
  color: var(--text-light);
  text-decoration: none;
  font-weight: bolder;
  border-radius: 6px;
  padding: 8px 16px; /* Reduzido */
  transition: background 0.3s;
  display: inline-block;
  margin: 20px 0 0 0; /* Apenas margem superior */
}

.link-cv:hover {
  background: var(--blue-hover);
}

.profile2 {
  width: 160px;
  border-radius: 12px;
  border: 2px solid var(--primary-blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px #00000030; /* sombra leve padrão */
}

.profile2:hover {
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 4px 12px #00000040; /* sombra um pouco mais forte no hover */
}

/* Responsivo */
@media (max-width: 700px) {
  .about {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about p {
    font-size: 1rem;
    text-align: center;
  }

  .link-cv {
    margin-left: auto;
    margin-right: auto;
  }

  .profile2 {
    max-width: 180px;
  }
}

/* ==== SEÇÃO DE PROJETOS ==== */
.project {
  color: var(--text-light);
  padding-bottom: 60px;
}

.project .sub-t {
  font-size: 1.6rem;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

h3 {
  margin: 20px 0px;
}

/* Bloco de cada projeto */
.bg-proj {
  background: var(--bg-bloco);
  padding: 16px;
  border-radius: 8px;
  margin: 10px 0;
  box-shadow: 0 0 4px #00000020;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-proj h3 {
  font-size: 1rem;
  color: var(--primary-blue);
}

.bg-proj p {
  font-size: 0.8rem;
  line-height: 1.4;
}

.link-proj {
  display: inline-block;
  margin: 6px 0px;
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-proj:hover {
  color: var(--blue-hover);
}

/* Imagens do slider */
.slider-container {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  margin-top: 6px;
}

.slide img {
  width: 100%;
  height: 90px; /* ↓ bem menor agora */
  object-fit: cover;
  border-radius: 6px;
}

/* Responsivo */
@media (max-width: 600px) {
  .project > p,
  .bg-proj p {
    font-size: 0.85rem;
  }

  .bg-proj h3 {
    font-size: 0.95rem;
  }

  .slide img {
    height: 70px; /* ↓ bem pequeno no mobile */
  }

  .link-proj {
    font-size: 0.7rem;
  }
}

#desc-slide,
.desc {
  margin: 4px 0px;
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fade-text {
  opacity: 0;
}

.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .proj-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 1024px) {
  .proj-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Seção Habilidades */
.hab {
  background: var(--bg-header-footer);
  color: var(--text-light);
  border-radius: 10px;
  padding: 24px 10px;
  margin-bottom: 60px;
}

.hab .w-d {
  font-size: 1rem;
  margin: 20px 0px;
  color: var(--text-light);
}

/*Sesção Serviços*/
.web, .design {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-bloco);
}

.h {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s;
}

.h:hover {
  transform: scale(1.1);
}

.t-s {
  margin: 20px 0px;
}

/* Cabeçalho da seção Serviços */
.servicos {
  padding-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media screen and (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Serviços ativos */
.service-card {
  background: var(--bg-bloco);
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:not(.service-disabled) {
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1rem;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.85rem;
}

/* Serviços inativos */
.service-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto; /* necessário para permitir hover/efeito */
}

.service-disabled:hover {
  transform: translateY(-4px);
}

.badge {
  font-size: 0.65rem;
  background: var(--bg-badge);
  color: var(--color-badge);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

/*Seção Depoimentos*/
.slider-container {
  width: 100%;
  max-width: 420px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
}

.slider {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.about-s.cont {
  background-color: var(--bg-header-footer);
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 0 10px #00000040;
}

.sub-t {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
  scroll-margin-top: 110px;
}

.about-s.cont p {
  color: var(--gray-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.dep {
  padding-bottom: 60px;
}

.dep div {
  background: var(--bg-header-footer);
  border-left: 4px solid var(--primary-blue);
  padding: 20px;
  margin: 20px auto;
  max-width: 700px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 2px 8px #00000030;
}

.dep img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-blue);
  transition: transform 0.3s ease;
}

/* Efeito de inclinação no hover */
.dep img:hover {
  transform: rotate(-3deg) scale(1.05);
}


/* Aumentar tamanho da imagem em telas médias */
@media (min-width: 768px) {
  .dep img {
    width: 90px;
    height: 90px;
  }
}

/* Aumentar ainda mais em telas maiores */
@media (min-width: 1024px) {
  .dep img {
    width: 110px;
    height: 110px;
  }
}

.dep div p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

/*Seção de Contato*/
.s-inp {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.s-inp input[type="text"],
.s-inp input[type="email"],
.s-inp input[type="text"]:focus,
.s-inp input[type="email"]:focus,
.s-inp textarea,
.s-inp textarea:focus {
  background-color: var(--bg-input-contact);
  color: var(--text-light);
  border: 1px solid var(--primary-blue);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
}

.s-inp input[type="email"]:focus, .s-inp input[type="text"]:focus {
  border-color: var(--blue-hover);
  background-color: var(--bg-badge);
}

.s-inp textarea {
  resize: vertical;
  min-height: 120px;
}

.s-inp input:focus,
.s-inp textarea:focus {
  outline: none;
  border-color: var(--blue-hover);
  background-color: var(--bg-badge);
  box-shadow: 0 0 0 2px var(--primary-blue50);
}

.s-inp button {
  background-color: var(--primary-blue);
  color: var(--text-light);
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.s-inp button:hover {
  background-color: var(--blue-hover);
}

/* === Footer Base === */
footer {
  background: var(--bg-header-footer);
  color: var(--text-light);
  padding: 40px 20px 20px;
  font-size: 0.95rem;
  margin-top: 60px;
}

/* Bloco principal do footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.foot > div {
  flex: 1 1 220px;
}

.foot h2 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.foot p {
  margin: 8px 0;
}

.foot a {
  text-decoration: none;
  transition: color 0.3s;
}

.foot a:hover {
  color: var(--blue-hover);
}

/* Links destacados (marca pessoal) */
.highlight-title {
  color: var(--primary-blue);
}

.highlight-title:hover {
  color: var(--blue-hover);
}

/*Links Explore mais*/
.links-ex {
  color: var(--text-light);
  transition: color 0.3s ease;
}

/* Link de telefone */
.contact-link {
  display: inline-block;
  margin-top: 5px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--blue-hover);
}

/*Mapa do Google*/
.map-container {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 8px;
}

/* === Newsletter === */
.newsl input[type="text"],
.newsl input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

.newsl input[type="text"]:focus,
.newsl input[type="email"]:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(41, 121, 255, 0.5); /* azul com 50% opacidade */
}

.newsl input[type="submit"] {
  background: var(--primary-blue);
  color: var(--text-light);
  font-weight: bolder;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.newsl input[type="submit"]:hover {
  background: var(--blue-hover);
}

/* Status da newsletter */
.status-success {
  color: #00cc66;
  font-weight: 500;
}

.status-error {
  color: #ff5555;
  font-weight: 500;
}

/* Redes sociais */
.social div {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social img:hover {
  transform: scale(1.1);
}

/* Direitos autorais */
.copy {
  text-align: center;
  border-top: 1px solid;
  padding: 10px 0;
}

.copy p a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .card-header {
    padding: 0 40px;
    height: 85px;
  }

  .logo {
    width: 200px;
  }

  .menu-button {
    width: 50px;
    height: 50px;
  }

  .line1, .line2, .line3 {
    height: 4px;
  }

    .sidebar {
    width: 40%;
    padding-left: 50px;
  }

  .sidebar a {
    font-size: 1.6rem;
    margin: 10px 0px;
  }

  .links-ap {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }

  .btn-ap {
    width: auto;
    min-width: 140px;
  }

.bg-proj:hover {
    transform: translateY(-6px) rotateX(4deg);
    box-shadow: 0 8px 20px #00000050;
  }
}

@media (min-width: 1024px) {
  body {
    background: var(--bg-body);
}
  
main {
  animation: showHideShadow 8s ease-in-out infinite;
  animation-delay: 2s;
  border-radius: 0 0 12px 12px;
}

/* Animação de sombra que aparece e desaparece suavemente */
@keyframes showHideShadow {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow:
      -6px 0 16px rgba(0, 123, 255, 0.25),
      6px 0 16px rgba(0, 123, 255, 0.25);
  }
}

  section {
  margin: 100px 0px;
  }

  .card-header {
    padding: 0 60px;
    height: 90px;
  }

  .logo {
    width: 220px;
  }

  .menu-button {
    width: 60px;
    height: 60px;
  }

  .line1, .line2, .line3 {
    height: 5px;
  }

    .sidebar {
    width: 30%;
    padding-left: 60px;
  }

  .sidebar a {
    font-size: 1.8rem;
  }

  .home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    gap: 40px;
    padding: 80px 0px;
  }

  .profile1 {
    margin: 0;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
  }

  .text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
  }

  .home h1 {
    font-size: 3rem;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .apresent {
    text-align: center;
    margin: 0;
    width: 100%;
  }

  .apresent p {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .line1 {
    top: 8px;
  }

  .line2 {
    top: 20px;
  }

  .line3 {
    top: 32px;
  }

  /* Ajustar o estado ativo também */
  .menu-button.active .line1,
  .menu-button.active .line3 {
    top: 20px;
  }

    .proj-grid {
    gap: 20px;
  }

  .about {
    padding: 90px 0px;
  }

  .servicos {
    margin: 150px 0px;
  }

  .services-grid {
    padding: 60px 0px;
  }
  
}

/*Títulos e Subtítulos Gerais*/
.title-h {
  color: var(--primary-blue);
  border-top: 2px solid var(--primary-blue);
  scroll-margin-top: 110px;
  padding: 20px 0px;
}

.text-h {
  color: var(--text-light);
  font-size: 1rem;
  padding: 10px 0px;
}

/* Esconde iframe no mobile, mostra o link */
@media (max-width: 767px) {
  .map-container {
    display: none;
  }
}

/* Esconde o link no tablet e desktop */
@media (min-width: 768px) {
  .contact-link.map-link {
    display: none;
  }
}

/* Estilo base para .reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Ativa a animação */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delays personalizados por seção */
#sobre.reveal       { transition-delay: 0.1s; }
#projetos.reveal    { transition-delay: 0.2s; }
#habilidades.reveal { transition-delay: 0.3s; }
#servicos.reveal    { transition-delay: 0.4s; }
#depoimentos.reveal { transition-delay: 0.5s; }
#contato.reveal     { transition-delay: 0.6s; }

/* Delays para conteúdo de serviços e habilidades */
.reveal.active.delay-1 { transition-delay: 0.1s; }
.reveal.active.delay-2 { transition-delay: 0.2s; }
.reveal.active.delay-3 { transition-delay: 0.3s; }
.reveal.active.delay-4 { transition-delay: 0.4s; }
.reveal.active.delay-5 { transition-delay: 0.5s; }
.reveal.active.delay-6 { transition-delay: 0.6s; }
.reveal.active.delay-7 { transition-delay: 0.7s; }

.profile2:hover {
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 4px 12px #00000040; /* sombra um pouco mais forte no hover */
}

/* Estilo base para mensagens de status */
#status-msg,
#newsletter-status {
  transition: opacity 0.5s ease-in-out;
}

/* Classe para ocultar suavemente */
/* Faz o status sumir suavemente após 5 segundos */
.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/*Alternar Fundo Claro ou Escuro*/
#theme-toggle {
  display: block;
  margin: 0px 16px 0px auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--primary-blue);
  transition: transform 0.6s, color 0.6s ease;
}

#theme-toggle:hover {
  transform: scale(1.2);
  color: var(--blue-hover);
}

/*Transição suave ao mudar tema*/
:root,
.light-theme {
  transition: background-color 1s ease, color 1s ease;
}

body,
main,
header,
footer,
section,
div,
a,
p,
h1, h2, h3, h4, h5, h6 {
  transition: background-color 1s ease, color 1s ease;
}

/*Alterner logo dark ou light*/
.logo-light {
  display: none;
}

body.light-theme .logo-dark {
  display: none;
}

body.light-theme .logo-light {
  display: inline;
}

/* Animação suave ao alternar o ícone do tema */
@keyframes icon-spin-fade {
  0% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(360deg);
    opacity: 1;
  }
}

#theme-toggle i.spin {
  animation: icon-spin-fade 0.6s ease;
}

/* CSS para página blog */

.body-b {
  padding: 0;
}

.main-b {
  display: flex;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  border-radius: 0px;
  margin: auto;
}

.content-blog {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-container {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}

.blog-post {
  background: var(--bg-bloco);
  padding: 24px;
  margin-bottom: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
}

.blog-post:hover {
  transform: scale(1.01);
  box-shadow: 0px 1px 8px 2px #0000005d;
}

.blog-post h2 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.blog-post .meta {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.blog-post p {
  line-height: 1.6;
}

#search-bar {
  max-width: 300px;
  background: var(--bg-bloco);
  color: var(--text-light);
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  box-shadow: 0px 1px 8px 2px #00000040;
  padding: 10px 16px;
  margin: 0px 20px;
}

/* CSS para os posts */

.area-content {
  max-width: 900px;
}

.main-post {
  height: 100%;
}

.title-post {
  color: var(--primary-blue);
  border-bottom: 1px solid var(--primary-blue);
  padding: 20px 0px;
  margin: 40px 0px;
  transition: width 0.6s ease-in-out;
}

.text-post {
  line-height: 1.85rem;
  margin: 40px 0px;
}

.img-posts {
  border-radius: 10px;
  border: 1px solid var(--primary-blue);
  margin-right: 20px;
}

.img-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

