@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    font-family: 'Orbitron', monospace;
    cursor: none;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none; /* Impede seleção de texto */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/* Estilos do texto */
.brand-container {
    text-align: center;
    z-index: 10;
    padding: 0 5vw; /* Padding responsivo baseado na largura da viewport */
}

.morphix-text {
    font-size: clamp(2rem, 8vw, 5rem); /* Tamanho fluido entre 2rem e 5rem */
    font-weight: 900;
    color: #ffffff;
    letter-spacing: clamp(0.05em, 0.3vw, 0.2em); /* Letter-spacing fluido */
    margin-bottom: clamp(10px, 3vw, 20px); /* Margem fluida */
    line-height: 1.1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.brand-tagline {
    font-size: clamp(0.7rem, 2.5vw, 1.2rem); /* Tamanho fluido para o slogan */
    font-weight: 400;
    color: #cccccc;
    letter-spacing: clamp(0.02em, 0.15vw, 0.1em); /* Letter-spacing fluido */
    text-transform: uppercase;
    line-height: 1.3;
    max-width: 90vw; /* Limita a largura para não quebrar em telas muito pequenas */
    margin: 0 auto; /* Centraliza horizontalmente */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Cursor de Partículas */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: particle-fade 1.2s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
}

.cursor-particle.blue {
    background: rgba(0, 150, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.8), 0 0 20px rgba(0, 150, 255, 0.4);
}

.cursor-particle.purple {
    background: rgba(150, 0, 255, 0.9);
    box-shadow: 0 0 10px rgba(150, 0, 255, 0.8), 0 0 20px rgba(150, 0, 255, 0.4);
}

.cursor-particle.cyan {
    background: rgba(0, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
}

@keyframes particle-fade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.2) rotate(360deg);
    }
}

.cursor-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: trail-fade 0.8s ease-out forwards;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.cursor-explosion {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: explosion-fade 1.5s ease-out forwards;
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.1) rotate(180deg);
    }
}

@keyframes explosion-fade {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(2);
    }
    100% {
        opacity: 0;
        transform: scale(4);
    }
}

/* Hover Effects */
.morphix-text:hover ~ .cursor {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 1);
}

/* Responsividade - Ocultar cursor em dispositivos móveis */
@media (max-width: 768px) {
    body {
        cursor: auto;
        padding: 2vw; /* Padding fluido para dispositivos móveis */
    }
    
    .cursor, .cursor-particle, .cursor-trail, .cursor-explosion {
        display: none !important;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
    .brand-container {
        padding: 0 3vw;
    }
    
    .morphix-text {
        font-size: clamp(1.5rem, 10vw, 2.5rem); /* Ainda menor para telas muito pequenas */
    }
    
    .brand-tagline {
        font-size: clamp(0.6rem, 4vw, 1rem);
        word-break: break-word; /* Quebra palavras se necessário */
    }
}