/* ===== ExoTiwari Shared Animation & Transition Styles ===== */

/* --- Page Transition Overlay --- */
#exo-page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #03343e;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
#exo-page-transition-overlay.fade-out {
    opacity: 1;
    pointer-events: all;
}

/* --- Page Fade-In on Load --- */
body.exo-page-loading {
    opacity: 0;
}
body.exo-page-loaded {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* --- Scroll Animation Initial States --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate="fade-only"] {
    transform: none;
}
[data-animate="fade-left"] {
    transform: translateX(-30px);
}
[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* --- Hero Fade-In (on page load, not scroll) --- */
[data-animate="hero"] {
    opacity: 0;
    transform: none;
    transition: opacity 0.8s ease-out;
}
[data-animate="hero"].animated {
    opacity: 1;
}

/* --- Stagger delays for cards --- */
[data-animate-stagger] > [data-animate]:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger] > [data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger] > [data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate-stagger] > [data-animate]:nth-child(4) { transition-delay: 0.3s; }
[data-animate-stagger] > [data-animate]:nth-child(5) { transition-delay: 0.4s; }
[data-animate-stagger] > [data-animate]:nth-child(6) { transition-delay: 0.5s; }
[data-animate-stagger] > [data-animate]:nth-child(7) { transition-delay: 0.6s; }
[data-animate-stagger] > [data-animate]:nth-child(8) { transition-delay: 0.7s; }
[data-animate-stagger] > [data-animate]:nth-child(9) { transition-delay: 0.8s; }
[data-animate-stagger] > [data-animate]:nth-child(10) { transition-delay: 0.9s; }
[data-animate-stagger] > [data-animate]:nth-child(11) { transition-delay: 1.0s; }
[data-animate-stagger] > [data-animate]:nth-child(12) { transition-delay: 1.1s; }

/* --- Sidebar link animations --- */
.exo-sidebar-link {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, background-color 0.15s ease;
}
.exo-sidebar-link.animated {
    opacity: 1;
    transform: translateX(0);
}

/* --- Footer animation --- */
footer[data-animate] {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* --- Stat counter styling --- */
[data-count-target] {
    display: inline-block;
}

/* --- Mobile Nav Menu --- */
#exo-mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #03343e;
    z-index: 49;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
    pointer-events: none;
    border-bottom: 2px solid #fcd400;
}
#exo-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
#exo-mobile-menu a {
    display: block;
    padding: 16px 24px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.2s ease;
}
#exo-mobile-menu a:hover {
    background: rgba(252, 212, 0, 0.1);
}
#exo-mobile-menu a:last-child {
    border-bottom: none;
}

/* --- WhatsApp Floating Button --- */
#exo-whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
    text-decoration: none;
}
#exo-whatsapp-float:hover {
    transform: scale(1.1);
}
#exo-whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* --- Call Floating Button --- */
#exo-call-float {
    position: fixed;
    bottom: 104px;
    right: 32px;
    background: #03343e;
    color: #fcd400;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
    text-decoration: none;
}
#exo-call-float:hover {
    transform: scale(1.1);
}
