/* ===== ACTIVITIES SECTION ===== */
.activities-section {
    background: var(--dark-bg);
    overflow: hidden;
    padding-bottom: var(--space-8);
}

.activities-wrapper {
    position: relative;
    width: 100%;
    margin-top: var(--space-6);
    /* Fade effect on sides */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.activities-scroller {
    display: flex;
    overflow-x: auto;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
    cursor: grab;
}

.activities-scroller::-webkit-scrollbar {
    display: none;
}

.activities-scroller:active {
    cursor: grabbing;
}

.activity-item {
    flex: 0 0 280px;
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.activity-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition-base);
}

.activity-item:hover img {
    transform: scale(1.05);
}

.activity-item p {
    padding: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--gray-300);
    text-align: center;
    line-height: 1.5;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== IMPACT / STATISTICS SECTION ===== */
.impact-section {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.stat-item {
    text-align: center;
    padding: var(--space-8);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: var(--shadow-glow);
}

.stat-counter {
    font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-5xl));
    font-weight: 700;
    color: #FFD700;
    /* Yellow color */
    margin-bottom: var(--space-2);
}

.stat-item p {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Partners Logos Carousel */
.partners-logos {
    text-align: center;
    position: relative;
}

.partners-logos>p {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-6);
}

.logos-slider {
    overflow: hidden;
    padding: var(--space-4) 0;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
    display: inline-block;
    animation: slide 60s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logos-track span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--gray-300);
    transition: var(--transition-base);
    margin: 0 var(--space-3);
    vertical-align: middle;
}

.logos-track span i {
    color: var(--primary-light);
}

.logos-track span:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}


/* ===== WIDGET LAYOUT ADJUSTMENTS ===== */

/* Scroll To Top Button - Move left of VA Widget */
.scroll-top {
    right: 90px !important;
    /* 30px corner + 50px widget + 10px gap */
    bottom: 30px !important;
}

/* Virtual Assistant Widget Container */
#va-widget-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    /* Corner Position */
    z-index: 9999 !important;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Chat Box */
#va-chat-box {
    display: none;
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Toggle Button */
#va-toggle-btn {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 50px;
    /* Match scroll-top size */
    height: 50px;
    /* Match scroll-top size */
}

/* Avatar Circle */
.va-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    background: white;
}

.va-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pulse Effect */
.va-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #8b5cf6;
    animation: pulse 2s infinite;
    z-index: -1;
}

/* Notification Badge */
#va-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    z-index: 10;
    animation: bounce 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .scroll-top {
        right: 75px !important;
        /* 20px + 45px + 10px */
        bottom: 20px !important;
    }

    #va-widget-container {
        bottom: 20px !important;
        right: 20px !important;
    }

    #va-toggle-btn {
        width: 45px;
        height: 45px;
    }

    #va-chat-box {
        width: 320px;
        height: 450px;
    }
}

/* ===== POPUP NOTIFICATION STYLES ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background: #f44336;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95%;
        max-height: 85vh;
    }

    .popup-content {
        padding: 15px;
    }

    .popup-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 1rem;
    }
}