#home {
    position: relative;
    overflow: hidden; /* Isso impede que qualquer elemento saia pelas laterais */
    width: 100%;
}

/* Efeito Parallax */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.parallax-sm {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
}

/* Imagens de fundo (Substitua pelos seus links) */
.bg-img-1 { background-image: url('public/foto1.jpg'); }
.bg-img-portfolio { background-image: url('public/foto8.jpg'); }
.bg-img-contact { background-image: url('public/foto14.jpg'); }
.bg-img-resumo { background-image: url('public/foto10.jpg'); }

/* Efeito de brilho dourado que pulsa levemente como o reflexo no mar */
.ocean-reflection {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30%;
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: reflection-pulse 8s infinite ease-in-out;
    pointer-events: none;
}

.bird {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    will-change: transform;
}

/* O pássaro em si (SVG de silhueta) */
.bird-body {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 26"><path d="M13,10c-3-2-7-1-10,2c3-1,7-1,10,0c3-1,7-1,10,0C20,9,16,8,13,10z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: wing-flap 0.6s ease-in-out infinite alternate;
    filter: brightness(0); /* Fica preto como uma silhueta no pôr do sol */
    opacity: 0.8;
}

/* Animação de bater asas */
@keyframes wing-flap {
    from { transform: scaleY(0.4) rotate(-5deg); }
    to { transform: scaleY(1) rotate(5deg); }
}

/* Animação de cruzar a tela */
.fly-animation {
    animation: cross-screen linear forwards;
}

@keyframes cross-screen {
    from { transform: translateX(-100px); }
    to { transform: translateX(calc(100vw + 100px)); }
}

@keyframes reflection-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* Classe para esconder os itens da timeline antes da animação */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Classe aplicada via JS quando o item entra na tela */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Transição: Roxo (Foto 1) -> Amarelado Escuro (Foto 8) */
.bg-purple-to-amber {
    background: linear-gradient(to bottom, 
        #2d1b36 0%,    /* Roxo da base da foto 1 */
        #713f12 100%   /* Amarelado escuro da foto 8 */
    );
}

/* Transição: Dourado Escuro (Foto 8) -> Azul Marinho -> Preto Espacial */
.bg-sunset-to-space {
    background: linear-gradient(to bottom, 
        #713f12 0%,    /* Amarelado escuro/queimado da Foto 8 */
        #1e1b4b 40%,   /* Azul Marinho que você aprovou */
        #030712 100%   /* Conexão com o Espaço Sideral */
    );
}

/* Efeito de brilho sutil nos cards para combinar com o tom dourado */
.card-glow:hover {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1); /* Brilho âmbar sutil */
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

.space-bg {
    /* Gradiente sideral: Azul muito profundo para o preto */
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    position: relative;
    overflow: hidden;
}

/* Camada de Estrelas 1 (Pequenas) */
.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 100px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 250px 250px;
    opacity: 0.3;
    animation: moveStars 100s linear infinite;
}

/* Camada de Estrelas 2 (Brilho variante) */
.stars-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(1.5px 1.5px at 100px 150px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 200px 300px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 300px 50px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 0.2;
    animation: moveStars 150s linear infinite;
}

.bg-deep-void {
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

/* Nébulas sutis ao fundo */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.nebula-purple { width: 400px; height: 400px; background: #8b5cf6; top: -10%; right: -5%; }
.nebula-blue { width: 300px; height: 300px; background: #3b82f6; bottom: 10%; left: -5%; }

/* Efeito de vidro futurista para o formulário */
.glass-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Inputs que brilham ao focar */
.space-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.space-input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.08) !important;
}

#navbar { 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Classe ativada no Scroll */
.glass-nav {
    background: rgba(0, 0, 0, 0.6) !important; /* Fundo escuro translúcido */
    backdrop-filter: blur(12px); /* Desfoque do fundo */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Linha fina de luz */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Efeito de linha animada nos links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, #8b5cf6, #3b82f6);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

.shooting-star {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 
                0 0 0 8px rgba(255, 255, 255, 0.1), 
                0 0 20px rgba(255, 255, 255, 1);
    z-index: 5;
    opacity: 0;
}

/* O rastro da estrela */
.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

/* Animação do disparo */
.animate-star {
    animation: shooting 1.5s ease-out forwards;
}

@keyframes shooting {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

/* Notificações */

/* Notificação Estelar */
.notificacao {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notificacao.show { transform: translateX(0); }

.notificacao-sucesso { 
    background: rgba(16, 185, 129, 0.2); 
    border: 1px solid #10b981; 
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.notificacao-erro { 
    background: rgba(239, 68, 68, 0.2); 
    border: 1px solid #ef4444; 
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Poeira */

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    animation: fly 1s ease-out forwards;
}

@keyframes fly {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)); opacity: 0; }
}

/* Nebulosa */

.nebula-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, #050505 0%, #000 100%);
    z-index: -1; /* Fica atrás do conteúdo */
}

.nebula-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    mix-blend-mode: screen; /* Faz as cores se fundirem de forma brilhante */
    animation: drift 20s infinite alternate ease-in-out;
}

/* Camada Púrpura */
.purpura {
    width: 800px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 70%);
    animation-duration: 25s;
}

/* Camada Azul Profundo */
.azul {
    width: 900px;
    height: 700px;
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, transparent 70%);
    animation-duration: 35s;
    animation-delay: -5s;
}

/* Camada Ciano/Luz */
.ciano {
    width: 600px;
    height: 400px;
    top: 30%;
    left: 20%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 60%);
    animation-duration: 18s;
    animation-delay: -2s;
}

/* Brilho Central Suave */
.nebula-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

/* Animação de Movimento Orgânico */
@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1) rotate(5deg);
    }
    100% {
        transform: translate(-5%, 5%) scale(0.9) rotate(-5deg);
    }
}

/* Paginação */

/* Configuração do Trilho do Carrossel */
    #carousel-track {
        display: flex;
        width: 100%; /* O JS controla o movimento */
        will-change: transform;
    }

    .flex-shrink-0 {
        width: 100%; /* Cada container ocupa 100% da largura do pai */
    }

    /* Estilo dos Indicadores (Pills) */
    .page-pill {
        width: 30px;
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.4s ease;
    }

    .page-pill.active {
        background: #8b5cf6; /* Roxo */
        width: 60px;
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    }

    /* Ajuste para Setas em telas menores */
    @media (max-width: 1024px) {
        .lg\:block { display: none !important; }
    }