:root {
  --cor-primaria: rgba(128, 0, 128, 0.5);
  --cor-branca: #fff;
  --cor-texto-escuro: #333;
  --cor-destaque: rgb(44, 2, 48);
  --cor-fundo-claro: #e6e4e4;
  --cor-cinza-bem-claro: #f4f4f4;
  --cor-cinza-medio: #555;

}

html {
    scroll-behavior: smooth;
}

/* Reset básico (AJUDA A EVITAR DIFERENÇAS ENTRE NAVEGADORES) */

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 550px; /*ajusta a altura do hero */
    background-image: url("assets/img/hero.jpg");
    background-color: var(--cor-branca); /* caso a imagem não carregue */
    background-size: cover; /* cobre toda a área */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--cor-branca);

    /* corte diagonal */
   clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cor-primaria);
    z-index: 0;
}

.hero h1,
.hero .botao {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}


/* Estilos do header*/
body {
    font-family: Arial, Helvetica, sans-serif;

    color: var(--cor-primaria);
    text-align: center;
   
}

/* Seção about */
#about {
    background-color: var(--cor-cinza-bem-claro);
    padding: 100px 5%;
    text-align: center;
}



.about::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;

}

.about-header h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: bold;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}


.team-card {
    flex-basis: 300px;
    flex-grow: 1;
    max-width: 350px;
}

.team-card-info h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 5px;
}

.team-card-info .subtitle {
    display: block;
    font-size: 1rem;
    color: #888;
    margin-bottom: 20px;
}

.team-card-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.team-card-photo img {
    width: 100%;
    display: block;
    filter: grayscale(100%); /* Deixa a imagem 100% em preto e branco */
    transition: all 0.4s ease; /* Cria uma animação suave de 0.4 segundos para TUDO que mudar */
    cursor: pointer; /* Opcional: Muda o cursor para uma 'mãozinha' */
}

.team-card-photo img:hover{
  filter: grayscale(0%); /* Remove o filtro, trazendo a cor de volta */
  transform: scale(1.05); /* Aumenta o tamanho da imagem em 5% para dar o 'movimento' */
}

.team-card-info {
    background: #FFFFFF;
    padding: 30px;
    text-align: left;
    margin-top: -30px; /* <--- Puxa o card para cima, sobrepondo a foto */
    position: relative; /* <--- O "palco" para o nosso triângulo */
}

.team-card-info::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #FFFFFF;
}

.team-card.reverse-order {
    display: flex;
    flex-direction: column-reverse;
}

/*posição e a direção do triângulo no card invertido. */
.team-card.reverse-order .team-card-info::before {
    top: auto;
    bottom: -20px;
    border-bottom: none;
    border-top: 20px solid #FFFFFF;
}

.services {
    background: var(--cor-fundo-claro);
    padding: 100px 20px;
    text-align: center;
}

.services::before {
    content: "";
    position: absolute;
    top: -100px; /* altura da diagonal */
    left: 0;
    width: 100%;
    height: 100px;


}

/* ========= ESTILOS DA SEÇÃO DE SERVIÇOS (Layout de Lista) ========= */

.services-container {
  padding: 60px 20px;
  background-color: #ffffff;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: #ddd;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transform: scale(1.02);
}

.service-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 24px; /* Tamanho do ícone */
  color: var(--cor-primaria); /* Cor principal dos ícones */
}

.service-details {
  flex-grow: 1;
}

.service-details h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #111;
}

.service-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #777;
}

.service-meta i {
  margin-right: 5px;
}

.service-tags {
  display: flex;
  gap: 8px;
  margin: 0 20px;
}

/* As classes .tag e .tag-[cor] continuam as mesmas */
.tag {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 15px;
}
.tag-html { background-color: #e3f2fd; color: #0061f3; }
.tag-css { background-color: #ede7f6; color: #5e35b1; }
.tag-js { background-color: #fff8e1; color: #fbc02d; }
.tag-security { background-color: #e8f5e9; color: #43a047; }
/* Adicionei novas cores para as novas tags */
.tag-performance { background-color: #fbe9e7; color: #d84315; }
.tag-design { background-color: #f3e5f5; color: #8e24aa; }
.tag-video { background-color: #e57373; color: #c62828; }


.service-button {
  background-color: #ff5722;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.service-button:hover {
  background-color: #f4511e;
}

#frase {
    font-size: 2rem;
    transition: opacity 0.5s ease-in-out;
}

header {
    text-align: center;
    background: var(--cor-cinza-bem-claro);

}


.botao {
    display: inline-block;
    background: var(--cor-branca);
    color: var(--cor-primaria);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;

}

.botao:hover {
    background: var(--cor-primaria);
    color: var(--cor-branca);
}

.sobre {
    text-align: center;
    padding: 60px 20px;
    background: var(--cor-branca);
}

.sobre h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.tw {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

#typewriter {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cor-texto-escuro);
    border-right: 3px solid;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--cor-primaria);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.logo {
 font-size: 26px;
 font-weight: bold;
 color: var(--cor-branca);
 letter-spacing: 1px;
 text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--cor-branca);
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}


/* efeito underline animado */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--cor-destaque);
    transition: width 0.3s ease;
}

.nav-links li a: hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--cor-destaque);
}

/* === SECTIONS === */
section {
    min-height: 100vh;
    padding: 120px 60px; /* espaço por causa da navbar fixa*/
}


.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--cor-branca);
}


/* ========= ESTILOS DA SEÇÃO DE PORTFÓLIO COM FILTROS ========= */
.portfolio-container {
  padding: 60px 20px;
  text-align: center;
  background: var(--cor-cinza-bem-claro);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

/* Estilo dos Botões de Filtro */
.filters {
  margin-bottom: 40px;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #eee;
}

.filter-btn.active {
  background-color: var(--cor-destaque);
  color: #fff;
  border-color: var(--cor-destaque);
}

/* Grade do Portfólio */
.portfolio-grid {
  display: grid;
  opacity: 0; /* Começa invisível */
  transition: opacity 0.5s ease-in-out; /* Animação de fade-in de 0.5s */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cor-primaria);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* Classe para esconder itens com JS */
.portfolio-item.hide {
  display: none;
}

/* ========= ESTILOS DA SEÇÃO DE CONTATO ========= */
.contact-container {
  padding: 80px 20px;
  background-color: #f3d2ea; /* Fundo cinza claro */
}

.contact-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Duas colunas de tamanho igual */
  gap: 50px;
  align-items: flex-start;
}

/* Lado esquerdo: Informações */
.contact-info {
  text-align: left;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.contact-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #333;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--cor-destaque);
  margin-right: 15px;
}

.social-links a {
  display: inline-block;
  font-size: 2rem;
  color: #333;
  margin-right: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  color: #007bff;
  transform: translateY(-5px);
}

/* Lado direito: Formulário */
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cor-primaria);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--cor-primaria);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--cor-destaque);
}

/* ========= ESTILOS DO RODAPÉ (FOOTER) ========= */
.site-footer {
  background-color: var(--cor-destaque); /* Cor de fundo escura */
  color: var(--cor-branca); /* Cor do texto clara */
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px; /* Espaço entre os elementos */
}

.footer-social a {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--cor-branca);
  margin: 0 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: #fff; /* Cor mais clara no hover */
  transform: translateY(-5px);
}

.footer-copyright p {
  font-size: 0.9rem;
  margin: 0;
}

.footer-back-to-top a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}


/* Ajuste para telas menores (uma coluna) */
@media (max-width: 850px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* ========= ESTILOS DO LIGHTBOX (MODAL) ========= */
.lightbox {
 display: none; 
 position: fixed;
 z-index: 1000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.9);
 justify-content: center;
 align-items: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 5px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #ccc;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--cor-branca);
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        border-radius: 10px;
    }
    .nav-links.active {
        display: flex;
        
    }
    .menu-toggle {
        display: block;
    }
.nav-links.active li a {
      color: #333; /* Muda a cor dos links para escuro quando o menu está aberto */
    }
.nav-links.active li a:hover {
  color: var(--cor-primaria); /* O mesmo azul dos botões, para manter a consistência */
}
}
/* ========= AJUSTES RESPONSIVOS PARA A SEÇÃO DE SERVIÇOS ========= */

@media (max-width: 768px) {
  .service-item {
    /* Muda o layout de linha para coluna */
    flex-direction: column;
    
    /* Centraliza todo o conteúdo do card */
    align-items: center;
    text-align: center;

    /* Adiciona um espaço vertical entre os itens empilhados */
    gap: 25px;
    padding: 30px 20px; /* Ajusta o espaçamento interno para celular */
  }

  .service-details {
    /* Remove a regra que fazia o texto se esticar, para que ele se comporte bem na coluna */
    flex-grow: 0;
  }
  
  .service-meta {
    /* Centraliza os benefícios (Responsive Design, etc.) */
    justify-content: center;
  }

  .service-tags {
    /* Remove margens laterais desnecessárias no celular */
    margin: 0;
  }

  .service-button {
    /* Deixa o botão um pouco maior para facilitar o clique */
    padding: 12px 25px;
  }
}