/* ===================== RESET BÁSICO ===================== */
/* Remove margens/paddings padrões e define box-sizing */
* {
    margin: 0;
    /* remove margem padrão */
    padding: 0;
    /* remove padding padrão */
    box-sizing: border-box;
    /* inclui padding e border no cálculo da largura/altura */
}

/* ===================== VARIÁVEIS GLOBAIS ===================== */
:root {
    --blue-color: rgb(0, 68, 255);
    /* azul principal */
    --white-color: #fff;
    /* branco */
    --dark-color: #333;
    /* texto escuro */
}

/* ===================== BODY ===================== */
body {
    font-family: 'Poppins', sans-serif;
    /* fonte geral */
    line-height: 1.6;
    /* espaçamento entre linhas */
    color: var(--dark-color);
    /* cor do texto */
    background-color: #f9f9f9;
    /* fundo da página */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* evita scroll horizontal */
}

/* ===================== HEADER ===================== */
header {
    height: 40vh;
    /* altura: 40% da tela */
    display: flex;
    /* layout flexível */
    align-items: center;
    /* centraliza verticalmente */
    justify-content: center;
    /* centraliza horizontalmente */
    position: relative;
    /* necessário para ::before e ::after */
    background: linear-gradient(270deg, #0d1b2a, #1b263b, #0f3460, #16213e);
    background-size: 600% 600%;
    /* tamanho do gradiente animado */
    animation: gradientShift 25s ease infinite;
    overflow: hidden;
    /* evita “vazamento” do conteúdo */
}
#introducao p {
    font-size: 1.5rem;       /* tamanho da fonte */
    color: #fafafa;          /* cor do texto */
    line-height: 1.6;        /* altura da linha */
}
/* ===================== ESTRELAS NO HEADER ===================== */
/* Camada 1 (estrelas rápidas e visíveis) */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent url("https://www.transparenttextures.com/patterns/stardust.png") repeat;
    animation: starsMove 90s linear infinite;
    opacity: 0.8;
}

/* Camada 2 (estrelas lentas e sutis) */
header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent url("https://www.transparenttextures.com/patterns/tiny-cross.png") repeat;
    animation: starsMove 180s linear infinite;
    opacity: 0.5;
}

/* ===================== ANIMAÇÕES ===================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes starsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

/* ===================== OVERLAY NO HEADER ===================== */
.overlay {
    background: rgba(0, 0, 0, 0.5);
    /* overlay escuro */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Texto do header */
header h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===================== BOTÃO HOME FLUTUANTE ===================== */
.btn-home {
    position: fixed;
    top: 20px;
    left: 15px;
    z-index: 999;
    color: rgb(110, 14, 129);
    padding: 7px;
    border-radius: 10%;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.btn-home:hover {
    background-color: #5A189A;
    /* roxo mais escuro */
}

/* ===================== BOTÃO PADRÃO ===================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #071ea0;
    border: 2px solid #ffffff;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #ffffff;
    color: #2563EB;
    border-color: #2563EB;
}

/* ===================== CONTAINER ===================== */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    padding: 2rem 0;
}

/* ===================== SEÇÕES ===================== */
section h2 {
    position: relative;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #3e54cf;
}section#passo-passo h2 {
    margin-bottom: 2.5rem;
    height: 1rem;
    color: rgb(71, 71, 71);
    font-size: 1.6rem;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ===================== CARD DESTAQUE ===================== */
.card-destaque {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card-destaque a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark-color);
    padding: 2rem 1.5rem;
    height: 100%;
    position: relative;
    z-index: 2;
}

.card-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blue-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    border-radius: 12px;
    z-index: 1;
}

.card-destaque:hover::before {
    transform: scaleY(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-destaque a h3,
.card-destaque a p,
.card-destaque a i {
    position: relative;
    z-index: 3;
    text-align: center;
    transition: color 0.4s ease;
}

.card-destaque i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--blue-color);
}

.card-destaque a h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-destaque a p {
    font-size: 1rem;
    line-height: 1.5;
}

.card-destaque:hover a h3,
.card-destaque:hover a p,
.card-destaque:hover a i {
    color: var(--white-color);
}

/* ===================== CONTATOS ===================== */
.contact-buttons {
    margin-top: 6rem;
    right: 5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    background: #333;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.icon-btn.linkedin:hover {
    background: #0077B5;
}

/* LinkedIn */
.icon-btn.whatsapp:hover {
    background: #25D366;
}

/* WhatsApp */
.icon-btn.email:hover {
    background: #EA4335;
}

/* Gmail */
.icon-btn.github:hover {
    background: #000;
}

/* GitHub */

/* ===================== FOOTER ===================== */
footer {
    margin-top: 3rem;
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
    background: #335063;
    color: white;
    z-index: 0;
}

/* ===================== AJUSTES GERAIS ===================== */
html h1 {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    color: rgb(255, 255, 255);
}
html h2{
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    color: rgb(9, 27, 189);
}


main {
    flex: 1;
}

/* ===================== PASSO A PASSO ===================== */
.p-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cards-bucket {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.grid-bucket {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
    margin-top: 1rem;
    justify-items: center;
}

.card-bucket {
    max-width: 250px;
    padding: 2rem;
    font-size: 1.1rem;
}

.card-bucket:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
/* ===================== CARDS GRANDES ===================== */
.instance-card-bg{
  position: relative;
    flex: 1 1 280px;
    max-width: 320px;
    min-height: 420px;
    padding: 20px;
    margin: 10px;
    border-radius: 16px;
    background: #ffffff;
    color: #ccc;
    box-shadow: 0 4px 12px rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;}

.cards-prog{
   
    display: flex;
 font-size: 0.95rem;
    line-height: 1.5;
    color: #020202;
}



/* ===================== CARDS PEQUENOS ===================== */
.instance-card-small {
    position: relative;
    flex: 1 1 280px;
    max-width: 320px;
    min-height: 160px;
    padding: 20px;
    margin: 10px;
    border-radius: 16px;
    background: #ffffff;
    color: #ccc;
    box-shadow: 0 4px 12px rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instance-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.instance-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.instance-card__box {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #020202;
}

/* ===== Carrossel ===== */
.carousel-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ===================== Mobile ===================== */

@media (max-width: 768px){
.cards {
    display: flex;
    flex-direction: column;
}
    /* 2 colunas em telas pequenas */
}