/* ==========================================================================
   Base Styles and Animations
   ========================================================================== */

.hidden {
    display: none !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.glass-panel {
    background: rgba(251, 249, 245, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ==========================================================================
   Abstract Floating Background Orbs
   ========================================================================== */

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.05;
    animation: float 20s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
    100% { transform: translate(-5%, 10%) scale(0.9); }
}

/* ==========================================================================
   iOS Style Language Switcher
   ========================================================================== */

.lang-switcher-wrapper {
    position: fixed;
    top: 80px; /* Below the main navbar */
    right: 24px;
    z-index: 1000;
}

@media (min-width: 768px) {
    .lang-switcher-wrapper {
        top: 24px;
        right: 250px; /* Moved to the left to avoid overlapping the Get Started button */
    }
}

.ios-toggle {
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(8px);
    padding: 2px;
    border-radius: 10px;
    display: flex;
    position: relative;
    width: 90px;
    height: 36px;
    border: 1px solid rgba(0,0,0,0.05);
}

.toggle-slider {
    position: absolute;
    background: white;
    width: 42px;
    height: 30px;
    top: 2px;
    left: 2px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.lang-btn {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    color: #64748b;
    z-index: 2;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn.active {
    color: #1b1c1a; /* on-surface color */
}

.ios-toggle.en-active .toggle-slider {
    transform: translateX(44px);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* CSS Pattern for Advanced Analytics chart */
.chart-pattern-bar {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
