/*
 * GIVENBIZ PREVARSITY Premium Styling & Animations
 */

/* --- Advanced Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- reveal classes --- */
.reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up { transform: translateY(40px); }
.reveal-right { transform: translateX(-40px); }
.reveal-left { transform: translateX(40px); }

/* --- Enhanced Mega Menu Refinement --- */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem !important;
    width: 800px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;
}

.mega-menu-grid.visible {
    transform: translateX(-50%) translateY(0) !important;
}

.mega-menu-item {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    padding: 1rem;
}

.mega-menu-item:hover {
    background: var(--bg-soft);
    transform: scale(1.02);
}

/* --- Polished Section Backgrounds --- */
.poly-bg-blue {
    background: linear-gradient(135deg, #003366 0%, #002244 100%);
    position: relative;
    overflow: hidden;
}

.poly-bg-blue::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

/* --- Image Overlays & Transitions --- */
.img-premium-wrapper {
    position: relative;
    border-radius: var(--rounded-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.img-premium-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-premium-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Button Refinement --- */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -2;
}

.btn-premium::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-teal);
    transition: all 0.3s;
    z-index: -1;
}

.btn-premium:hover::before {
    width: 100%;
}

/* --- WhatsApp Pulse --- */
.whatsapp-float {
    animation: pulse-soft 2s infinite;
}

/* --- Section Dividers --- */
.section-divider {
    height: 100px;
    width: 100%;
    background-color: var(--bg-soft);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}
