/* ===== BASE STYLES ===== */
body { 
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* slate-900 */
    color: #f1f5f9; /* slate-100 */
    overflow-x: hidden; 
}

/* ===== SCROLLBAR STYLES ===== */
::-webkit-scrollbar { 
    width: 8px; 
    height: 8px; 
}
::-webkit-scrollbar-track { 
    background: #1e293b; 
}
::-webkit-scrollbar-thumb { 
    background: #38bdf8; 
    border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: #0ea5e9; 
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInGrow {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes backgroundPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sectionGlow {
    0% { box-shadow: 0 0 0px rgba(56, 189, 248, 0); } 
    50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.3); }
    100% { box-shadow: 0 0 0px rgba(56, 189, 248, 0); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

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

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== COMPONENT STYLES ===== */
.animate-fadeInGrow { 
    animation: fadeInGrow 0.8s ease-out forwards; 
}

.animated-gradient-bg {
    background: linear-gradient(135deg, #0f172a, #1d4ed8, #4c1d95, #0f172a);
    background-size: 300% 300%;
    animation: backgroundPan 15s ease infinite;
}

.section-active-glow {
    animation: sectionGlow 1.5s ease-in-out;
}

.caption-copied-feedback {
    animation: fadeInOut 2s ease-in-out;
}

/* ===== HOVER EFFECTS ===== */
.platform-card-hover:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.service-button-active {
    transform: translateY(-2px);
}

.package-card-hover:hover {
    transform: scale(1.05);
    border-color: currentColor !important; 
}

.caption-copy-button {
    transition: background-color 0.2s ease-in-out;
}

.caption-copy-button:hover {
    background-color: #0284c7;
}

/* ===== FORM VALIDATION ===== */
.input-valid {
    border-color: #22c55e !important; 
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.input-invalid {
    border-color: #ef4444 !important; 
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    max-height: 90vh;
}

/* ===== UTILITY COMPONENTS ===== */
.loader {
    border: 4px solid #3b82f6;
    border-top: 4px solid #1e293b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* ===== FLOATING BUTTONS ===== */
.floating-cart-button {
    position: fixed;
    bottom: 90px; /* Sempre acima do WhatsApp */
    right: 20px;
    z-index: 89;
    transition: all 0.3s ease;
}

.floating-cart-button button {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    padding: 0 !important;
}

.floating-whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: bounce-gentle 3s infinite;
    text-decoration: none;
}

.floating-whatsapp-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: pulse-whatsapp 1s infinite;
    text-decoration: none;
}

.floating-whatsapp-button i {
    color: white;
    font-size: 24px;
}

/* ===== ALPINE.JS ===== */
[x-cloak] { 
    display: none !important; 
}

/* ===== ANIMAÇÕES SUTIS PARA ELEMENTOS DE FUNDO ===== */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.animate-float-gentle {
    animation: float-gentle 5s ease-in-out infinite;
}

.animate-pulse-subtle {
    animation: pulse-subtle 4s ease-in-out infinite;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .floating-whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp-button i {
        font-size: 20px;
    }
    
    .floating-cart-button {
        bottom: 80px; /* Menor espaço no mobile */
    }
    
    .floating-cart-button button {
        width: 50px !important;
        height: 50px !important;
    }
} 