/* Header fixo no topo com z-index alto */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background-color: #b30000;
}

/* Garante que o conteúdo não fique escondido atrás do header */
body {
    padding-top: 60px;
}

/* Hero Section */
#rsx-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 80px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
    flex-wrap: wrap;
    background-color: transparent;
}

/* Overlay de fundo */
#rsx-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.1);
    z-index: 0;
}

/* Coluna esquerda */
.rsx-left {
    flex: 1;
    color: white;
    min-width: 350px;
    transform: translateX(30px);
    z-index: 1;
}

/* Título */
.rsx-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    font-family: 'Orbitron', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');

.rsx-gradient {
    display: inline-block;
    background: linear-gradient(90deg, #ff4d4d, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
}

.rsx-white {
    color: white;
    font-weight: 700;
}

.rsx-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffe6e6;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-left: 4px solid #ff4d4d;
    border-radius: 4px;
    margin-top: -5px;
    margin-bottom: 30px;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Botões */
.rsx-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    z-index: 1;
}

.rsx-btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: var(--shadow-default);
    transition: all var(--transition-fast);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-width: 240px;
    justify-content: center;
}

.rsx-btn.primary {
    color: var(--text-light);
    background: linear-gradient(to right, #ff4d4de2, #cc0000d7);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.6);
}

.rsx-btn.primary:hover {
    background: linear-gradient(to right, #cc0000, #ff1a1a);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.8);
    transform: translateY(-2px) scale(1.02);
}

/* --- MUDANÇA AQUI: Botão Secundário agora é Azul Escuro Brilhante --- */
.rsx-btn.secondary {
    color: white;
    /* Gradiente vibrante: Azul Royal Profundo -> Azul Elétrico */
    background: linear-gradient(to right, #002661, #0055ff);
    border: 1px solid #0055ff;
    font-size: 1rem;
}

.rsx-btn.secondary:hover {
    background: linear-gradient(to right, #0055ff, #002661);
    border-color: #002661;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 85, 255, 0.4);
    /* Glow azul ao passar o mouse */
}

/* --------------------------------------------------------- */

.rsx-btn.secondary::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-image: url('https://logodownload.org/wp-content/uploads/2015/04/whatsapp-logo-1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Efeito de brilho nos botões */
.rsx-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 55%);
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.rsx-btn:hover::after {
    transform: translateY(-50%);
}

.rsx-carousel {
    flex: 1;
    max-width: 800px;
    border-radius: 16px;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    transform: translateX(-150px);
    z-index: 1;
    position: relative;
}

.rsx-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.5s ease;
    border-radius: 12px;
    /* aqui aumente o valor para deixar mais arredondado */
}

.rsx-carousel img.active {
    display: block;
    opacity: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Barra de progresso */
.rsx-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    /* garantir que não ultrapasse */
    background: linear-gradient(90deg, #f1b529, #f7dc57, #ffca4d);
    background-size: 200% 100%;
    border-radius: 0 0 16px 16px;
    /* bordas arredondadas só na parte inferior, mesmo raio do carrossel */
    z-index: 2;
    opacity: 0.8;
}

.rsx-carousel-progress.animate {
    animation: rsx-progress-fill 5s linear forwards, rsx-gradient-slide 3s linear infinite;
}

@keyframes rsx-progress-fill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes rsx-gradient-slide {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.rsx-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

/* NOVOS BOTÕES DO CARROSSEL */
.rsx-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.388);
    /* Branco mais sutil */
    border-radius: 8px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.685);
    backdrop-filter: blur(3px);
}

.rsx-carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.738);
    transform: translateY(-50%) scale(1.05);
}

.rsx-carousel-nav svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

.rsx-carousel-nav.prev {
    left: -24px;
}

.rsx-carousel-nav.next {
    right: -24px;
}

/* Garante que elementos fora do carrossel sejam visíveis */
.rsx-carousel,
.rsx-carousel-inner {
    overflow: visible !important;
}


.rsx-blue {
    color: #0482f8;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin-right: 8px;
}

.rsx-red {
    color: #ff4d4d;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
}

/* Responsivo */
@media (max-width: 768px) {

    .rsx-carousel-nav {
        display: none !important;
    }

    #rsx-hero {
        flex-direction: column;
        padding: 60px 20px 40px;
        text-align: center;
    }

    .rsx-left {
        transform: none;
    }

    .rsx-title {
        font-size: 2.2rem;
    }

    .rsx-title img {
        margin-top: -35px;
    }

    .rsx-gradient {
        font-size: 2.4rem;
    }

    .rsx-white {
        font-size: 2rem;
    }

    .rsx-subtitle {
        font-size: 1.05rem;
        padding: 6px 12px;
        border-left-width: 3px;
    }

    .rsx-buttons {
        justify-content: center;
    }

    .rsx-btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 24px;
        font-size: 0.95rem;
        justify-content: center;
    }

    .rsx-carousel {
        max-width: 100%;
        margin-top: 0px;
        margin-bottom: 0px;
        animation: none;
        transform: none;
        position: relative;
    }

    .rsx-carousel-progress {
        bottom: 0;
        height: 4px;
    }

    .rsx-carousel-nav {
        top: 45%;
        padding: 8px;
    }

    .rsx-carousel-nav.prev {
        left: 5px;
    }

    .rsx-carousel-nav.next {
        right: 5px;
    }
}