/* Feature Preview Animations */
.avatar-demo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sphere {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    animation: sphereFloat 3s ease-in-out infinite;
}

.mood-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: indicatorPulse 2s infinite;
}

@keyframes sphereFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.health-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 60px;
}

.chart-bar {
    width: 20px;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1s ease-out;
}

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--height, 60%); }
}

.gps-demo {
    position: relative;
    width: 80px;
    height: 60px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.map-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
}

.geofence {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px dashed var(--secondary-color);
    border-radius: 50%;
    animation: geofenceRotate 4s linear infinite;
}

@keyframes mapPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

@keyframes geofenceRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.notification-demo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: notificationBlink 1.5s infinite;
}

@keyframes notificationBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.analytics-demo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(var(--primary-color) 75%, transparent 75%);
    border-radius: 50%;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from { background: conic-gradient(var(--primary-color) 0%, transparent 0%); }
    to { background: conic-gradient(var(--primary-color) 75%, transparent 75%); }
}

.cloud-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cloud-icon {
    font-size: 1.5rem;
    animation: cloudFloat 3s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.sync-dots {
    display: flex;
    gap: 4px;
}

.sync-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: syncAnimation 1.5s infinite;
}

.sync-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.sync-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes syncAnimation {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

