﻿@keyframes pulseBackground {
    0% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 80%) 1%, var(--mud-palette-background) 50%);
    }

    5% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 81%) 1%, var(--mud-palette-background) 50%);
    }

    10% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 82%) 1%, var(--mud-palette-background) 50%);
    }

    15% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 83%) 1%, var(--mud-palette-background) 50%);
    }

    20% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 84%) 1%, var(--mud-palette-background) 50%);
    }

    25% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 85%) 1%, var(--mud-palette-background) 50%);
    }

    30% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 86%) 1%, var(--mud-palette-background) 50%);
    }

    35% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 87%) 1%, var(--mud-palette-background) 50%);
    }

    40% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 88%) 1%, var(--mud-palette-background) 50%);
    }

    45% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 89%) 1%, var(--mud-palette-background) 50%);
    }

    50% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 90%) 1%, var(--mud-palette-background) 50%);
    }

    55% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 89%) 1%, var(--mud-palette-background) 50%);
    }

    60% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 88%) 1%, var(--mud-palette-background) 50%);
    }

    65% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 87%) 1%, var(--mud-palette-background) 50%);
    }

    70% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 86%) 1%, var(--mud-palette-background) 50%);
    }

    75% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 85%) 1%, var(--mud-palette-background) 50%);
    }

    80% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 84%) 1%, var(--mud-palette-background) 50%);
    }

    85% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 83%) 1%, var(--mud-palette-background) 50%);
    }

    90% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 82%) 1%, var(--mud-palette-background) 50%);
    }

    95% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 81%) 1%, var(--mud-palette-background) 50%);
    }

    100% {
        background: radial-gradient(circle at top left, rgb(25 12 58 / 80%) 1%, var(--mud-palette-background) 50%);
    }
}



/* Estrelas animadas usando a cor de texto (ou outra var palette) */
.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--mud-palette-text-primary);
    border-radius: 50%;
    animation: orbit 6s linear infinite;
}

    .star:nth-child(1) {
        top: 10%;
        left: 20%;
        animation-duration: 8s;
    }

    .star:nth-child(2) {
        top: 40%;
        left: 70%;
        animation-duration: 5s;
    }

    .star:nth-child(3) {
        top: 60%;
        left: 30%;
        animation-duration: 7s;
    }
/*
          Razor interpreta '@keyframes ' como C#.
    Use '@@keyframes' pra gerar '@keyframes' no CSS final.
    */
@@keyframes orbit {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(30px) translateY(-20px);
        opacity: 0.7;
    }

    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* Seção de Produtos usando a var(--mud-palette-surface) */
.products {
    padding: 6rem 2rem;
    text-align: center;
    color: var(--mud-palette-text-primary);
    /*border-radius: 12px;*/
    /*box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);*/
}
/* Cada cartão com a var(--mud-palette-background) */
.product-card {
    background: var(--mud-palette-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

/* Seção de contato usando, por exemplo, a cor 'info' (ou 'secondary') */
.contact {
    padding: 6rem 2rem;
    text-align: center;

    color: var(--mud-palette-text-primary);
    /*border-radius: 12px;*/
    /*box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);*/
}



.mud-app-bar {
    background-color: hsl(240deg 10% 4%);
}

.to-background {
    --tw-gradient-to: hsl(var(--background)) var(--tw-gradient-to-position);
}

.via-background\/50 {
    --tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / 0.5) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.gradient-text {
    background: linear-gradient(270deg, var(--mud-palette-appbar-text), var(--mud-palette-primary), var(--mud-palette-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Garante que o gradiente funcione corretamente */
}


/* Ajuste de largura/altura da scrollbar */
::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

/* Trilho transparente */
::-webkit-scrollbar-track {
    background: transparent !important;
}

/* Polegar com cor primária e leve transparência */
::-webkit-scrollbar-thumb {
    background: var(--mud-palette-primary);
    border-radius: 2px; /* Deixa bem arredondado */
    box-shadow: 0 0 4px var(--mud-palette-primary);
    
    opacity: 1;
}

/* Ao passar o mouse, remove a transparência */
    ::-webkit-scrollbar-thumb:hover {
        opacity: 1; /* Transparência */
    }

/* Firefox (suporte limitado) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--mud-palette-primary) transparent;
}






/*tela de carregament */




/* Container de loading com fundo preto */
.loading-container {
    background-color: #000;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Quando a classe "fade-out" for aplicada, o container diminui a opacidade */
.loading-container.fade-out {
    opacity: 0;
}


/* Wrapper da logo para posicionamento relativo */
.logo-wrapper {
    position: relative;
    display: inline-block;
}

/* Logo com tamanho aumentado e animação pulsante */
.loading-logo {
    width: 300px; /* Dobra o tamanho original */
    height: auto;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 2;
}

/* Animação de pulsação para a logo */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Container de partículas, ocupa o mesmo espaço do wrapper */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Todas as partículas: bolinhas pequenas */
.particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: particleBurst linear infinite;
}

/* A animação move a partícula do centro para fora,
   usando variáveis definidas para o deslocamento */
@keyframes particleBurst {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2);
        opacity: 0;
    }
}

/* Definindo propriedades variadas para cada partícula */
.particle:nth-child(1) {
    --tx: -520px;
    --ty: -460px;
    animation-duration: 0.8s;
    animation-delay: 0s;
    background: #fff;
}

.particle:nth-child(2) {
    --tx: 480px;
    --ty: -430px;
    animation-duration: 0.85s;
    animation-delay: 0.1s;
    background: #7e6fff;
}

.particle:nth-child(3) {
    --tx: -470px;
    --ty: 510px;
    animation-duration: 0.9s;
    animation-delay: 0.15s;
    background: #fff;
}

.particle:nth-child(4) {
    --tx: 530px;
    --ty: 460px;
    animation-duration: 0.8s;
    animation-delay: 0.2s;
    background: #7e6fff;
}

.particle:nth-child(5) {
    --tx: -600px;
    --ty: 30px;
    animation-duration: 0.85s;
    animation-delay: 0.05s;
    background: #fff;
}

.particle:nth-child(6) {
    --tx: 30px;
    --ty: 620px;
    animation-duration: 0.8s;
    animation-delay: 0.12s;
    background: #7e6fff;
}

.particle:nth-child(7) {
    --tx: -570px;
    --ty: 360px;
    animation-duration: 0.9s;
    animation-delay: 0.2s;
    background: #fff;
}

.particle:nth-child(8) {
    --tx: 450px;
    --ty: -580px;
    animation-duration: 0.8s;
    animation-delay: 0.18s;
    background: #7e6fff;
}

.particle:nth-child(9) {
    --tx: 620px;
    --ty: 320px;
    animation-duration: 0.85s;
    animation-delay: 0.25s;
    background: #fff;
}

.particle:nth-child(10) {
    --tx: -420px;
    --ty: -610px;
    animation-duration: 0.8s;
    animation-delay: 0.3s;
    background: #7e6fff;
}

.particle:nth-child(11) {
    --tx: 520px;
    --ty: 20px;
    animation-duration: 0.8s;
    animation-delay: 0.35s;
    background: #fff;
}

.particle:nth-child(12) {
    --tx: 20px;
    --ty: -600px;
    animation-duration: 0.9s;
    animation-delay: 0.4s;
    background: #7e6fff;
}

.particle:nth-child(13) {
    --tx: -550px;
    --ty: -550px;
    animation-duration: 0.85s;
    animation-delay: 0.45s;
    background: #fff;
}

.particle:nth-child(14) {
    --tx: 570px;
    --ty: 550px;
    animation-duration: 0.8s;
    animation-delay: 0.5s;
    background: #7e6fff;
}

.particle:nth-child(15) {
    --tx: -630px;
    --ty: 100px;
    animation-duration: 0.8s;
    animation-delay: 0.55s;
    background: #fff;
}

.particle:nth-child(16) {
    --tx: 100px;
    --ty: 640px;
    animation-duration: 0.9s;
    animation-delay: 0.6s;
    background: #7e6fff;
}

.particle:nth-child(17) {
    --tx: -480px;
    --ty: 580px;
    animation-duration: 0.85s;
    animation-delay: 0.65s;
    background: #fff;
}

.particle:nth-child(18) {
    --tx: 530px;
    --ty: -520px;
    animation-duration: 0.8s;
    animation-delay: 0.7s;
    background: #7e6fff;
}

.particle:nth-child(19) {
    --tx: -500px;
    --ty: 620px;
    animation-duration: 0.9s;
    animation-delay: 0.75s;
    background: #fff;
}

.particle:nth-child(20) {
    --tx: 480px;
    --ty: -600px;
    animation-duration: 0.85s;
    animation-delay: 0.8s;
    background: #7e6fff;
}


@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .footer .mud-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .mud-item {
        width: 100%;
        margin-bottom: 1rem;
    }
}



.logo-orbit-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-planet {
    z-index: 2;
    animation: spin 30s linear infinite;
}

.orbit {
    position: absolute;
    border: 2px dashed var(--mud-palette-gray-light);
    border-radius: 50%;
}

.orbit-1 {
    width: 340px;
    height: 340px;
    animation: rotate-clockwise 8s linear infinite;
}

.orbit-2 {
    width: 260px;
    height: 260px;
    animation: rotate-counter 12s linear infinite;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    animation: rotate-clockwise 20s linear infinite;
}

.star {
    width: 10px;
    height: 10px;
    background-color: var(--mud-palette-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px white;
}

/* Animações */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-clockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-counter {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/* Oculta por padrão */
.only-desktop {
    display: none;
}

.only-mobile {
    display: none;
}

/* Exibe desktop somente em telas >= 768px (ajuste se quiser outro breakpoint) */
@media (min-width: 768px) {
    .only-desktop {
        display: block !important;
    }
}

/* Exibe mobile somente em telas < 768px */
@media (max-width: 767px) {
    .only-mobile {
        display: block !important;
    }
}

.orbit-mobile {
    position: absolute;
    top: 0; /* ajuste conforme desejar */
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: -1; /* fica atrás do texto */
    /* Ajuste largura/altura se precisar */
    overflow: hidden;
    height: 130%;
}

.falling-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Para que os cliques passem por cima */
    overflow: hidden;
    z-index: -1; /* Para ficar atrás do conteúdo */
}

.falling-star {
    position: absolute;
    top: 0px; /* Inicia acima da tela */
    width: 5px; /* Largura da estrela */
    height: 3px; /* Comprimento da "trilha" */
    background: var(--mud-palette-text-primary);
    opacity: 0;
    transform: rotate(45deg);
    animation: fallingStar 3s linear infinite;
}

/* Keyframes para animação da estrela cadente */
@keyframes fallingStar {
    0% {
        transform: translate3d(0, 0, 0) rotate(45deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        /* Ajuste esses valores para alterar a distância da animação */
        transform: translate3d(1800px, 1800px, 0) rotate(25deg);
        opacity: 0;
    }
}
