/* =============================================
   AXAM — Global Styles
   ============================================= */

/* Glass navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Hero dot-pattern background */
.pattern-bg {
    background-color: #042f2e;
    background-image: radial-gradient(#14b8a6 0.5px, transparent 0.5px), radial-gradient(#14b8a6 0.5px, #042f2e 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
}

/* Scroll-triggered entrance animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > .reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > .reveal-child {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.visible > .reveal-child:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > .reveal-child:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > .reveal-child:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > .reveal-child:nth-child(4) { transition-delay: 0.4s; }

/* Pulse ring on primary CTA */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 0; }
}
.pulse-ring { position: relative; }
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid #14b8a6;
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

/* Loading spinner */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal animations */
.modal-enter { animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes modalSlideUp {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
.modal-backdrop-enter { animation: fadeIn 0.25s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Trust badge hover */
.trust-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
