@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800&display=swap');

:root {
    /* --- CORES PRIMÁRIAS (ROXOS VIBRANTES) --- */
    --primary: #A242F5;
    --primary-dark: #8E3ACB;
    --secondary: #D4A6FF;
    
    /* --- VÁRIAVEIS RGB (PARA USO EM EFEITOS) --- */
    --primary-rgb: 162, 66, 245;
    --secondary-rgb: 212, 166, 255;

    /* --- PALETA DE FUNDOS (ALTO CONTRASTE REVISADA) --- */
    --dark-bg: #1F1932;
    --card-bg: #FFFFFF;
    
    /* --- MUDANÇA DE CONTRASTE ABAIXO --- */
    --card-inner-bg: #E9ECEF; /* MUDADO: Para um cinza-claro mais forte */
    /* --- FIM DA MUDANÇA --- */

    --card-hover: #ECECF0; /* Hover pode ser o mesmo ou um pouco mais escuro, ex: #DEE2E6 */
    
    /* --- PALETA DE TEXTOS (AJUSTADA PARA CONTEXTO) --- */
    --text-on-light: #33334F; 
    --text-highlight-on-light: #1A1A2C;
    --text-muted-on-light: #5b5b66;
    --text-on-dark: #E0E0E6; 
    --text-muted-on-dark: #A7A7B8;

    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    background-color: var(--dark-bg);
    color: var(--text-on-dark); 
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg, #2A2341 0%, #1F1932 100%);
    overflow: hidden;
}

/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}
.whatsapp-float i {
    font-size: 28px;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float i {
        font-size: 24px;
    }
}

/* Enhanced Background */
.bg-accent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(162, 66, 245, 0.18) 0%, transparent 50%), 
        radial-gradient(circle at 80% 70%, rgba(212, 166, 255, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(162, 66, 245, 0.15) 0%, transparent 70%);
    z-index: 0;
}

/* Floating cards background elements */
.floating-cards-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    opacity: 0.2; 
    transform: rotate(10deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); 
    animation: float 15s infinite ease-in-out;
    animation-direction: alternate;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Particle effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5; 
    animation: particle-animation 15s infinite linear;
}

@keyframes particle-animation {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 15px 40px;
    position: relative;
    z-index: 1;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    max-width: 800px;
    margin-bottom: 35px;
}

.welcome-section h1 {
    font-size: clamp(28px, 5vw, 42px);
    background: linear-gradient(
        90deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        #ffffff 50%, 
        var(--primary) 75%,
        var(--secondary) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: animate-shine 3s infinite linear; 
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.welcome-section p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-muted-on-dark); 
    max-width: 80%;
    margin: 0 auto;
    margin-top: 15px; 
}


/* Main Grid Section */
.social-media-selector {
    margin-top: 35px; 
    width: 95%;
    max-width: 1000px;
    background: var(--card-bg); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1); 
    padding: 35px 25px;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: var(--text-on-light); 
}

.social-media-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px 3px 0 0;
}

.selector-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.selector-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.social-media-selector h3 {
    color: var(--text-highlight-on-light); 
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.selector-subtitle {
    color: var(--text-muted-on-light); 
    font-size: 15px;
    margin-bottom: 20px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.social-card {
    background: var(--card-inner-bg);
    border-radius: 16px;
    padding: 24px 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(162, 66, 245, 0.05); 
    
    /* --- MUDANÇA DE CONTRASTE ABAIXO --- */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* MUDADO: Sombra mais escura */
    /* --- FIM DA MUDANÇA --- */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--text-on-light); 
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0; 
}

.social-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: rgba(162, 66, 245, 0.3);
    background: var(--card-hover); 
    /* A sombra do hover é mais forte e substitui a sombra base */
    box-shadow: 0 12px 30px rgba(162, 66, 245, 0.25), 0 0 15px rgba(162, 66, 245, 0.3);
}

.social-card:hover::before {
    opacity: 0.3;
}

.social-card:active {
    transform: translateY(-3px);
}

.social-card.selected {
    border: 2px solid var(--primary);
    background: rgba(162, 66, 245, 0.18); 
    transform: translateY(-5px);
    /* A sombra selecionada é mais forte e substitui a sombra base */
    box-shadow: 0 12px 30px rgba(162, 66, 245, 0.3), 0 0 20px rgba(162, 66, 245, 0.4); 
}

.social-card.selected::before {
    opacity: 0.5;
}

.social-card i {
    font-size: 38px;
    margin-bottom: 16px;
    color: var(--primary); 
    transition: transform 0.3s ease;
}

.social-card:hover i {
    transform: scale(1.1);
}

/* Badge para serviços populares - posicionamento ajustado */
.popular-badge {
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: 11px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Cor do texto nos cards de redes sociais */
.social-card p {
    color: var(--text-on-light); 
    font-size: 16px;
    font-weight: 500;
    margin-top: 7px;
    transition: all 0.3s ease;
}

.social-card:hover p {
    color: var(--text-highlight-on-light); 
}

/* Next Button */
.next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white; 
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 35px;
    box-shadow: 0 10px 25px rgba(162, 66, 245, 0.45);
    transition: all 0.3s ease;
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.next-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.next-button.active {
    opacity: 1;
    pointer-events: auto;
}

.next-button.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(162, 66, 245, 0.55);
}

.next-button.active:active {
    transform: translateY(-1px);
}

.next-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.next-button:hover i {
    transform: translateX(4px);
}

/* Footer note */
.footer-note {
    text-align: center;
    color: var(--text-muted-on-light); 
    font-size: 14px;
    margin-top: 30px;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .welcome-section p {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-card {
        padding: 20px 10px;
    }
    
    .social-card i {
        font-size: 32px;
    }
    
    .welcome-section h1 {
        font-size: 26px;
    }
    
    .welcome-section p {
        font-size: 15px;
    }
    
    .social-media-selector {
        padding: 25px 15px;
    }
    
    .selector-header h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .social-card {
        padding: 15px 8px;
    }
    
    .social-card i {
        font-size: 28px;
        margin-bottom: -10px;
    }
    
    .social-card p {
        font-size: 14px;
    }
    
    .next-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* --- MELHORIA: Animação de entrada "Stagger" (escalonada) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Atraso para cada card aparecer */
.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }


/* --- MELHORIA: Animação para o brilho metálico (Versão Correta) --- */
@keyframes animate-shine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}