/* Variáveis de Cores da Marca */
:root {
    --primary-bg: #301537; /* Cor de fundo escura (da sua logo) */
    --primary-accent: #552C6E; /* Cor de destaque principal (da sua logo) */
    --secondary-bg: #482B53; /* Novo roxo mais suave para fundos */
    --text-light: #f0f0f0; /* Texto claro */
    --white: #FFFFFF; /* Branco puro */
    --gradient-start: #552C6E;
    --gradient-end: #7a4696;
    --portfolio-bg-image-overlay: rgba(0, 0, 0, 0.6); /* Overlay escuro para legibilidade da imagem de fundo */
} 

/* Estilos Base */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    overflow-x: hidden; /* Evita rolagem horizontal */
    scroll-behavior: smooth; /* Habilita rolagem suave nativa do CSS */
}
.container {
    max-width: 1200px;
}
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Animações de Entrada (ao rolar) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animação para ícones na lista de como funciona e serviços */
@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
.icon-pop {
    animation: pop-in 0.6s ease-out forwards;
}

/* Animação para os elementos de fundo da Hero Section (Blobs) */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
    animation: blob 7s infinite cubic-bezier(0.62, 0.02, 0.37, 0.96);
}
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* Estilo e Animação do Logo Placeholder */
.logo-placeholder {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2.25rem; /* text-4xl */
    color: var(--white);
    letter-spacing: -0.06em;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.logo-placeholder:hover {
    transform: scale(1.08) translateY(-3px);
    text-shadow: 5px 5px 8px rgba(0,0,0,0.5);
    color: var(--primary-accent);
}

/* Animação de hover para cards (Serviço, Portfólio, Como Funciona) */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.card-hover-effect:hover {
    transform: translateY(-8px) rotateZ(1deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Animação de Botão com Efeito de Gradiente e Sombra */
.btn-primary {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    background-size: 200% 200%;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.btn-primary:hover {
    background-position: right center; /* Move o gradiente */
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.6);
    border-color: var(--white);
}

.btn-secondary {
    background-color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: #777;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Animação para links da Navbar */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-accent);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.nav-link:hover::after {
    width: 100%;
}

/* Paralaxe na Hero Section (apenas para o background, via JS) */
.parallax-bg {
    background-attachment: fixed; /* Isso faz o efeito parallax nativo do CSS */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-section-gradient {
    background: linear-gradient(135deg, rgba(48, 21, 55, 0.95), rgba(0, 0, 0, 0.95));
}

/* Animação para a imagem do portfólio no hover */
.portfolio-image-hover:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}
.portfolio-image-hover img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Efeito de brilho ao passar o mouse em elementos */
.glow-on-hover {
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -200%;
    left: -50%;
    width: 200%;
    height: 400%;
    animation: glowing 8s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}
.glow-on-hover:active {
    color: #000
}
.glow-on-hover:active:after {
    background: transparent;
}
.glow-on-hover:hover:before {
    opacity: 1;
}
.glow-on-hover:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-bg); /* Fundo do card */
    z-index: -1;
    border-radius: inherit;
}
@keyframes glowing {
    0% { background-position: 0 0; }
    100% { background-position: -200% 0; }
}

/* Nova Animação de Entrada para 'site incrível' (Explosão de Letras) */
.animated-word {
    display: inline-block;
    white-space: nowrap;
}
.animated-letter {
    display: inline-block;
    opacity: 0;
    transform: scale(0.5) translateY(20px) rotateZ(15deg);
    animation: letter-burst 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* Delay será aplicado via JS para um efeito de estouro sequencial */
}

@keyframes letter-burst {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px) rotateZ(15deg);
        filter: blur(5px);
    }
    70% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px) rotateZ(-5deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateZ(0deg);
        filter: blur(0px);
    }
}

/* Estilo para ícones de contato com hover */
.contact-icon {
    font-size: 3rem; /* Tamanho maior para os ícones */
    color: var(--text-light);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}
.contact-icon:hover {
    transform: scale(1.2) rotateY(15deg);
    color: var(--primary-accent); /* Cor de destaque no hover */
    filter: drop-shadow(0 0 15px var(--primary-accent));
}
.contact-link-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Espaçamento entre ícone e texto */
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.75rem;
}
.contact-link-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Fundo sutil no hover */
}

/* Animação para o texto final da seção de contato */
@keyframes text-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shine-text {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: text-shine 3s linear infinite;
}

/* Estilo para a seção de Portfólio com fundo sólido */
.portfolio-section-bg {
    background-image: none; /* Remove a imagem de fundo */
    background-color: var(--secondary-bg); /* Volta para a cor roxa suave */
    position: relative;
    z-index: 0;
}
.portfolio-section-bg::before {
    content: none; /* Remove o overlay */
}

/* NOVOS ESTILOS E ANIMAÇÕES */

/* Animação de brilho no ícone de "Por que nos escolher?" */
@keyframes shine {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0.4), 0 0 10px rgba(255,255,255,0.2); }
    50% { text-shadow: 0 0 15px var(--primary-accent), 0 0 20px var(--primary-accent), 0 0 25px var(--primary-accent); }
    100% { text-shadow: 0 0 5px rgba(255,255,255,0.4), 0 0 10px rgba(255,255,255,0.2); }
}
.icon-shine {
    animation: shine 4s ease-in-out infinite;
}
.group:hover .icon-shine {
    animation-play-state: paused;
    filter: drop-shadow(0 0 15px var(--primary-accent)) drop-shadow(0 0 5px var(--primary-accent));
    transform: scale(1.1);
}

/* Seção de FAQ - ESTILO FINAL COM ANIMAÇÃO AVANÇADA */
.faq-section {
    background-color: var(--secondary-bg); /* O roxo mais claro da sua marca */
    position: relative;
    overflow: hidden;
}

/* Detalhes de fundo (Pontos e traços) */
.faq-section::before,
.faq-section::after {
    content: '';
    position: absolute;
    z-index: 0;
}
.faq-section::before {
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--text-light) 1px, transparent 1px);
    background-size: 8px 8px;
    transform: rotate(45deg);
    opacity: 0.1;
}
.faq-section::after {
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background-image: linear-gradient(to right, var(--text-light) 2px, transparent 2px), linear-gradient(to bottom, var(--text-light) 2px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0.1;
}

/* Estilo base dos balões */
.faq-baloon-wrapper {
    position: relative;
    z-index: 10;
}
.faq-baloon {
    padding: 1.5rem;
    border-radius: 1.5rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.faq-baloon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Balão de Pergunta */
.faq-baloon-question {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); /* O mesmo gradiente dos botões */
    color: var(--white);
    cursor: pointer;
}
.faq-baloon-question::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 15px 10px;
    border-color: transparent transparent var(--gradient-start) transparent; /* Ponta do balão com a cor de início do gradiente */
    top: -15px;
    left: 20px;
    transform: rotate(0deg);
}

/* Balão de Resposta */
.faq-baloon-answer {
    background-color: var(--primary-bg); /* O roxo mais escuro do seu site */
    color: var(--text-light);
    max-height: 0;
    opacity: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: all 0.5s ease-out; /* Transição para o esconder e mostrar */
}
.faq-baloon-answer::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 15px 10px;
    border-color: transparent transparent var(--primary-bg) transparent;
    top: -15px;
    right: 20px;
    transform: rotate(0deg);
}

/* Animação para a seta */
.faq-baloon-question .fas {
    transition: transform 0.3s ease;
}
.faq-item.open .faq-baloon-question .fas {
    transform: rotate(180deg);
}

/* ANIMAÇÃO AVANÇADA PARA A RESPOSTA DO FAQ */
@keyframes faq-expand-and-fade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}
.faq-item.open .faq-baloon-answer {
    max-height: 500px; /* Suficientemente grande para o conteúdo */
    opacity: 1;
    padding: 1.5rem;
    animation: faq-expand-and-fade 0.5s ease-out forwards;
}