:root {
    /* Paleta de Cores Giros Moto */
    --primary-blue: #0A1B5E;
    --primary-yellow: #FFF100;
    --bg-dark: #030718;
    --text-light: #FFFFFF;
    
    /* Efeitos de Vidro (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 241, 0, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    /* Fundo com foto de oficina */
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Overlay escuro sobre a imagem de fundo para dar contraste */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(3, 7, 24, 0.88) 0%,
        rgba(10, 27, 94, 0.75) 50%,
        rgba(3, 7, 24, 0.90) 100%
    );
    z-index: 0;
}

/* -------------------------------------
   Ícones Flutuantes no Fundo 
-------------------------------------- */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 241, 0, 0.12);
    animation: floatIcon 18s linear infinite;
    opacity: 0;
}

/* Posições, tamanhos e delays dos ícones */
.floating-icon:nth-child(1) {
    left: 8%;
    font-size: 35px;
    animation-duration: 22s;
    animation-delay: 0s;
}
.floating-icon:nth-child(2) {
    left: 25%;
    font-size: 50px;
    animation-duration: 28s;
    animation-delay: 2s;
}
.floating-icon:nth-child(3) {
    left: 45%;
    font-size: 40px;
    animation-duration: 20s;
    animation-delay: 4s;
    color: rgba(255, 255, 255, 0.08);
}
.floating-icon:nth-child(4) {
    left: 65%;
    font-size: 30px;
    animation-duration: 25s;
    animation-delay: 1s;
}
.floating-icon:nth-child(5) {
    left: 80%;
    font-size: 45px;
    animation-duration: 30s;
    animation-delay: 3s;
    color: rgba(255, 255, 255, 0.06);
}
.floating-icon:nth-child(6) {
    left: 15%;
    font-size: 55px;
    animation-duration: 35s;
    animation-delay: 5s;
}
.floating-icon:nth-child(7) {
    left: 55%;
    font-size: 28px;
    animation-duration: 19s;
    animation-delay: 7s;
    color: rgba(255, 255, 255, 0.10);
}
.floating-icon:nth-child(8) {
    left: 90%;
    font-size: 38px;
    animation-duration: 24s;
    animation-delay: 6s;
}

@keyframes floatIcon {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-15vh) rotate(360deg);
        opacity: 0;
    }
}

/* -------------------------------------
   Container Principal 
-------------------------------------- */
.container {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* -------------------------------------
   Seção de Perfil & Logo Flutuante 
-------------------------------------- */
.profile-section {
    text-align: center;
    margin-bottom: 45px;
    animation: fadeInDown 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 5px;
    animation: floatLogo 4s ease-in-out infinite;
}

/* Anel Giratório - Pista de Corrida */
.racing-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    z-index: 0;
    background: conic-gradient(
        #FF0000 0deg,      /* Vermelho */
        #FFFFFF 30deg,      /* Branco */
        #1E1E1E 60deg,      /* Preto asfalto */
        #FFF100 90deg,      /* Amarelo */
        #FF0000 120deg,     /* Vermelho */
        #FFFFFF 150deg,     /* Branco */
        #0A1B5E 180deg,     /* Azul corrida */
        #FFF100 210deg,     /* Amarelo */
        #1E1E1E 240deg,     /* Preto asfalto */
        #FF0000 270deg,     /* Vermelho */
        #FFFFFF 300deg,     /* Branco */
        #0A1B5E 330deg,     /* Azul corrida */
        #FF0000 360deg      /* Vermelho (loop) */
    );
    animation: spinRing 3s linear infinite;
    filter: blur(1px);
}

/* Segunda camada girando ao contrário para efeito dinâmico */
.racing-ring.ring-2 {
    top: -7px;
    left: -7px;
    right: -7px;
    bottom: -7px;
    background: conic-gradient(
        #FFF100 0deg,
        transparent 20deg,
        #FF0000 60deg,
        transparent 80deg,
        #FFFFFF 120deg,
        transparent 140deg,
        #0A1B5E 180deg,
        transparent 200deg,
        #FFF100 240deg,
        transparent 260deg,
        #FF0000 300deg,
        transparent 320deg,
        #FFF100 360deg
    );
    animation: spinRingReverse 4s linear infinite;
    filter: blur(2px);
    opacity: 0.7;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

/* Efeito Glow Pulsante na Logo */
.glow-effect {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(45deg, var(--primary-yellow), var(--primary-blue), var(--primary-yellow));
    border-radius: 50%;
    z-index: 1;
    filter: blur(15px);
    opacity: 0.7;
    animation: pulseGlow 2.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; filter: blur(10px); transform: scale(1); }
    100% { opacity: 1; filter: blur(25px); transform: scale(1.05); }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.brand-name {
    font-family: 'Russo One', 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
    color: var(--primary-yellow);
    text-shadow: 0 2px 15px rgba(255, 241, 0, 0.4),
                 2px 2px 0px rgba(255, 255, 255, 0.15);
    transform: skewX(-5deg);
    display: inline-block;
}

.brand-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* -------------------------------------
   Bordão / Slogan
-------------------------------------- */
.slogan-section {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-out 0.5s backwards;
}

.slogan-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    line-height: 1.6;
    padding: 0 10px;
    text-shadow: 0 0 20px rgba(255, 241, 0, 0.2);
}

.slogan-icon {
    color: var(--primary-yellow);
    font-size: 13px;
    margin: 0 6px;
    opacity: 0.8;
    animation: pulseIcon 2s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.slogan-line {
    width: 60%;
    height: 1px;
    margin: 10px auto;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 241, 0, 0.4) 30%,
        var(--primary-yellow) 50%,
        rgba(255, 241, 0, 0.4) 70%,
        transparent 100%
    );
    opacity: 0.6;
}

/* -------------------------------------
   Links & Botões 3D Interativos 
-------------------------------------- */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.link-btn {
    position: relative;
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Efeito Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    
    /* Inicio Oculto para Animação de Entrada */
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Delays para criar efeito de cascata na entrada */
.link-btn:nth-child(1) { animation-delay: 0.2s; }
.link-btn:nth-child(2) { animation-delay: 0.4s; }
.link-btn:nth-child(3) { animation-delay: 0.6s; }
.link-btn:nth-child(4) { animation-delay: 0.8s; }
.link-btn:nth-child(5) { animation-delay: 1.0s; }

.btn-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.spin-icon {
    font-size: 26px;
    margin-right: 18px;
    color: var(--primary-yellow);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hover Effects (Brilho, 3D, e ícones giratórios) */
.link-btn:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-yellow);
    background: rgba(10, 27, 94, 0.5);
    box-shadow: 0 15px 35px rgba(255, 241, 0, 0.25), 
                inset 0 0 20px rgba(255, 241, 0, 0.15);
}

.link-btn:hover .spin-icon {
    transform: rotate(360deg) scale(1.2);
    color: #fff;
    text-shadow: 0 0 10px var(--primary-yellow);
}

.link-btn:hover .btn-content {
    color: var(--primary-yellow);
}

/* Raio de Luz Fluido no Hover */
.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 241, 0, 0.5), transparent);
    transform: skewX(-25deg);
    z-index: 1;
    transition: 0.5s;
}

.link-btn:hover .btn-glow {
    left: 200%;
    transition: 0.8s ease-in-out;
}

/* -------------------------------------
   Footer 
-------------------------------------- */
footer {
    margin-top: 60px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    animation: fadeIn 1.5s ease-out 1.2s backwards;
    text-align: center;
}

/* -------------------------------------
   Animações Globais 
-------------------------------------- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------------------------------------
   Design Responsivo 
-------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }
    .logo-container {
        width: 130px;
        height: 130px;
    }
    .brand-name {
        font-size: 26px;
    }
    .link-btn {
        padding: 16px 20px;
    }
    .btn-content {
        font-size: 16px;
    }
    .spin-icon {
        font-size: 22px;
        margin-right: 15px;
    }
}
