/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #000000, #2b0058);
    color: white;
    line-height: 1.6;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo img {
    width: 150px;
    margin-bottom: 20px;
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.title.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtitle {
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    overflow: hidden;
    border-right: 2px solid white;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #1a0a2e, #3b0a6f);
    color: white;
    line-height: 1.6;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo img {
    width: 150px;
    margin-bottom: 20px;
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section {
    margin-top: 40px;
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* estilo carrosel  */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 400px;
}

.carousel-container {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    padding: 20px;    
    border-radius: 10px;
    box-sizing: border-box;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    color: rgb(176, 0, 192);
    font-size: 1.5rem;
    transition: background 0.3s, transform 0.3s;
}

.carousel button:hover {
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .section {
        padding: 20px;
    }
}

/* Estilo da seção Redes Sociais (layout padrão para desktop) */
.redes {
    display: flex;
    flex-direction: column; /* Coloca o título e os ícones em coluna */
    align-items: center; /* Centraliza o conteúdo */
    gap: 20px; /* Espaçamento entre o título e os ícones */
    margin-top: 20px;
}

.redes h2 {
    font-size: 1.5rem; /* Tamanho do título */
    margin-bottom: 10px; /* Espaçamento abaixo do título */
}

.redes .icones {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espaçamento entre os ícones */
}

.redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.redes a:hover {
    color: #3b0041;
    transform: scale(1.2);
}

/* Responsividade para telas menores (celular) */
@media (max-width: 768px) {
    .redes {
        flex-direction: column; /* Título acima, ícones abaixo */
    }

    .redes h2 {
        font-size: 1.2rem; /* Reduz o tamanho do título em dispositivos móveis */
    }

    .redes .icones {
        flex-wrap: wrap; /* Permite que os ícones quebrem para a próxima linha se necessário */
    }

    .redes a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.logo {
    width: 300px; /* Largura da imagem */
    height: auto; /* Mantém a proporção */
    max-width: 100%; /* Garante que a imagem não ultrapasse o container */
    display: block; /* Faz a imagem se comportar como um bloco */
    margin: 0 auto; /* Centraliza a imagem */
}

.redes a {
    color: #000;
    font-size: 24px;
    margin: 0 10px;
    transition: all 0.3s ease; /* Transição suave para todas as propriedades */
}

.redes a:hover {
    color: #3b0041;
    transform: scale(1.2); /* Aumenta o tamanho do ícone em 20% */
}

/* Estilo geral da seção */
.pilares {
    text-align: center;
    padding: 40px 20px;
}

.subtitulo-pilares {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

/* Container para os pilares (Flexbox) */
.pilares-container {
    display: flex; /* Ativa o Flexbox */
    justify-content: space-between; /* Espaço igual entre os pilares */
    gap: 20px; /* Espaçamento entre os pilares */
    max-width: 1200px; /* Largura máxima do container */
    margin: 0 auto; /* Centraliza o container */
    padding: 0 20px; /* Padding lateral para telas menores */
}

/* Estilo de cada pilar dos pilares da Igreja */
.pilar {
    flex: 1; /* Faz cada pilar ocupar o mesmo espaço */
    background-color: #200141;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pilar:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pilar h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
}

.pilar p {
    font-size: 1em;
    color: #ffffff;
    line-height: 1.6;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .pilares-container {
        flex-direction: column; /* Empilha os pilares verticalmente */
    }

    .pilar {
        margin-bottom: 20px; /* Espaçamento entre pilares empilhados */
    }
}

/* Fundo de vídeo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Fica atrás do conteúdo */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(50%); /* Desfoque e transparência */
}

/*TESTE */
@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .section {
        padding: 15px;
    }

    .pilares-container {
        flex-direction: column;
    }

    .pilar {
        margin-bottom: 20px;
    }

    .pastores img {
        width: 100%;
        height: auto;
    }

    .redes a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.video-background video {
    display: none; /* Oculta o vídeo por padrão */
}

@media (min-width: 768px) {
    .video-background video {
        display: block; /* Exibe o vídeo apenas em telas maiores */
    }
}

.video-background {
    background: url('../site igreja atos/IMG/fallback-image.jpg') no-repeat center center/cover; /* Fallback para mobile */
}