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

html, body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    width: 100%;
}
/* Tela de Introdução */
.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow: hidden;
}

/* Vídeo cobrindo toda a tela */
.intro-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* Texto centralizado */
.intro-text {
    position: absolute;
    color: black;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    animation: fadeInOut 0.8s ease-in-out infinite;
}

/* Animação do texto */
@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Animação de fade-out do vídeo */
.fade-out {
    animation: fadeOut 1s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* Esconde o conteúdo principal até a introdução sumir */
.main-content {
    display: none;
    padding: 50px;
    text-align: center;
}


/* Cabeçalho */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0); /* Transparente */
    padding: 15px 0;
    z-index: 1000;
}

header nav {
    display: flex;
    gap: 40px;
}

header a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

header a:hover {
    text-decoration: underline;
}


/* 🔹 Esconde o menu hambúrguer em telas grandes */
.menu-toggle {
    display: none;
    background-color: transparent;
    color: rgb(255, 255, 255);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* 🔹 Estilo do menu para telas grandes */
.nav-menu-desktop {
    display: flex;
    gap: 40px;
}

/* 🔹 Esconde o menu hamburguer por padrão */
.nav-menu-mobile {
    display: none;
    flex-direction: column;
    align-items: center;  /* 🔥 Centraliza na horizontal */
    justify-content: center;  /* 🔥 Centraliza na vertical */
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    height: 250px; /* 🔥 Ajusta a altura do menu */
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
}

/* 🔹 Ajusta os links para ficarem bem alinhados */
.nav-menu-mobile a {
    text-align: center;
    font-size: 1.2rem; /* 🔥 Aumenta o tamanho da fonte */
    color: black; 
    font-weight: bold;
    text-decoration: none;
    padding: 15px 0; /* 🔥 Espaçamento entre os links */
    width: 100%; /* 🔥 Faz os links ocuparem toda a largura */
    display: block;
    transition: color 0.3s ease;
}

.nav-menu-mobile a:hover {
    color: #ff6600; /* 🔥 Muda cor ao passar o mouse */
}

/* 🔹 Exibe o menu hambúrguer quando ativado */
.nav-menu-mobile.open {
    display: flex;
}

/* 🔥 Esconde o menu desktop ao rolar para baixo */
@media (min-width: 769px) {
    .nav-menu-desktop.hide-navbar {
        display: none !important;
    }
}

/* 🔥 Exibe apenas o menu hamburguer em telas pequenas */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-menu-desktop {
        display: none;
    }
}


/* Estilo do botão "Voltar ao topo" */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#back-to-top.hide {
    opacity: 0;
    transform: scale(0.8);
}



/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: url('/img/Recurso\ 2bg_portifolio_allanroger.png') center/cover no-repeat; /* Adiciona a imagem de fundo */
    text-align: center;
}

.hero img.cloud {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-46%, -50%);
    z-index: 1;
    max-width: 50%;
    min-width: 450px;
    animation: cloudBaseMovement 15s ease-in-out infinite; /* Base da animação */
}

@keyframes cloudBaseMovement {
    0% {
        transform: translate(-46%, -50%) scale(1);
        opacity: 0.9;
    }
    25% {
        transform: translate(-45.8%, -50.2%) scale(1.01);
        opacity: 0.95;
    }
    50% {
        transform: translate(-45.5%, -49.8%) scale(1.02);
        opacity: 1;
    }
    75% {
        transform: translate(-45.3%, -50.5%) scale(1.01);
        opacity: 0.92;
    }
    100% {
        transform: translate(-46%, -50%) scale(1);
        opacity: 0.9;
    }
}



.hero .content {
    position: absolute;
    bottom: 30px; /* Mantém na parte inferior */
    right: 30px; /* Alinha o conteúdo ao lado direito */
    text-align: center; /* Centraliza o texto dentro do contêiner */
    z-index: 2; /* Garante que esteja acima de outros elementos */
    max-width: 300px; /* Limita a largura para criar duas linhas */
    display: flex;
    flex-direction: column; /* Organiza o título e o parágrafo em linhas */
    align-items: flex-end; /* Alinha o contêiner ao lado direito */
    gap: 10px; /* Espaçamento entre título e parágrafo */
}

.hero .content h1 {
    font-size: 2.5rem; /* Tamanho do título */
    margin: 0; /* Remove margens extras */
    line-height: 1.2; /* Ajusta o espaçamento das linhas do título */
}

.hero .content p {
    font-size: 1rem; /* Tamanho do parágrafo */
    margin: 0; /* Remove margens extras */
    line-height: 1.4; /* Ajusta o espaçamento entre linhas */
}




.signature {
    position: absolute;
    top: 120px; /* Ajuste o valor para ficar entre a nuvem e o navbar */
    left: 50%; /* Centraliza horizontalmente */
    transform: translateX(-30%); /* Centralização precisa */
    z-index: 2; /* Garante que fique acima da nuvem */
    max-width: 150px; /* Ajuste o tamanho da assinatura */
}

/* Animação de fade-in opcional */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-30%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-30%) translateY(0);
    }
}



.signature {
    animation: fadeIn 10s ease-in-out; /* Ativa a animação ao carregar */
}


#back-to-top {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 50%; /* Centraliza verticalmente (ajuste conforme necessário) */
    right: 20px; /* Mantém no lado direito */
    transform: translateY(50%); /* Ajusta a centralização exata */
    background-color: #007BFF; /* Cor de fundo */
    color: white; /* Cor do texto/ícone */
    border: none;
    border-radius: 50%; /* Forma circular */
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease; /* Suavidade */
    z-index: 1000; /* Fica acima de outros elementos */
}

#back-to-top:hover {
    background-color: #0056b3; /* Cor ao passar o mouse */
}

#back-to-top.show {
    display: block; /* Exibe o botão quando a classe "show" é ativada */
    opacity: 1;
    transform: translateY(50%) scale(1); /* Fica visível */
}

#back-to-top.hide {
    opacity: 0;
    transform: translateY(50%) scale(0.8); /* Efeito de redução ao esconder */
}



/* Sobre Mi */
.sobre-mi {
    padding: 20px 0;
    background-color: #000000;
    overflow: hidden;
    position: relative;
}

.sobre-mi .text p {
    line-height: 1.8; /* aumenta o espaçamento entre linhas */
    margin-bottom: 20px; /* separa visualmente os parágrafos */
    font-size: 1.1rem; /* ou 1.2rem se quiser mais legível ainda */
  }
  

.scrolling-text {
    width: 100%;
    white-space: nowrap;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    position: relative;
}

/* 🔥 Padroniza o tamanho dos textos rolantes em todas as seções */
.scrolling-text p {
    font-size: 3rem; /* Tamanho padrão para todas as seções */
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
    transition: transform 0.2s ease-out;
}

/* Ajuste responsivo para telas menores */
@media (max-width: 768px) {
    .scrolling-text p {
        font-size: 2rem; /* Reduz o tamanho da fonte em telas pequenas */
    }
}
.scrolling-text-right {
    width: 100vw; /* Ocupa toda a largura da tela */
    white-space: nowrap; /* Impede quebra de linha */
    overflow: hidden; /* Evita que ultrapasse a área visível */
    padding: 0; /* Remove qualquer padding */
    margin: 0; /* Remove margens indesejadas */
    position: relative;
    left: 0; /* Garante que começa sem deslocamento */
}

.scrolling-text-right p {
    margin: 0; /* Remove margens padrão do parágrafo */
    padding: 0; /* Remove padding do texto */
    font-size: 3rem; /* Ajuste conforme o tamanho desejado */
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s ease-out; /* Movimento suave */
}
@media (max-width: 768px) {
    .scrolling-text-right p {
        font-size: 2rem !important;
    }
}

.sobre-mi h3 {
    font-size: 1.5rem;
    margin: 50px;
}

.sobre-mi .text {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Estilos para os links sociais */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white; /* Texto em branco */
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Cor específica para o ícone da câmera (estilo WhatsApp) */
.photo-link i {
    color: #25D366; /* Cor verde similar ao WhatsApp */
}

/* Cor para o ícone do LinkedIn */
.social-link:nth-child(2) i {
    color: #0e76a8; /* Cor azul do LinkedIn */
}

/* Responsividade para telas pequenas */
@media (max-width: 576px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

.scroll-gallery {
   overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* ESSENCIAL pro Safari funcionar */
  scroll-snap-type: x mandatory;
  display: flex;
  }
  
  .gallery {
    display: flex;
    width: max-content;
    padding: 1px;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }
  

  /* Remover margens das laterais */
  .gallery img:first-child {
    margin-left: 0;
  }
  
  .gallery img:last-child {
    margin-right: 0;
  }
  

@media (max-width: 768px) {
   
}

.scroll-wrapper {
    overflow: hidden;
  }
  

.gallery img {
    width: 350px;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  
}


/* Trabalhos */
.trabalhos {
    padding: 0px 20px;
    background-color: #222;
}


.trabalhos .dropdown {
    margin: 10px 0;
    padding: 10px;
    background-color: #333;
    color: white;
    border: 1px solid #444;
    cursor: pointer;
}

.trabalhos .dropdown-content {
    display: none;
    padding: 10px;
    background-color: #444;
    border: 1px solid #555;
}

.trabalhos .dropdown.active .dropdown-content {
    display: block;
}
/* Estilo para o Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1100; /* Acima de outros elementos */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    animation: zoom-in 0.3s ease;
}

@keyframes zoom-in {
    from {
        transform: scale(0.1);
        opacity: 0;
    }
    to {
        transform: scale(0.95);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1101;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #007BFF;
    transform: scale(1.1);
}

/* Estilos para os botões de navegação (setas) */
.prev-lightbox,
.next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.prev-lightbox {
    left: 20px;
}

.next-lightbox {
    right: 20px;
}

.prev-lightbox:hover,
.next-lightbox:hover {
    background-color: rgba(0, 123, 255, 0.7);
    transform: translateY(-50%) scale(1.1);
}

/* Contador de imagens */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Cursor para as imagens da galeria */
.gallery img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Estilos para a seção de trabalhos */
.trabalhos {
    padding: 10px 20px 80px;
    background-color: #222;
    overflow: hidden;
    position: relative;
}

/* Cards de trabalhos */
.trabalhos-card {
    background-color: #333;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.trabalhos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

/* Overlay com título da categoria */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.trabalhos-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Corpo do card */
.trabalhos-card .card-body {
    background-color: #333;
    color: white;
    padding: 20px;
}

.trabalhos-card .card-title {
    color: #007BFF;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.trabalhos-card .card-text {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Botão personalizado */
.trabalhos-card .btn-primary {
    background-color: #007BFF;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}

.trabalhos-card .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Animações de fundo dos cards */
.card-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    background-color: #222;
}

/* Animação para o card Code */
.code-animation {
    overflow: hidden;
}

.code-animation::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(0deg, transparent, #3498db, #3498db);
    transform-origin: bottom right;
    animation: code-rotate 6s linear infinite;
}

@keyframes code-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animação para o card UX/UI */
.uxui-animation {
    overflow: hidden;
}

.uxui-animation::before,
.uxui-animation::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(20px);
}

.uxui-animation::before {
    background-color: #e74c3c;
    top: 20px;
    left: 30px;
    animation: uxui-float 6s ease-in-out infinite;
}

.uxui-animation::after {
    background-color: #3498db;
    top: 100px;
    right: 30px;
    animation: uxui-float 8s ease-in-out infinite reverse;
}

@keyframes uxui-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.2);
    }
}

/* Animação para o card Design */
.design-animation {
    overflow: hidden;
}

.design-animation::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, #e74c3c 0%, transparent 20%),
        radial-gradient(circle at 80% 20%, #f1c40f 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, #3498db 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, #2ecc71 0%, transparent 20%);
    animation: design-pulse 8s ease-in-out infinite;
}

@keyframes design-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Estilos para a seção de tecnologias */
.tech-container {
    padding: 20px 15px 50px;
    text-align: center;
    background-color: #333;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tech-header {
    margin-bottom: 25px;
}

.tech-header h3 {
    color: #fff;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.tech-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: #007BFF;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    background-color: #222;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tech-item:hover {
    background-color: #2a2a2a;
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 1.5rem;
    color: #007BFF;
    margin-bottom: 5px;
}

.tech-item span {
    font-size: 0.7rem;
    color: #ddd;
}

/* Cor personalizada para o ícone de IA */
.tech-item i.fa-brain {
    color: #10a37f; /* Verde-azulado, cor frequentemente associada a IA */
}

/* Contato */
.contato {
    padding: 10px 0px;
    background: url('background-sky.jpg') center/cover no-repeat;
    text-align: center;
}

.contato p {
    font-size: 3rem; /* Mesma fonte dos outros textos rolantes */
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap; /* Impede que o texto quebre a linha */
    margin: 0;
    margin-left: 0px;
    transition: transform 0.2s ease-out; /* Movimento suave */
}

.contato form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .contato form {
        margin: 20px auto;
        width: 90%;
    }
}


.contato input, .contato textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contato button {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contato button:hover {
    background-color: #0056b3;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}

.categoria-title {
    font-size: 3.5rem;  /* Tamanho padrão do título */
    color: white;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Responsividade adicional */
@media (max-width: 768px) {
    .categoria-title {
        font-size: 2.5rem;  /* Reduz o tamanho em telas médias */
    }
    
    .trabalhos-header {
        padding: 120px 0 60px;  /* Reduz o padding em telas médias */
    }
}

@media (max-width: 576px) {
    .categoria-title {
        font-size: 2rem;  /* Reduz ainda mais em telas pequenas */
    }
}

/* Aumentando espaçamento entre os cards na página de trabalhos */
.trabalho-item {
    margin-bottom: 40px;  /* Aqui está a margem inferior */
    padding: 0 15px;      /* E aqui o espaçamento lateral */
}

/* Espaçamento entre linhas de cards */
@media (min-width: 768px) {
    .row {
        row-gap: 25px;    /* Espaço entre as linhas em telas médias */
    }
}

/* Em telas maiores, aumentamos ainda mais o espaçamento */
@media (min-width: 992px) {
    .trabalho-item {
        margin-bottom: 50px;  /* Margem ainda maior em telas grandes */
        padding: 0 20px;      /* Padding lateral maior em telas grandes */
    }
}

 /* Estilos específicos para a página de trabalhos */
 .trabalhos-header {
    padding: 150px 0 80px;
    background: url('img/Recurso\ 2bg_portifolio_allanroger.png') center/cover;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Nuvem atrás do título */
.cloud-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    opacity: 0.6;
    z-index: 1;
}

/* Modificação do título "Trabalhos" */
.categoria-title {
font-size: 1.8rem; /* Título menor */
color: white;
position: absolute;
top: 30px; /* Posição no topo */
right: 30px; /* Posicionado à direita */
z-index: 2;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
margin: 0; /* Remove margens padrão */
}

/* Remover a linha azul abaixo do título */
.categoria-title::after {
content: none; /* Remove a linha */
}


/* Container de filtros com flexbox */
.filter-container {
display: flex;
align-items: center;
justify-content: flex-start;
width: 100%;
}

/* Botão home à esquerda */
.home-btn {
color: white;
background-color: rgba(0, 123, 255, 0.7);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
text-decoration: none;
flex-shrink: 0;
transition: all 0.3s;
}

.home-btn:hover {
background-color: #007BFF;
transform: scale(1.1);
color: white;
}

/* Botões de filtro ocupam o resto do espaço */
.filter-buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
flex-grow: 1;
}

/* Responsividade */
@media (max-width: 576px) {
.filter-container {
flex-direction: column;
align-items: flex-start;
}

.home-btn {
margin-bottom: 10px;
}
}

/* Ajustar o cabeçalho para acomodar o título posicionado */
.trabalhos-header {
    padding: 150px 0 80px;
    background: url('img/bg.trabalhos02.JPG') center/cover no-repeat;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.filtros {
    background-color: #222;
    padding: 20px 0;
    margin-bottom: 40px;
}

.filtro-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 20px;
    margin: 0 5px 10px; /* Adicionado margem inferior para responsividade */
    border-radius: 30px;
    transition: all 0.3s;
}

.filtro-btn:hover, .filtro-btn.active {
    background-color: #007BFF;
    border-color: #007BFF;
}

/* Aumentando espaçamento entre os cards na página de trabalhos */
.trabalho-item {
    margin-bottom: 40px;
    padding: 0 15px;
}

/* Adicionando mais espaço ao container */
#trabalhos-grid {
    margin-top: 30px;
}

/* Garantindo que os cards tenham altura uniforme em cada linha */
.trabalho-card {
    height: 80%;
    margin: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #333;
}

.trabalho-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Espaçamento entre linhas de cards */
@media (min-width: 768px) {
    .row {
        row-gap: 25px;
    }
}

/* Em telas maiores, aumentamos ainda mais o espaçamento */
@media (min-width: 992px) {
    .trabalho-item {
        margin-bottom: 50px;
        padding: 0 20px;
    }
}

.w2d-logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
  }
  

.trabalho-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.trabalho-info {
    padding: 20px;
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trabalho-info h3 {
    color: #007BFF;
    margin-bottom: 10px;
}

.trabalho-tags {
    margin-top: auto;
    padding-top: 15px;
}

.tech-item img{
    width: 30%;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #444;
    color: #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Responsividade adicional */
@media (max-width: 768px) {
    .categoria-title {
        font-size: 2.5rem;
    }
    
    .trabalhos-header {
        padding: 120px 0 60px;
    }
    
    .cloud-bg {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .categoria-title {
        font-size: 2rem;
    }
    
    .filtro-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Estilos para o formulário de contato */
.contato form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    background-color: #333; /* Fundo escuro similar ao resto do site */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #444; /* Borda sutil */
}

.contato input, 
.contato textarea {
    padding: 12px;
    font-size: 1rem;
    background-color: #222; /* Campo mais escuro */
    color: #fff; /* Texto branco */
    border: 1px solid #444; /* Borda mais clara */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contato input:focus, 
.contato textarea:focus {
    outline: none;
    border-color: #007BFF; /* Borda azul ao focar */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    background-color: #2a2a2a; /* Ligeiramente mais claro ao focar */
}

.contato textarea {
    min-height: 150px;
    resize: vertical;
}

.contato input::placeholder, 
.contato textarea::placeholder {
    color: #888; /* Placeholder em cinza médio */
}

.contato button {
    background-color: #007BFF;
    color: white;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.contato button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

footer {
    background-color: #111;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #007BFF;
    transform: translateY(-3px);
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .modal-content {
    background: #111;
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    font-family: 'Poppins', sans-serif;
  }
  
  .modal-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
  }
  
  .modal-content button:hover {
    background: #fff;
    color: #000;
  }
  
  .modal.hidden {
    display: none;
  }

html, body {
    overflow-x: hidden;
    max-width: 100%;
  }