/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff; /* Alterado de #0a0a0a para branco */
    color: #333333; /* Alterado de #e0e0e0 para cinza escuro */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container Principal */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho */
header {
    background-color: #fff; /* Alterado para branco sólido */
    padding: 5px 0; /* Aumentado para acomodar o logo maior */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #dddddd; /* Borda mais clara */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8em;
    color: #111111; /* Alterado de #00bfff para preto */
    animation: fadeInDown 1s ease-out;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333333; /* Alterado de #e0e0e0 para cinza escuro */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007aff; /* Cor de destaque Apple (azul) ou um cinza mais escuro #555555 */
}

/* Seção Hero (Principal) */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px; /* Padding geral */
    padding-top: 120px; /* Padding superior maior para header fixo */
    background: #ffffff; /* Fundo branco */
    position: relative;
    /* IMPORTANTE: #hero NÃO tem a classe reveal-section */
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #111111; /* Alterado de #fff para preto */
    opacity: 1;
    animation: slideInFromLeft 1s ease-out;
}

#hero .subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #555555; /* Alterado de #00bfff para cinza médio */
    min-height: 50px;
    opacity: 1;
    animation: slideInFromRight 1s ease-out 0.2s;
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 1.5em;
    background-color: #333333; /* Alterado de #00bfff para cinza escuro */
    margin-left: 5px;
    animation: blink 0.7s infinite;
    vertical-align: bottom;
}

.categoria-card-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.categoria-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.4);
}

/* Novo container para centralizar o botão */
.servico-card-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

/* Estilo atualizado para o botão com efeito glow */
.servico-card-button-container .servico-card-link {
    width: 180px;
    height: 40px;
    border: none;
    outline: none;
    color: #fff;
    background: #333333; /* Alterado de #111 para um cinza escuro mais suave */
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.servico-card-button-container .servico-card-link:before {
    content: '';
    background: linear-gradient(45deg, #007aff, #00c6ff, #0072ff, #00a2ff, #0057ff, #007aff);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.servico-card-button-container .servico-card-link:active {
    color: #fff;
}

.servico-card-button-container .servico-card-link:active:after {
    background: #111;
}

.servico-card-button-container .servico-card-link:hover:before {
    opacity: 1;
}

.servico-card-button-container .servico-card-link:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #333333; /* Alterado de #111 para um cinza escuro mais suave */
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Filtros de categorias */
.filtro-categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.filtro-btn {
    background-color: #eeeeee; /* Cinza claro */
    color: #333333; /* Texto cinza escuro */
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filtro-btn:hover, .filtro-btn.ativo {
    background-color: #007aff; /* Azul Apple */
    color: #ffffff; /* Texto branco */
}

/* Seção Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.case-item {
    background-color: #f9f9f9; /* Alterado de #1a1a1a para cinza muito claro */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Sombra mais sutil */
}

.case-item h4 {
    font-size: 1.4em;
    color: #111111; /* Alterado de #00bfff para preto */
    margin-bottom: 10px;
}

.case-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 8px; /* Alterado de 50% para 8px para ficar quadrado com bordas levemente arredondadas */
    overflow: hidden;
    background-color: #ffffff; /* Mantido branco, bom para logos */
    padding: 10px;
}

.case-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Seção Sobre */
#sobre p {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
}

/* Seção Soluções */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.servico-item {
    background-color: #ffffff; /* Fundo branco */
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #007aff; /* Alterado de #00bfff para azul Apple ou #cccccc */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Sombra mais sutil */
}

.servico-item h4 {
    font-size: 1.4em;
    color: #111111; /* Alterado de #00bfff para preto */
    margin-bottom: 10px;
}

/* Seção Soluções Oferecidos */
.solucoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.servico-card {
    background-color: #ffffff; /* Alterado de #1a1a1a para branco */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eeeeee; /* Borda sutil */
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Sombra mais sutil */
}

.servico-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.servico-card-categoria {
    background-color: rgba(0, 122, 255, 0.1); /* Fundo azul claro translúcido */
    color: #007aff; /* Azul Apple */
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-bottom: 15px;
}

.servico-card h4 {
    color: #111111; /* Alterado de #00bfff para preto */
    margin-bottom: 10px;
    font-size: 1.2em;
}

.servico-card p {
    color: #555555; /* Alterado de #e0e0e0 para cinza médio */
    margin-bottom: 15px;
    flex-grow: 1;
}

.servico-card-link {
    align-self: flex-start;
    background-color: transparent;
    color: #007aff; /* Azul Apple */
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #007aff; /* Azul Apple */
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.servico-card-link:hover {
    background-color: #007aff; /* Azul Apple */
    color: #ffffff; /* Texto branco */
}

/* Novo estilo para links de chamada para ação no menu */
.menu-cta-link {
    display: inline-block;
    padding: 7px 18px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    margin-left: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.15);
    line-height: 1.2;
    vertical-align: middle;
}

.menu-cta-link:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.18);
    transform: translateY(-2px);
}

/* Seção Geral */
section {
     padding: 80px 0; /* Espaçamento padrão das seções */
}

.reveal-section {
    opacity: 0; /* Começa invisível */
    transform: translateY(30px); /* Começa deslocado para baixo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-section.visible {
    opacity: 1; /* Torna visível */
    transform: translateY(0); /* Volta à posição original */
}

section h3 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #111111; /* Alterado de #00bfff para preto */
    position: relative;
    margin-top: 40px; /* Adicionado espaçamento acima do h3 */
}

section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #cccccc; /* Alterado de #00bfff para cinza claro */
    margin: 10px auto 0;
}

/* Seção Habilidades */
.habilidades-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
}

.habilidades-lista li {
    background-color: #eeeeee; /* Cinza claro */
    color: #333333; /* Texto cinza escuro */
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

 .habilidades-lista li:hover {
    background-color: #dddddd; /* Cinza um pouco mais escuro no hover */
    color: #111111; /* Texto preto */
    transform: scale(1.05);
}

/* Seção Tecnologias Aplicadas */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tech-card {
    background-color: #ffffff; /* Alterado de #1a1a1a para branco */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Sombra sutil */
    cursor: pointer;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #eeeeee;
}

.tech-card:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(0,122,255,0.1), rgba(0,91,181,0.1)); /* Gradiente azul Apple sutil */
    z-index: -1;
    transform: scale(0.9);
    opacity: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
}

.tech-card:hover:before {
    transform: scale(1);
    opacity: 0.3; /* Opacidade sutil para o efeito */
}

.tech-icon {
    font-size: 2.5rem;
    color: #333333; /* Cor base para ícones, pode ser sobrescrita */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.2);
}

.tech-card h4 {
    color: #111111; /* Alterado de #00bfff para preto */
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.tech-card p {
    color: #555555; /* Alterado de #e0e0e0 para cinza médio */
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Animação ao revelar */
.tech-grid {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-section.visible .tech-grid {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Cores diferentes para cada categoria */
.tech-card[data-tech="javascript"] .tech-icon { color: #f0db4f; } /* Amarelo JS */
.tech-card[data-tech="python"] .tech-icon { color: #306998; } /* Azul Python */
.tech-card[data-tech="html-css"] .tech-icon { color: #e34c26; } /* Laranja HTML */
.tech-card[data-tech="database"] .tech-icon { color: #00758f; } /* Cor para DB */
.tech-card[data-tech="api"] .tech-icon { color: #61dafb; } /* Azul React (exemplo) */
.tech-card[data-tech="docker"] .tech-icon { color: #2496ed; } /* Azul Docker */
.tech-card[data-tech="cloud"] .tech-icon { color: #4285f4; } /* Azul Google Cloud */
.tech-card[data-tech="automation"] .tech-icon { color: #d9534f; } /* Vermelho sutil para automação */
.tech-card[data-tech="git"] .tech-icon { color: #f05033; } /* Laranja Git */
.tech-card[data-tech="n8n"] .tech-icon { color: #1A827A; } /* Verde N8N */
.tech-card[data-tech="crm"] .tech-icon { color: #ff9a8b; } /* Rosa/Salmão para CRM */
.tech-card[data-tech="notion"] .tech-icon { color: #000000; } /* Preto Notion */

/* Responsividade */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .tech-card {
        height: 150px;
    }
    
    .tech-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .tech-card {
        height: 140px;
        padding: 15px 10px;
    }
    
    .tech-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .tech-card h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .tech-card p {
        font-size: 0.8rem;
    }
}

/* Seção Contato */
#contato p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333; /* Texto cinza escuro */
}

.contato-links {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contato-links a {
    width: 180px;
    height: 45px;
    border: none;
    outline: none;
    color: #fff;
    background: #333333;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.contato-links a:before {
    content: '';
    background: linear-gradient(45deg, #007aff, #00c6ff, #0072ff, #00a2ff, #0057ff, #007aff);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.contato-links a:active {
    color: #fff;
}

.contato-links a:active:after {
    background: #333333;
}

.contato-links a:hover:before {
    opacity: 1;
}

.contato-links a:hover {
    transform: scale(1.05);
}

.contato-links a:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #333333;
    left: 0;
    top: 0;
    border-radius: 10px;
}

/* Rodapé */
footer {
    background-color: #f9f9f9; /* Cinza muito claro */
    color: #555555; /* Cinza médio */
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #eeeeee; /* Borda cinza bem clara */
}

.footer-links {
    margin-top: 15px;
    text-align: center;
}

.footer-links a {
    color: #0090ff;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #0072ff;
    text-decoration: underline;
}

/* Centralizador de botões */
.button-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.button-center .categoria-card-link {
    margin: 0 auto;
}

/* Animações CSS */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsividade */
@media (max-width: 768px) {
     header { padding: 10px 0; }
     header .container{ flex-direction: column; align-items: center; }
     nav ul { padding-top: 10px; justify-content: center; flex-wrap: wrap; gap: 15px; }
     nav ul li { margin-left: 0; }
     #hero { padding-top: 140px; } /* Aumenta espaço para header maior no mobile */
     #hero h2 { font-size: 2.2em; }
     #hero .subtitle { font-size: 1.1em; }
     section { padding: 60px 0; } /* Reduz padding das seções no mobile */
     section h3 { font-size: 1.8em; }
     .servicos-grid { grid-template-columns: 1fr; }
     .cases-grid { grid-template-columns: 1fr; }
     .contato-links a { margin: 10px; }
}
@media (max-width: 480px) {
     header h1 { font-size: 1.3em; }
     #hero h2 { font-size: 1.8em; }
     nav ul li a { font-size: 0.9em;}
     .categoria-card-link { 
         padding: 10px 20px; 
         font-size: 1rem;
     }
}
